page numbering

V

VLW

I need to format two separate page numbers on a document. On the right side,
page # of (total no. of document). On the left side, page # of (total no. of
each section). I have tried formatting the right side first, then making
sections and adding page numbers for sections but the right side starts over
at 1 at each section.
 
M

macropod

Hi VLW,

The page count for a Document can be obtained with the NUMPAGES field, whilst the page count for a Section can be obtained with the
SECTIONPAGES field.

The PAGE field simply returns the current page count, and can be formatted to start from any number in any Section. If you want a
current page count for both the document and the Section, you can use the PAGE field for the former and the following field code, in
each Section's header or footer, for the latter:
{QUOTE{IF{PAGE}= 1 {SET Section0 0}}
{IF{PAGE}<>{NUMPAGES} {IF{={SECTIONPAGES}+{REF {QUOTE Section{={SECTION}-1}}}}={PAGE} {SET {QUOTE Section{SECTION}} {PAGE}}}}
"Page {={PAGE}-{REF {QUOTE Section{={SECTION}-1}}}} of {SECTIONPAGES}"}
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.
 
Top