Closed Cube707 closed 3 weeks ago
I don't see the problem. Have you tried removing -interaction=nonstopmode ? Not sure if that caused the problem.
Found it, I also need -file-line-error
in addition to -interaction=nonstopmode
.
Removing -interaction=nonstopmode
makes pdflatex wait for input on every error, so the compilation runs forever...
still interesting that the error line now gets reported two times in the logs 🤷♂️
Pre-checks
Environment
The Issue
If a class / package author uses
\PackageError
or\ClassError
, the error-line will always be reported as line 1, even if the logs contain a different, more exact line number.Reproduction Steps
compile the following MWE using
pdflatex -interaction=nonstopmode testing.tex
Expected Behavior
The errors should be reported as on line 13 and 14 and the commands responsible for the error should be marked
Logs
I assume the different behavior comes from the different format in the logs. Warning get the linenumber reported on the same line as the message, while errors get the linenumber reported on a later line:
Full
testing.log