Hi Jeremy,
Basically, what you're after is havin two parallel numbering schemes within the one document:
• Page X of Y for each Section
• Page n for the document as a whole
Your TOC will use the latter, which is quite easy to create - it's simply a matter of inserting a page number field in the page header for brief 1. Before inserting that, you should unlink brief 1's page header from the previous Section, which will contain your TOC. Then you can format the page numbering to start at 1 in the brief 1 Section. For each subsequent Section, ensure the page numbering is set to 'continue from previous'.
For the Section-dependent Page X of Y numbering, you need a fairly complex field code:
{IF{SECTION} = 1 {IF{PAGE}= 1 "{SET Section1 {SECTIONPAGES}}{SET PageCount {={NUMPAGES}- Section1}}"} {QUOTE{IF{PAGE}<> PageCount {IF{={SECTIONPAGES}+{REF {QUOTE Section{={SECTION}-1}}}}={={PAGE}+Section1} {SET {QUOTE Section{SECTION}} {={PAGE}+Section1}}}} "Section Page {={PAGE}+Section1-{REF {QUOTE Section{={SECTION}-1}}}} of {SECTIONPAGES}"}}
If your footers are configured to continue from previous, everything should be fine if you just put the field code into just the first page footer; otherwise you'll need to add the field code to each fotter that is not so configured.
Note: The field brace pairs (ie '{ }') for the above example are created via Ctrl-F9 - you can't simply type them or copy & paste them from this message. Rather having to encode all of this manually, I've added to field code to the attached document - between the [] symbols.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Last edited by macropod; 05-11-2011 at 06:14 PM.
|