[bug #61836] want a page resequencer for intermediate output
Deri James <[email protected]> Mon, 8 Jun 2026 11:17:44 -0400 (EDT)
| Newsgroups | gmane.comp.printing.groff.bugs |
|---|---|
| Message-ID | <[email protected]> |
Follow-up Comment #4, bug #61836 (group groff):
The recent changes to s.tmac which added PDFFEAT (when using -T pdf) now
automatically relocates the TOC if the document includes a title page (.RP).
It also adjusts the page numbering in the overview panel to match the roman
numerals in the TOC and resets the page numbers to 1 for the main body of the
document.
As far as I know, this is only possible with pdf output because page order is
controlled by hierarchical arrays of pointers to page objects which can be
manipulated. The TOC pages are still the "last" pages in the file, it is just
the array of pointers which is changed.
I think the current ability to "name" a page plus the ability to switch the
"growth point" to before/after a named page is more natural for the single
pass nature of groff. Troff (which produces grout) has no concept of the type
of page (title, toc, body, appendix, index) it is only the macro package (or
make file) which is aware of these things.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?61836>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
(application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCaibdGAAKCRCqLAuaBUf3 TnN+AQChDnw7FxYQmM+OYKhGTljGj07+XHkcULMQHL184J3l2QD9E27jKBGGz8bT bNOJo9MtyIF3UjcK2edDhFLnphyN7wg= =75or -----END PGP SIGNATURE-----