Skip to content

Instantly share code, notes, and snippets.

@alloy-d
Created August 10, 2011 19:15
Show Gist options
  • Save alloy-d/1137862 to your computer and use it in GitHub Desktop.
Save alloy-d/1137862 to your computer and use it in GitHub Desktop.
Generating PDFs with LaTeX and redo.
redo-ifchange $1.tex
TMPDIR="$3-dir"
TEXARGS="-output-directory $TMPDIR $1.tex"
mkdir $TMPDIR
pdflatex $TEXARGS > /dev/null
pdflatex $TEXARGS > /dev/null
mv $TMPDIR/resume.pdf $3
rm -rf $TMPDIR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment