With the simple equation environment;
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{equation}
a \foo b
\end{equation}
\end{document}
you can see a helpful error message, which editors like Kile understands;
! Undefined control sequence.
l.5 a \foo
b
Making it report 5: Undefined control sequence a \foo
But if you do the same in an amsmath environment, such as the popular align
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{align}
a \foo b
\end{align}
\end{document}
you get the unhelpful error (and it comes up twice);
! Undefined control sequence.
<argument> a \foo
b
l.6 \end{align}
which makes Kile report; 6: Undefined control sequence \end{align}.
Checking the log is tedious and ultimately unrewarding, because not even in there can I find the actual line which contained the undefined control sequence. Can this awful behavior be helped in any way?
eqnarrayturns out likeequation, but there are of plenty or other reasons to not use that. – Mikael Öhman Nov 30 '12 at 18:21\foois not written out. Now imagine to write a parser that takes all this into account, and is working with all kinds of user defined macros and environments... – mafp Dec 11 '12 at 22:07