[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] how not to number the cover page? and not to show page numbe
From: |
Anton Shterenlikht |
Subject: |
Re: [Groff] how not to number the cover page? and not to show page number on the front page? |
Date: |
Thu, 23 Aug 2012 11:07:31 +0100 (BST) |
From address@hidden Thu Aug 23 10:42:55 2012
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:
address@hidden
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 address@hidden is
called:
...
.el .ds cov*cov-type \\$1
.nr prev-top-trap \\n[pg*top-enabled]\"<--Added this line
address@hidden
...
and instead of calling address@hidden in ms.cov
I am restoring the value from the register:
address@hidden" I deleted this line
.nr pg*top-enabled \\n[prev-top-trap]\" and inserted this
To fix the page numbering I called
address@hidden -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...
Yes, this works fine, thank you.
However, I'm very reluctant to mess with mm/ms macro
definitions locally. I'll live with the page number
on the front page. The most annoying thing was the
page number on the cover page, which is solved by
address@hidden -1.
Many thanks for your quick and helpful replies.
Anton
- [Groff] how not to number the cover page? and not to show page number on the front page?, Anton Shterenlikht, 2012/08/22
- Re: [Groff] how not to number the cover page? and not to show page number on the front page?, Anton Shepelev, 2012/08/22
- Re: [Groff] how not to number the cover page? and not to show page number on the front page?, Keith Marshall, 2012/08/23
- Re: [Groff] how not to number the cover page? and not to show page number on the front page?, Anton Shterenlikht, 2012/08/23
- Re: [Groff] how not to number the cover page? and not to show page number on the front page?, Keith Marshall, 2012/08/23
- Re: [Groff] how not to number the cover page? and not to show page number on the front page?, Anton Shepelev, 2012/08/23
- Re: [Groff] how not to number the cover page? and not to show page number on the front page?, Anton Shterenlikht, 2012/08/23
- Re: [Groff] how not to number the cover page? and not to show page number on the front page?, Anton Shepelev, 2012/08/23
- Re: [Groff] how not to number the cover page? and not to show page number on the front page?, Keith Marshall, 2012/08/23
- Re: [Groff] how not to number the cover page? and not to show page number on the front page?, Anton Shepelev, 2012/08/23
- Re: [Groff] how not to number the cover page? and not to show page number on the front page?, Ralph Corderoy, 2012/08/23