Skip to content

Instantly share code, notes, and snippets.

@schocco
Created January 18, 2013 19:10
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 schocco/4567377 to your computer and use it in GitHub Desktop.
Save schocco/4567377 to your computer and use it in GitHub Desktop.
#!/bin/bash
if [ $# == 1 ]; then
echo building pdf...
pdflatex $1.tex
biber $1
makeindex $1.nlo -s nomencl.ist -o $1.nls
pdflatex $1.tex
pdflatex $1.tex
echo cleaning up...
rm -f *.aux *.dvi *.bbl *.blg *.ilg *.toc *.lof *.lot *.idx *.ind *.ps *.out *.nlo *.xml *~
else
echo "Usage:
$0 [FILE]
where FILE.tex is your input file.
All source files must be in the same directory as this script."
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment