Use -halt-on-error for pdflatex