diff --git a/README.md b/README.md index 0f6cabab..dbffcbab 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,18 @@ docker build -t latex . docker run --rm -i -v "$PWD":/data latex pdflatex sourabh_bajaj_resume.tex ``` +#### Compiling the template locally for all CPU architectures + +```sh +docker run --rm -i -v "$PWD":/data mingc/latex pdflatex *.tex +``` +If you want to build the pdf as you change the text file use watchman from Facebook +```sh +brew update && brew install watchman + +watchman-make -p *.tex --run "docker run --rm -i -v `pwd`:/data mingc/latex pdflatex *.tex" +``` + ### Preview ![Resume Screenshot](/resume_preview.png) diff --git a/script.sh b/script.sh new file mode 100755 index 00000000..01a6ca48 --- /dev/null +++ b/script.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +docker run --rm -i -v ${PWD}:/data mingc/latex pdflatex *.tex + + diff --git a/watch.sh b/watch.sh new file mode 100755 index 00000000..0c28d506 --- /dev/null +++ b/watch.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +watchman-make -p *.tex --run ./script.sh