Anton Shterenlikht: > I want the cover page to show no page number, the > front page to show no number, and the first normal > page to show page number 2. All pages after that > I want to be numbered consequtively.
This is complicated and couldn't do it without fix-
ing mm. Maybe it's not working correctly.
The .PGNH is ignored because mm/ms.cov has:
.pg@enable-top-trap
which undoes its effect. To make it respect .PGNH,
I have modified m.tmac's definition of .COVER to
store the current setting in a number register be-
fore the corresponding pg@disable-top-trap is
called:
...
.el .ds cov*cov-type \\$1
.nr prev-top-trap \\n[pg*top-enabled]\"<--Added this line
.pg@disable-top-trap
...
and instead of calling pg@enable-top-trap in ms.cov
I am restoring the value from the register:
.pg@enable-top-trap\" I deleted this line
.nr pg*top-enabled \\n[prev-top-trap]\" and inserted this
To fix the page numbering I called
.hd@set-page -1
in the beginning of your source. Attached is your
modified example that looks as want.
My "fix" is probably a bad one, and maybe it would
be better to pass a parameter to cover indicating
the presence of another cover sheet and disabling
the header on the next page...
--
() ascii ribbon campaign - against html e-mail
/\ www.asciiribbon.org - against proprietary attachments
anton.mm
Description: application/freemind
