I'm posting a simple question that perhaps has a simple answer ...
In the align environment, elements of each line are left aligned where
the & symbol is placed.
\begin{align*}
a &= b = \\
&= c \qed
\end{align*}
In this small example, the "=" on the 2nd line will be, of course,
aligned with the "=" on the first line.
My problem is sometimes the symbols used to set the alignment are not
as simple as the "=" symbol. In fact, many times I use something like
\overset{(\ref{eqABC})}{=}.
\begin{align*}
a &\overset{(\ref{eqABC})}{=} b = \\
&= c \qed
\end{align*}
The alignment will be done with the "left part" of
\overset{(\ref{eqABC})}{=} and "=", but I would prefer it could be
done with the "center part" o both ...
Anyone has an idea on this particular issue ?
Thanks. João Telhada.
> \begin{align*}
> a &\overset{(\ref{eqABC})}{=} b = \\
> &= c \qed
> \end{align*}
>
> The alignment will be done with the "left part" of
> \overset{(\ref{eqABC})}{=} and "=", but I would prefer it could be
> done with the "center part" o both ...
>
> Anyone has an idea on this particular issue ?
>
> Thanks. João Telhada.
How about this?
\begin{align*}
a &\overset{(\ref{eqABC}) \text{and so on}}{=} b = \\
&\overset{\phantom{(\ref{eqABC}) \text{and so on}}}= c \qed
\end{align*}
Charles B. Cameron
or using \overset{\makebox[0pt]{\ref{eqABC})}}{=}
--
/daleif (remove RTFSIGNATURE from email address)
Some URLs:
http://www.tex.ac.uk/faq
http://www.ams.org/tex/short-math-guide.html
http://people.ee.ethz.ch/~oetiker/lshort/lshort.pdf
http://www.ctan.org/tex-archive/info/epslatex.pdf
> a &\overset{(\ref{eqABC})}{=} b = \\
> &= c \qed
> \end{align*}
>
> The alignment will be done with the "left part" of
> \overset{(\ref{eqABC})}{=} and "=", but I would prefer it could be
> done with the "center part" o both ...
Amazing! Someone has finally found a feature of LaTeX's
original eqnarray over amsmath's alignment!
Donald Arseneau as...@triumf.ca
I would try
\begin{align*}
a &\overset{(\ref{eqABC})}{=} b = \\
&\overset{\hphantom{(\ref{eqABC})}}{=} c \qedhere
\end{align*}
though I have not tested it. The idea is to make the
second `=' as wide as the first one.
Note also the \qedhere, it is better than saying \qed (you
need a recent version of amsmath).
Ciao
Enrico