groff
[Top][All Lists]
Advanced

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

[Groff] tbl within a macro


From: Dave Smith
Subject: [Groff] tbl within a macro
Date: 28 Jul 2003 14:42:49 -0400

I am trying to generate multiple copies of a table by using recursion.
ie 

.de bigloop endbigloop
.if (\\n[copy] <= 2) \{\
.pn 1
.TS H
l1 l1 l1 l.
Col 1   Col 2   Col 3   Col 4
.TH
val 1   val 2   val 3   \fB\s+1val 4\fP\s0
        _       _       _
total 1 total 2 total 3 \fB\s+1total 4\fP\s0
        =       =       =
.TE
.bp
.nr copy +1
.bigloop
.\}
.endbigloop
.nr copy 1
.bigloop


I am getting troff: automatically ending diversion `3section' on exit .
What am I doing wrong? or is there a better way.








reply via email to

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