[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] Possible UTP.MAC bug
From: |
Greg 'groggy' Lehey |
Subject: |
Re: [Groff] Possible UTP.MAC bug |
Date: |
Tue, 12 Nov 2002 11:01:53 +1030 |
User-agent: |
Mutt/1.4i |
On Monday, 11 November 2002 at 16:18:09 -0600, Michael Hobgood wrote:
> I just noticed that when the UTP is groffed as a
> single document, table numbers are not being reset
> at the beginning of each chapter. Rather, they are
> cumulative.
The way I've handled this is implicit in the attached Makefile. I
build the chapters individually, then cat the PostScript together and
run Emacs in batch mode to tidy it up.
emacs -batch $@ -l $F/massageps.el -f massageps -f exit
Basically, the tidying involves removing redundant headers and
trailers and renumbering the pages. Presumably this could be done in
the scripting language of $your choice. I'm also attaching the Emacs
macros. I use them for a number of different things, so there's
unnecessary stuff in there. The macros of interest are (massageps)
and (renumber-pages).
Greg
--
Finger address@hidden for PGP public key
See complete headers for address and phone numbers
Makefile
Description: Text document
massageps.el
Description: Text document