reitzig / ltx2any

Yet another LaTeX build wrapper, with one or two nifty features
GNU General Public License v3.0
59 stars 4 forks source link

Error "missing \fi" not caught by log parser #48

Closed akerbos closed 9 years ago

akerbos commented 9 years ago

Dropping an in in a PGF \foreach results in this:

! Incomplete \ifx; all text was ignored after line 953.
<inserted text> 
                \fi 
<*> rodcutting.tex

The file ended while I was skipping conditional text.
This kind of error happens when you say `\if...' and forget
the matching `\fi'. I've inserted a `\fi'; this might work.

! Emergency stop.
<*> rodcutting.tex

*** (job aborted, no legal \end found)

The log parser does not find this error.

( ! Emergency stop is definitely general and should be caught.)

reitzig commented 9 years ago

Variant:

! Incomplete \iffalse; all text was ignored after line 1574.
<inserted text> 
                \fi 
<*> app-main.tex

! Emergency stop.
<*> app-main.tex

!  ==> Fatal error occurred, no output PDF file produced!
Transcript written on app-main.log.