🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text.tex
Article #11599

Re: NewLine with Maths

#11599
From: W. Blaine Dowler
Date: Mon, 29 Apr 2002 20:25
48 lines
2803 bytes
Michael De Nil wrote:

> Heyz
> 
> someone who knows how to add a newline after a math-expression ?
> currently, I always \end{displaymath} and \begin{displaymath} to add a
> newline...
> 
> anyone plz ?
> michael

If I'm going to have multiple lines of math, I use the eqnarray or 
eqnarray* environments.  (The * version doesn't number the lines.  The 
unstarred version numbers all lines that don't have the \nonumber command 
in them.)  It's automatically formatted as three columns, assuming the 
relation (=, <, >, etc.) is the second column.  Columns are separated by &, 
and newlines are made with \\.  Here's an example of the derivation of the 
quadratic equation:

Given \[Ax^2+Bx+C=0\] what is $x$?

We begin by defining $b=\frac{B}{A}$ and $c=\frac{C}{A}$.  This allows
us to rewrite the expression as
\[
x^2 + bx+c = 0
\]

Now, we remember that $\left(p+q\right)^2=p^2+2pq+q^2$, and apply this
to the expression.
\begin{eqnarray}
x^2 + bx + \frac{b^2}{4} -\frac{b^2}{4} +c &=&0\nonumber\\
\left(x+\frac{b}{2}\right)^2 &=& \frac{b^2}{4} - c\nonumber\\
x+\frac{b}{2} &=& \pm \sqrt{\frac{b^2}{4}-c}\nonumber\\
x &=& -\frac{b}{2} \pm \sqrt{\frac{b^2}{4}-c}\nonumber\\
x &=& \frac{B}{2A} \pm
\sqrt{\frac{B^2}{4A^2}-\frac{C}{A}}\nonumber\\
x &=& \frac{-B\pm\sqrt{B^2-4AC}}{2A}
\end{eqnarray}

(This is the one I posted on http://planetmath.org a few months ago.)

-- 
- Blaine

http://www.bureau42.com
ICQ: 24893016
XFW # 299792458, WM, SW, WNS, NRMTPB, FPSSG
Koopa TROoPA #42
Technical Details
Message-ID: <K_hz8.56033$1u2.1785809@news1.calgary.shaw.ca>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!hub1.nntpserver.com!peer1-sjc1.usenetserver.com!usenetserver.com!pd2nf1so.cg.shawcable.net!residential.shaw.ca!news1.calgary.shaw.ca.POSTED!not-for-mail
References: <Pine.LNX.4.44.0204292046480.17090-100000@LiSa>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f9e16,8795ca21bb32c445
X-Google-Attributes: gidf9e16,public
X-Google-Thread: 100a19,8795ca21bb32c445
X-Google-Attributes: gid100a19,public
X-Google-ArrivalTime: 2002-04-29 13:25:14 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!hub1.nntpserver.com!peer1-sjc1.usenetserver.com!usenetserver.com!pd2nf1so.cg.shawcable.net!residential.shaw.ca!news1.calgary.shaw.ca.POSTED!not-for-mail
X-Trace-PostClient-IP: 24.86.116.108
From: "W. Blaine Dowler" <fiziko@burea42.com>
Subject: Re: NewLine with Maths
Newsgroups: comp.text.tex,be.comp.os.linux
Followup-To: comp.text.tex
References: <Pine.LNX.4.44.0204292046480.17090-100000@LiSa>
Lines: 48
Organization: Bureau 42
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7Bit
X-Squared: A Parabola
X-Files: The Truth Is Out There Until May 19
Message-ID: <K_hz8.56033$1u2.1785809@news1.calgary.shaw.ca>
Date: Mon, 29 Apr 2002 20:25:14 GMT
NNTP-Posting-Host: 24.70.95.207
X-Complaints-To: abuse@shaw.ca
X-Trace: news1.calgary.shaw.ca 1020111914 24.70.95.207 (Mon, 29 Apr 2002 14:25:14 MDT)
NNTP-Posting-Date: Mon, 29 Apr 2002 14:25:14 MDT