groff
[Top][All Lists]
Advanced

[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 Shepelev
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 13:41:34 +0400

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...

-- 
()  ascii ribbon campaign - against html e-mail 
/\  www.asciiribbon.org   - against proprietary attachments

Attachment: anton.mm
Description: application/freemind


reply via email to

[Prev in Thread] Current Thread [Next in Thread]