Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Alignment in Align

39 views
Skip to first unread message

João Telhada

unread,
Mar 13, 2003, 7:25:31 AM3/13/03
to
Hi,

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.

Cameron, CDR Charles B.

unread,
Mar 13, 2003, 7:46:07 AM3/13/03
to
João Telhada wrote:

> \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

Lars Madsen

unread,
Mar 13, 2003, 8:51:15 AM3/13/03
to


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

Donald Arseneau

unread,
Mar 13, 2003, 4:32:06 PM3/13/03
to
benfa...@msn.com (João Telhada) writes:

> 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

Enrico Gregorio

unread,
Mar 14, 2003, 11:41:34 AM3/14/03
to
benfa...@msn.com (João Telhada) wrote:

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

0 new messages