groff
[Top][All Lists]
Advanced

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

Re: [Groff] labelling and referring


From: Patrik Schindler
Subject: Re: [Groff] labelling and referring
Date: Mon, 29 Nov 2010 18:18:21 +0100


Am 29.11.2010 um 15:23 schrieb Tim23:

Is it possible to label equations or tables to refer to them from anywhere in a text?


Yes, for equations this is possible. See the documentation for the .EQ- request to use equation numbering.

For tables you have to build something yourself. Example:

.\" Define Register TN with an autoincrement-Value of 1.
.nr TN 0 1

And for numbering tables:
.(b
.TS
.TE
.sz -2
.ce 1
Table \n+(TN: Foo Bar
.sz
.)b

(I'm using me macros, so adjust to your needs)


:wq! PoC





reply via email to

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