Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!sdd.hp.com!decwrl!deccrl!bloom-beacon!eru!hagbard!sunic!mcsun!ukc!strath-cs!str-va!cnbr17 From: cnbr17@vaxa.strath.ac.uk Newsgroups: comp.text.tex Subject: Re: Equations in LaTeX question Message-ID: <1991Apr12.101918.11369@vaxa.strath.ac.uk> Date: 12 Apr 91 10:19:18 GMT References: <31808@usc> Organization: University of Strathclyde, Elec. Eng. Lines: 40 In article <31808@usc>, ajayshah@alhena.usc.edu (Ajay Shah) writes: > > I'd like to typeset equations like: > > z = (x+y)^2 > = x^2 + 2xy + y^2 > > The \TeX book has a nice concept called \eqalign which lines up > equations so the = comes vertically aligned. It doesn't work in > LaTeX. > > Any ideas on how it's done? > > Thanks, > -ans. > > -- > _______________________________________________________________________________ > Ajay Shah, (213)734-3930, ajayshah@usc.edu > The more things change, the more they stay insane. > _______________________________________________________________________________ I think you should use the LaTeX eqnarray environment (see LaTeX manual section 3.3.5 pp 49/50): \begin{eqnarray} z & = & (x+y)^2\\ & = & x^2 + 2xy + y^2 \end{eqnarray} Hope this helps. Peter. -- ================================================================================ Peter Duffy |JANET: p.duffy@uk.ac.strath.vaxa EEE Dept. |Internet:p.duffy%vaxa.strath.ac.uk@nsfnet-relay.ac.uk Strathclyde University|BITNET: p.duffy%vaxa.strath.ac.uk@UKACRL Glasgow G1 1XW |UUCP: p.duffy%vaxa.strath.ac.uk@ukc.uucp Scotland. | ================================================================================