Skip to content

Instantly share code, notes, and snippets.

@pfleidi
Created Jun 27, 2013
Embed
What would you like to do?
Using rubber, Guard and pdflatex to build my thesis
# 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