Runs pdflatex on file write