Skip to content

Instantly share code, notes, and snippets.

@jponge
Created December 10, 2012 20:10
Show Gist options
  • Save jponge/4253026 to your computer and use it in GitHub Desktop.
Save jponge/4253026 to your computer and use it in GitHub Desktop.
file = "jooflux-ecoop13"
task :default => [:compile] do
end
task :pdf => :compile
task :compile do
system "pdflatex -interaction=nonstopmode #{file}.tex"
system "bibtex #{file}"
system "pdflatex -interaction=nonstopmode #{file}.tex"
system "pdflatex -interaction=nonstopmode #{file}.tex"
end
task :clean do
rm_rf ["#{file}.aux", "#{file}.log", "#{file}.bbl", "#{file}.blg", "#{file}.out", "#{file}.dvi", "#{file}.pdf"]
end
task :preview => :compile do
system "open #{file}.pdf"
end
task :skim => :compile do
system "open -a Skim #{file}.pdf"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment