groff
[Top][All Lists]
Advanced

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

Re: [groff] mark/lineup in eqn


From: Doug McIlroy
Subject: Re: [groff] mark/lineup in eqn
Date: Tue, 01 May 2018 23:40:50 -0400
User-agent: Heirloom mailx 12.5 7/5/10

Ingo suggested a way to write two equations aligned
on equals signs, to look rather like this
           shortid = expression1
    longidentifier = expression2

Here's the code
.EQ
set column_sep 35
matrix {
  rcol { xhortid above longidentifier }
  ccol { = above = }
  lcol { expression1 above expression2 }
}
.EN

Yes, I've used this trick many times. It's impenetrable to 
read and excruciating to edit. 

----------------------------------------------------

In fact the matrix trick is so painful that with tongue
hardly in cheek I'd claim that for the present example
raw troff would be simpler:

\h'\w'longidentifier'u-\w'shortid'u'\c
shortid = expression1
.br
longidentifier = expression2



reply via email to

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