OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: [docbook-apps] start chapter numbering

Hi Troy,
Page numbering can be restarted only at the start of an fo:page-sequence, not within an fo:page-sequence.  Your chapter title pages and the rest of the chapter are in the same fo:page-sequence, so there is no way to restart page numbering on the third page of the sequence (setting a negative starting number doesn't work, darn it).
So you need to create a chapter customization that puts the titlepage into a separate fo:page-sequence.  I'm not sure how much help you need with that, but here are some hints.
Customize the template with match="chapter" from fo/component.xsl.  Find the block containing "chapter.titlepage" and move it up to before the existing fo:page-sequence.  That will leave the original sequence with just the chapter content, and you can set its initial page number to 1.
Then wrap the chapter.titlepage block in a call to the template named "page.sequence".  There is an example of doing it with article in my book:
That will put the titlepages into their own page-sequence.
Bob Stayton
Sagehill Enterprises
----- Original Message -----
Sent: Thursday, July 31, 2008 11:54 AM
Subject: [docbook-apps] start chapter numbering



Im looking for a way to prevent page numbering on my chapter titlepages.


My current stylesheet customization produces a front and back page for the titlepage and starts the content on the third page.  Although Im able to prevent the page number from showing on the front and back of the titlepage, they are still counted.  The third page is numbered 3.  Id like it to start with the number 1 on the third page.


Im using page number prefixes, ie: Chapter 1-1, Chapter 2-1, etc


Seems like there should be a simple customization to handle this does anybody know?


Thanks in advance,

Troy L. Day


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]