Created
January 24, 2012 20:33
-
-
Save greggroth/1672399 to your computer and use it in GitHub Desktop.
Build LaTeX Document with BibTeX
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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