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

How do I align math in LaTeX (as in a proof) ?

1,162 views
Skip to first unread message

Ray

unread,
Dec 15, 2009, 3:48:50 PM12/15/09
to
Hello,

How can I align math in LaTeX (as typically seen in a proof)?

Specifically, I would like each successive line of math to align with
the same equal sign on the previous line (immediately above it).

Thank you!
Ray L.
NY, USA

Tariq

unread,
Dec 15, 2009, 4:36:22 PM12/15/09
to

Simplest solution is to use \begin{align} ... \end{align} environment
(or its starred version). You can declare what character to align
with. good luck.

Tariq

Patrick

unread,
Dec 15, 2009, 4:37:17 PM12/15/09
to

You could use the align environment in amsmath. You can use it similar
to a table, for example

\begin{align}
y &= 4x+6\\
&= 2x + 3
\end{align}

Cheers,
Patrick


Patrick

unread,
Dec 15, 2009, 4:39:59 PM12/15/09
to

Of course the math (if one could even call it that) made little sense in
the example, but I still hope it helped.

Cheers,
Patrick

Joris

unread,
Dec 15, 2009, 4:52:00 PM12/15/09
to

or with amsmath

\begin{equation}
\begin{aligned}
a & = b \\
& = c \\
& = d.
\end{aligned}
\end{equation}

which centers a single equation number vertically, whereas with align
all lines are individually numbered by default, but the numbering can
be turned off for each individual line.


Andrew

unread,
Dec 15, 2009, 8:35:39 PM12/15/09
to
On Dec 16, 7:39 am, Patrick <patrick.steegs...@physics.gu.se> wrote:
> Of course the math (if one could even call it that) made little sense in
> the example, but I still hope it helped.

Sure it makes sense, the solution is x = -1.5, y = 0 :-).

0 new messages