Skip to content

Instantly share code, notes, and snippets.

@greggroth
Created January 24, 2012 20:33
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 greggroth/1672399 to your computer and use it in GitHub Desktop.
Save greggroth/1672399 to your computer and use it in GitHub Desktop.
Build LaTeX Document with BibTeX
# Build pdflatex and bibtex
pbpp() {
if [ -z $1 ]; then
echo "No arugment given"
return
fi
if [ ! -e "${1}.tex" ]; then
echo "Tex file not found. Verify that the current directory contains a file named ${1}.tex"
return
fi
pdflatex $1
bibtex $1
pdflatex $1
pdflatex $1
open "${1}.pdf"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment