public
Created

Build LaTeX Document with BibTeX

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
# 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"
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.