I have bash script that generates several tex files when it is run and then uses latex
and dvipdfm
to generate a pdf file. The only problem I have is that when something fails latex
will halt the process and ask for input on the errors. In this case I am generating more than one pdf and latex
is called several times for each one. So I end up with the same errors several times and I have to mash through it.
Since this is being integrated into the build process for something else I would like to find a way to just let the script die with just a single message.
To recap I would like to have latex terminate when there is an error so that when people other than my self run this they are stuck trying to kill this script.
Best Answer
Call
latex
with the-halt-on-error
option and the-interaction=nonstopmode
option: