groff
[Top][All Lists]
Advanced

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

Re: [Groff] moving TOC to start


From: Werner LEMBERG
Subject: Re: [Groff] moving TOC to start
Date: Thu, 29 Sep 2005 17:45:05 +0200 (CEST)

> > The `XS', `XA' and `XE' macros collect the TOC entries into a
> > diversion, which is flushed when `TC' is called; to cover the
> > entire document, this has to come at the end.  This is the way
> > `ms' has always worked, both in groff and traditional troff
> > implementations
> 
> Just rank speculation, in the way of throwing out crazy ideas...
> 
> Is there any merit to the idea of diverting an *entire* document and
> inserting a TOC in the right place just before printing the whole
> thing?

The very problem is that diversions in groff hold *already processed*
material.  Only if the TOC starts and end on a separate page, and only
if you use a different numbering scheme for the TOC pages, your idea
will work in general.

groff's `unformat' request has too much restrictions to be of real
value here...


    Werner




reply via email to

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