Skip to content

Instantly share code, notes, and snippets.

@juliushaertl
Created July 2, 2013 11:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juliushaertl/5908568 to your computer and use it in GitHub Desktop.
Save juliushaertl/5908568 to your computer and use it in GitHub Desktop.
Guardfile for latex file auto build
# 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