Created
June 27, 2013 12:59
-
-
Save pfleidi/5876188 to your computer and use it in GitHub Desktop.
Using rubber, Guard and pdflatex to build my thesis
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
# encoding: utf-8 | |
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