groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Groff] Multiple Lines Equation


From: Dale Snell
Subject: Re: [Groff] Multiple Lines Equation
Date: Fri, 25 Oct 2013 09:23:49 -0700

On Fri, 25 Oct 2013 22:34:02 +0800
Caleb Foong <address@hidden> wrote:

> Hi,
>
> I want my equations to be in multiple lines like this:
>
> z = x + y
> c = a + b
>
> But this doesn't work:
>
> .EQ
> z = x+y
> .br       #.sp also doesn't work
> c = a+b
> .EQ

No, it doesn't.  Groff is in fill mode, so it's all going to be
mooshed together.

> So instead of writing:
> .EQ
> x = x+y
> .EN
> .EQ
> c = a+b
> .EN
>
> Is there any other way?

Not that I know of.  It's one .EQ/.EN pair for each equation,
matrix, whatever.  BTW, you need a .br on a line between your
first .EQ and the second .EN.  Otherwise the two equations will be
run together.

If you don't already have them, go to this site:

  <http://troff.org/papers.html>

for the following documents:

  "A Guide to Typesetting Mathematics with GNU eqn" by Ted Harding

  "Typesetting Mathematics -- User's Guide (Second Edition)", by
   Brian W. Kernighan and Lorinda L. Cherry.

These are the docs I've been using.  You'll find a lot more than just
the eqn files on that site.  They all have a lot of useful info.  Many
of them are a bit dated, but are still good.

Hope this helps.

--Dale

--
"Rules of combat older than contact with other races.  Did not
mention aliens.  Rules' change... caught up in committee.  Not come
through yet."  -- Drazi Green Leader, "Babylon 5"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]