I have recently abandoned eqnarray* in favour of align*, which solved many problems, including some I hadn't realised I was suffering from. However, there's one feature of eqnarray* which doesn't seem to exist in align*.
If I want to put some text, say "Lemma 1", over an equals sign using \overset in a multiline equation display, the equals signs do not line up, e.g.
Code: Select all
\usepackage{amsmath}
\begin{document}
\begin{align*}
A&\overset{\text{Lemma }1}{=}B\\
&=C
\end{align*}
\end{document}
Code: Select all
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{alignat*}{2}
A&\overset{\text{Lemma }1}{=}&B\\
&=&C
\end{alignat*}
\end{document}
Code: Select all
\documentclass{article}
\begin{document}
\begin{eqnarray*}
A&\overset{\text{Lemma }1}{=}&B\\
&=&C
\end{eqnarray*}
\end{document}
gmedina already suggested I could manually fix the horizontal spacing each time this appears, but that would be a right pain in the bottom.
Any suggestions how to do this automatically?