# [Tuglist] Aligning formulae

Wendy McKay tuglist@tug.org.in
Wed, 10 Jul 2002 01:50:40 -0700 (PDT)

The
\usepackage{amsmath}
macros
\begin{align}... \end{align}
\begin{alignat}{}... \end{alignat}
give much better spacing for math displays than

\begin{eqnarray}... \end{eqnarray}

IMHO Mathematicians should be encouraged to use the
amsmath package.
In particular, for matrices:  {matrix} {bmatrix} {pmatrix}
environments....
{eqnarray} is not usually  needed and is often misused.

-wendy

On Wed, 10 Jul 2002, Dr. S. Biswas wrote:

> Try in this way
> \begin{eqnarray}
> exp(..)& = &...................\nonumber\\
>        &   & ..................\nonumber\\
>        &   &...................\nonumber
> \end{eqnarray}
> I think it will come out. If in any row + does not come below +, put \,
>
> On 9 Jul 2002, David Kastrup wrote:
>
> > "Dr. Dinesh Karia" <dineshjk@earth.planet.net.in> writes:
> >
> > > Dear Indian TeXers,
> > >
> > >     I seek your help for the following problem I am facing.
> > >
> > > I want an alignment of the following type.
> > >
> > > exp_1 = exp_2 + exp_3 + exp_4 + \cdots + exp_n
> > >           = exp'_2 + exp'_3 + exp'_4 + \cdots + exp''_n
> > >           = exp''_2 + exp''_3 + exp''_4 + \cdots + exp''_n
> > >
> > > Where all = signs must be below each other. Also, respective + in each row
> > > should be aligned in respective columns. The length of each terms may be
> > > different.
> > >
> > > I tried aligned environment but it did not work, as the \columsep is leaving
> > > too much of gaps between + signs and so they look like far separated
> > > columns.
> >
> > Then use alignat.
> >
> > --
> > David Kastrup, Kriemhildstr. 15, 44793 Bochum
> > Email: David.Kastrup@t-online.de
> > _______________________________________________
> > http://tug.org.in/mailman/listinfo/tuglist
> > Home:     http://www.tug.org.in
> > Tutorial: http://www.tug.org.in/tutorials.html
> >
> _______________________________________________
> http://tug.org.in/mailman/listinfo/tuglist
> Home:     http://www.tug.org.in
> Tutorial: http://www.tug.org.in/tutorials.html
>

--
==========================================
Wendy G. McKay
Control and Dynamical Systems 107-81
California Institute of Technology