> > 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 _______________________________________________ Groff mailing list Groff@gnu.org http://lists.gnu.org/mailman/listinfo/groff