Created
July 2, 2013 11:31
-
-
Save juliushaertl/5908568 to your computer and use it in GitHub Desktop.
Guardfile for latex file auto build
This file contains 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
# encoding: utf-8 | |
# gem install guard | |
# brew install rubber | |
require 'guard/guard' | |
module ::Guard | |
class Thesis < ::Guard::Guard | |
def run_all | |
end | |
def run_on_changes(paths) | |
puts "Changes in:\n" | |
puts paths | |
`rubber --pdf thesis.tex` | |
end | |
end | |
end | |
guard :thesis do | |
watch(/^.*\.(tex|bib)$/) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment