My document is build above a template defining the styles (page, character, frame, page and list). It is made of “chapters” with the same structure:
- a first page with reduced header/footer automatically linked to the following
- a content page with full header/footer
Table of contents and index are considered “chapters” and also have their own page styles.
The “first page” style is invoked by a paragraph style which forces a page break TOC and index initial paragraphs (the tile ones generated from the “insert index/table” dialog) even force page number resetting to 1 from their styles.
This works fine.
The document ends with a licence built following the same scheme: a first page and content pages. Heading paragraph (similar to Heading 1 so that it is not numbered but appears in the TOC) inserts a page break before invoking the “first licence” page style with page number reset to 1. The style are composed like the ones for chapter/TOC/index (or I think so).
But, page number “1” appears on the first and second pages and then increments normally. This also happens if the heading paragraph directly breaks to content page instead of first.
If I remove page reset, pages are numbered as expected in continuity with what comes before.
I tried erasing the offending page styles and reconstructed them to no avail. I have even examined the XML style definition (.fodt document) and detected nothing unusual though I am not familiar with ODF. I have been on this problem for more than a week and do not know where to look for. Page reset, AFAIK, can be configured only in a paragraph style and nowhere else. Consequently, the source of the problem must be in the paragraph style definition but I do not see it.
I have streamlined my document to the minimum needed to show the issue. It is attached as Bugged.odt. The offending paragraph style is GNU FDL Title, the page styles LicenceStart and Licence.
If anyone could drive me in the right direction …