Last active
December 31, 2015 13:19
-
-
Save seabre/7991764 to your computer and use it in GitHub Desktop.
LaTeX and Guard setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Guardfile to watch the LaTeX and automatically build it if it changes. | |
| guard 'rake', :task => 'build' do | |
| watch('mydocument.tex') | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| task :default => [:build] | |
| task :build do | |
| puts `/usr/bin/env pdflatex -interaction=nonstopmode -output-directory=build/ mydocument.tex` | |
| end | |
| task :clean do | |
| puts `rm -v build/mydocument.aux build/mydocument.out build/mydocument.aux build/mydocument.pdf build/texput.log` | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment