> since a diversion isn't paginated until it is flushed out, > how would we capture TOC entries, with proper page number > references, while collecting the main body diversion?
Simple: you create a temporary page diversion for collecting text. When that is full, you increment your own page counter, divert-append the page diversion to the body diversion, clear the page diversion, and continue collecting more text in the page diversion... _______________________________________________ Groff mailing list Groff@gnu.org http://lists.gnu.org/mailman/listinfo/groff