If I understand your problem correctly, when we build the POSIX spec we have a similar problem. I have a macro that I ensure is called at the end of any run. This uses .tm to print a macro (.pn) to stderr with the final page number which I then save to a separate file. This file is an input to the next run, setting the initial page number.
This is a somewhat stripped down version: 1. create a file called "last_page" which has the following 2 lines: .bp .tm .pn % 2. create a file called "first_page" with the single line: .pn 1 3. Assume your text is in foo.man: tbl foo.man | groff -Tps -man first_page - last_page 2> first_page.new > foo.ps 4. mv first_page.new first_page The above is a grossly simplified and untested version of what the POSIX build operation does, but I hope it serves to point you in the right direction! -- Nick On Fri, 2008-09-05 at 12:25 -0500, Jeremy C. Reed wrote: > Can someone please point me to documentation or provide an example of > adding an extra footer with page numbers? > > The postscript document is made of many man files using tbl, troff and > grops. Currently it has the page numbering of each individual > documentation (so restarts on page 1 very frequently). I'd like to have a > running page number for entire postscript document too or instead. > > Or should I use psutils, a2ps or other tool to post process? > >