nmh-workers
[Top][All Lists]
Advanced

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

Re: [Nmh-workers] troff 4 column output [OT]


From: Ralph Corderoy
Subject: Re: [Nmh-workers] troff 4 column output [OT]
Date: Tue, 01 Jan 2013 16:50:05 +0000

Hi steve,

> Do any of you have a working example that uses troff/groff (mm
> macros?) to print four column output?  I'll bet someone does.

Best off asking on the GNU groff mailing list, even if you're not using
groff but an alternative, e.g. Heirloom troff.  That's where us troffers
hang out, and a friendly bunch we are too.

    https://lists.gnu.org/mailman/listinfo/groff

> Or perhaps a troff expert would kindly whip up an example that
> correctly uses the mm MC and MULN macros??

MC and MULN?  MULN isn't for MC but MULB,MULN...,MULE.  Here's four
columns with MC.

    $ (printf '.nf\nfoo\n.ll 5i\n.MC 1i\n' &&
    > seq 39 | awk '!(NR % 10) {$0 = $0 "\n.NCOL"} 1' &&
    > printf '.1C 1\nbar\n') |
    > nroff -mm |
    > grep .
                                       ‐ 1 ‐
           foo
           1          11        21         31
           2          12        22         32
           3          13        23         33
           4          14        24         34
           5          15        25         35
           6          16        26         36
           7          17        27         37
           8          18        28         38
           9          19        29         39
           10         20        30
           bar
    $

Cheers, Ralph.



reply via email to

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