Skip to content

Instantly share code, notes, and snippets.

@briancain
Last active August 29, 2015 13:57
Show Gist options
  • Save briancain/9629605 to your computer and use it in GitHub Desktop.
Save briancain/9629605 to your computer and use it in GitHub Desktop.
compile latex
#! /bin/bash
# Brian Cain
#
# Stop wasting your time with
# pdflatex and bibtex. Just
# run this script.
# Don't forget to change REPORT_NAME
REPORT_NAME=my-report
REPORT_TEX="$REPORT_NAME.tex"
REPORT_BIB="$REPORT_NAME.aux"
echo "Compiling report..."
pdflatex $REPORT_TEX
bibtex $REPORT_BIB
pdflatex $REPORT_TEX
pdflatex $REPORT_TEX
echo "Complete!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment