See also this question on Reddit.
I want to automate running pdflatex
over and over with make
and guard
.
However, when pdflatex
encounters a syntax error, it hangs, preventing guard
from being able to run it again.
Is there a command line flag, environment variable, or shell wrapper I can use to force pdflatex
to quit on error rather than wait for more input?
Best Answer
If you call
pdflatex
with the command line option-halt-on-error
, the process will terminate at the first error.