[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 10:31:00 -0700 |
On Fri, 25 Oct 2013 18:51:04 +0200
Tadziu Hoffmann <address@hidden> wrote:
>
> > BTW, you need a .br on a line between your first .EQ and the
> > second .EN. Otherwise the two equations will be run together.
>
> Not necessarily. It depends on how your EQ/EN macros are defined.
> In the simplest case you can define
>
> .de EQ
> .sp .5
> .ce 1
> ..
> .de EN
> .sp .5
> ..
>
> For something more fancy, try
>
> .de EQ
> .br
> .nr xx \\n(.n
> .nr EQ +1
> .di XX
> ..
> .de EN
> .br
> .di
> .nr =^ \\n(.l-\\n(.i
> .ie \w'\\*(10'<(\\n(.l-\\n(.i-(2*\\n(xx)-2m) \{\
> .ne \\n(dnu
> .\}
> .el \{\
> .ne \\n(dnu+.5v
> .sp .5v
> .\}
> .ta \\n(.lu/2uC \\n(.luR
> \t\\*(10\t(\\n(EQ)
> .sp .5v
> .ns
> ..
>
> which gives you automatic equation numbering
> (and also makes the spacing nicer).
Thank you! Now I have to go study these so that I understand what
they're doing. :-) While I use Groff, and enjoy it, I don't
really understand what it's doing. So this will be a nice bit of
mental exercise.
--Dale
--
"Duct tape is like the Force. It has a light side, a dark side,
and it holds the universe together." --Carl Zwanzig
- [Groff] Multiple Lines Equation, Caleb Foong, 2013/10/25
- Re: [Groff] Multiple Lines Equation, Tadziu Hoffmann, 2013/10/25
- Re: [Groff] Multiple Lines Equation, Jones, Larry, 2013/10/25
- Re: [Groff] Multiple Lines Equation, Dale Snell, 2013/10/25
- Re: [Groff] Multiple Lines Equation, Tadziu Hoffmann, 2013/10/25
- Re: [Groff] Multiple Lines Equation,
Dale Snell <=
- Re: [Groff] Multiple Lines Equation, Tadziu Hoffmann, 2013/10/26
- Re: [Groff] Multiple Lines Equation, Mike Bianchi, 2013/10/26
- Re: [Groff] Multiple Lines Equation, Tadziu Hoffmann, 2013/10/26
- Re: [Groff] Multiple Lines Equation, Mike Bianchi, 2013/10/26
- Re: [Groff] Multiple Lines Equation, Tadziu Hoffmann, 2013/10/26
- Re: [Groff] Multiple Lines Equation, Ted Harding, 2013/10/26
- Re: [Groff] Multiple Lines Equation, Ralph Corderoy, 2013/10/27
- Re: [Groff] Multiple Lines Equation, Ted Harding, 2013/10/27
- Re: [Groff] Multiple Lines Equation, Clarke Echols, 2013/10/26
- Re: [Groff] Multiple Lines Equation, Ralph Corderoy, 2013/10/27