[Tugindia] eqnarray and text alignment
Aditya Mahajan
adityam at umich.edu
Thu Feb 16 18:48:07 CET 2006
On Thu, 16 Feb 2006, Ashis Kumar Mal wrote:
> Hello,
> I wish to format the following maths equations seperated by text
> such as:
>
> x=y+1
> and
> z=y-1
>
> using eqnarry environment.
> I tried this code.
Do not use eqnarry. It is bad for a variety of reasons. See
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=eqnarray
You should use amsmath for alignment, and use can get the result that you
want as follows
\begin{align}
x &= y+1 \\
\intertext{and}
z &= y -1
\end{align}
HTH,
Aditya
More information about the tugindia
mailing list