Restarting pagenumbering multiple times

S

SuzieofSanne

I'm making a document in which multiple other documents are combined.
Between every document there is a section break next-page or odd-page
depending on which document follows.

Now every document needs its own page numbering.
I started at the bottom document (Doc1), this document contains
section break continuous on the first page. SO I made a textbox and pu
the anchor after the section break continuous. In the textbox I hav
page {page} of {sectionpages}. If I put the page number in the footer
section pages will not work correct. Because that is in the firs
section of that document, it will always be 1. Then I restarted th
numbering so {page} will start at 1. On the following pages I just hav
page} of {sectionpages} in the footer and that works correct.

The document above that (Doc2) contains no page numbering on the firs
page, but I put page {page} of {sectionpages} on the second (an
following) pages, in the header. I restarted numbering and that works
The end of this document contains a section break next page.

The document above that (Doc3) is one page, with a section brea
continuous on it, but this could become more pages. At the end of thi
document there's a section break odd page. As with Doc1 I put the pag
numbering on that first page in a textbox, and on the following pages i
the footer, and I restarted numbering. This works correct.

The problem now is, that in Doc2 the {sectionpages} are wrong. They no
show a number too much (4 instead of 3). When Doc3 gets longer then
page (the section break odd page gets to page 2 of that doc) th
{sectionpages} in Doc2 work correct again (3).

How do I solve this? I guess the problem is two section breaks on th
first page of Doc3, but they are necessary, so I can't remove them
 
S

Stefan Blom

The easiest way to fix this is to avoid continuous section breaks; that way,
you will have no problems with the SECTIONPAGES fields.

If for some reason you must have continuous section breaks, you can use SET
fields to store the page count of the relevant sections; then insert REF
fields to display the page count in the appropriate footer. For example:

{ SET pagecountsection2 { SECTIONPAGES } }

in section 2 would store the page count for that section in a variable named
pagecountsection2. { REF pagecountsection2 } would display the stored value
in the footer where you want it.

To insert each pair of field delimiters, press Ctrl+F9. Type the code as
shown. Press F9 to update fields. Whenever you want to show/hide field
codes, press Alt+F9.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top