Page numbering as page x of y & from 1 to .....

G

Guest

I would like to give page x(Section starting page No) of y(section pages) for
different section & total numbers of from x(Starting Document Page No.) of
y(total no. of document pages)

Is it possible? how?
Regards,
Umesh
 
M

macropod

Hi Umesh,

For your first Section, the field coding for page x(Section starting page
No) of y(section pages) is as simple as:
{PAGE} of {SECTIONPAGES}
For your second section, the field coding for page x(Section starting page
No) of y(section pages) is more complicated. First, you'll need to add a
field to the 1st Section, coded like:
{SET "Sect{SECTION}" {SECTIONPAGES}}
Then, in your 2nd Section, you can use:
{={PAGE}-{Sect1}} of {SECTIONPAGES}
For your 3rd section, the 2nd Section needs a field coded like:
{SET "Sect{SECTION}" {={SECTIONPAGES}+Sect1}}

Then, in your 3rd Section, you can use:
{={PAGE}-{Sect2}} of {SECTIONPAGES}
For your 4th section, the 3rd Section needs a field coded like:
{SET "Sect{SECTION}" {={SECTIONPAGES}+Sect2}}

Then, in your 4th Section, you can use:
{={PAGE}-{Sect3}} of {SECTIONPAGES}
and so on.

For the x(Starting Document Page No.) of y(total no. of document pages),
you need no more field coding than:
{PAGE} of {NUMPAGES}
in each Section.

Cheers
 
S

Stefan Blom

Obviously, you can use the NUMPAGES field to get the total number of
pages and the SECTIONPAGES field to get the number of pages in a
section.

The PAGE field displays the page number based on the settings in the
Page Number Format dialog box.

In other words, assuming that you are restarting numbering in each
section, the PAGE field will display the correct "section page"
number. The absolute page number can then be calculated as follows,
assuming that you bookmark each SECTIONPAGES field:

For the section 1 header (or footer) there are no complications:

Page { PAGE } of { SECTIONPAGES }

Absolute page number: { PAGE } of { NUMPAGES }

Section 2 header (footer):

Page { PAGE } of { SECTIONPAGES }

Absolute page number: { = { PAGE } + { REF Sec1Count } } of {
NUMPAGES }

Section 3 header (footer):

Page { PAGE } of { SECTIONPAGES }

Absolute page number: { = { PAGE } + { REF Sec1Count } + { REF
Sec2Count } } of { NUMPAGES }

[etc.]

The Sec1Count and Sec2Count are bookmarks enclosing the SECTIONPAGES
fields in sections 1 and 2, respectively.

--
Stefan Blom
Microsoft Word MVP


in message
news:[email protected]...
 

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