Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Whatchman #57

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 5 additions & 0 deletions script.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

docker run --rm -i -v ${PWD}:/data mingc/latex pdflatex *.tex


3 changes: 3 additions & 0 deletions watch.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

watchman-make -p *.tex --run ./script.sh