Hello Pablo, thanks for your suggestion. The "check" detected "\startitemize" which stayed open on the end of the file, but did not detect "\if++" without correspondng "\fi". Thanks again - Lukas On 2020-01-09 13:08, Pablo Rodriguez wrote:
On 1/9/20 1:00 PM, context@vivaldi.net wrote:
Hello,
in most cases, when a source file is to be closed, pair elements (tags) should balanced.
This concerns e.g. { - }, \bgroup - \egroup, \startitemize - \stopitemize, \if - \fi etc.
When we have a complicated project structure and when compiling the topmost (root) source, a log for a disbalanced tag may appear, but the unbalanced tag however may be difficult to find.
Is there a way to enable "watching" pair tags (at least mentioned before) in the way that their disbalance would be reported (logged)?
Hi Lukas,
maybe this helps you:
mtxrunjit --autogenerate --script check file.tex
It only works with single files, since t doesn’t load other files (with \input).
But it might fit your needs.
Just in case it helps,
Pablo -- http://www.ousia.tk