On 23/08/12 14:42, Anton Shepelev wrote:
You should not need to do this; there surely must be a public
interface to support what you are trying to achieve, without
subverting package internals?

I agree, but I didn't find a public mechanism to do that.

Does the attached achieve the desired effect? Agreed, it isn't intuitive: it's very picky about the placement of the reassignment of register 'P', and you have to set it to less than zero for it, and the effect of the assignment to the 'N' register, to be honoured, but this is achieved using only publicly documented features, (discovered by a search for 'page number' within groff_mm(7)).

--
Regards,
Keith.
.\" process with mm
.nr N 2
.PGNH
.PF "''\*(DT''"
.COVER 
.TL
title title title title title title
title title title title title title
title title title title title title
.AF "place place place place place place place place"
.AU "author author author author author author author"
.AS
I don't want the cover page to be
numbered at all, or maybe number 0.
I don't want to display the cover page number.
.AE
.nr P (-1)
.COVEND
.MT 4
This is the front page, I want it to be number 1.
I don't want this page number to be shown.
.SK
This should be page 2. From this page onwards,
I want all pages show page number in the header
(default for mm).

Attachment: foo.ps
Description: PostScript document

Reply via email to