You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With testphase=latest, the error Paragraph ended before \environment equation* was complete is reported on the \] line. I came across this while experimenting with tagging on someone's large legacy document that compiled fine without testphase=latest. Of course the fix is easy (remove the empty line, or at least start it with % to turn it into a comment line), but I'm reporting in case there is interest in the possibility of maintaining the prior behavior.
While reducing to the MWEs above, I also re-discovered something I had forgotten: empty lines at the outer level of display math were never allowed:
\[
x=y
\]
They used to cause the error Missing $ inserted to be reported directly at the location of the empty line. The error message itself was rather confusing (this message usually occurs when you use math notation outside of math mode) but at least the location was correct and thus a user might guess that the empty line should be removed. With testphase=latest, there's no longer an error reported on the offending line; instead, the error has moved to the \] line (which could be far away). At least the error message itself has changed to Paragraph ended before \environment equation* was complete, which provides a decent clue. I'm reporting in case there is interest in the possibility of emitting the error at the location of the offending line. Or, if it ends up being a possibility to again allow empty lines inside nested constructs (top of this report), perhaps a similar technique can be used to allow empty lines at the outer level of equation environments?
The text was updated successfully, but these errors were encountered:
Here are two examples of empty lines at a nested level inside display math that were previously allowed (no warning or error, output as expected):
With
testphase=latest
, the errorParagraph ended before \environment equation* was complete
is reported on the\]
line. I came across this while experimenting with tagging on someone's large legacy document that compiled fine withouttestphase=latest
. Of course the fix is easy (remove the empty line, or at least start it with%
to turn it into a comment line), but I'm reporting in case there is interest in the possibility of maintaining the prior behavior.While reducing to the MWEs above, I also re-discovered something I had forgotten: empty lines at the outer level of display math were never allowed:
They used to cause the error
Missing $ inserted
to be reported directly at the location of the empty line. The error message itself was rather confusing (this message usually occurs when you use math notation outside of math mode) but at least the location was correct and thus a user might guess that the empty line should be removed. Withtestphase=latest
, there's no longer an error reported on the offending line; instead, the error has moved to the\]
line (which could be far away). At least the error message itself has changed toParagraph ended before \environment equation* was complete
, which provides a decent clue. I'm reporting in case there is interest in the possibility of emitting the error at the location of the offending line. Or, if it ends up being a possibility to again allow empty lines inside nested constructs (top of this report), perhaps a similar technique can be used to allow empty lines at the outer level of equation environments?The text was updated successfully, but these errors were encountered: