# 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