[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] mm TC - how to place in the beginning of document?
From: |
Ralph Corderoy |
Subject: |
Re: [Groff] mm TC - how to place in the beginning of document? |
Date: |
Sat, 23 Nov 2019 14:02:26 +0000 |
Hi Marko,
> currently i want to bring my table of content on the top of the
> document. I found a solution below and is work.
>
> > Using the psutils package, you can move the last page containing
> > the TOC to the beginning of the document:
> >
> > psselect -p_1,1-_2 in.ps out.ps
>
> After 7 Years, is this solution still a good way to bring the toc on
> the top?
You can see the psselect(1) method explained at
https://www.schaffter.ca/mom/momdoc/tables-of-contents.html
If you're using -Tpdf then qpdf(1) can also re-arrange page order and
has r3 for the third-from-end page, and z for the last page.
The mom macros have a method of moving the table of contents with -Tpdf
that depends on gropdf(1)'s .pdfpagename and .pdfswitchtopage. (Deri,
I don't think they're documented?) mom uses them with the page name
MOM:TOC. Perhaps mm, or an mm user, could also benefit from them for
.TC. Hard to say without more investigation.
--
Cheers, Ralph.