Numbering in headers: sections and full doc

Z

zebazga

Hi,

I'm formatting a document and can't figure out a way to get all th
numbering I need.

- There are roughly 35 sections in my document. The header in eac
section needs to say "Page x of y" only for that section. Easy to do i
you reset page numbering after each section, and use the SECTIONPAGE
field.

The table of contents, however, needs needs to list page numbers for th
entire document. With the above, you instead get a table of content
that goes: 1, 2, 1, 2, 1, 1, 1, 1, 2, 3, 4, 1, 1, 1, 2, etc.

I tried using SEQ, but evidently you can only use the \c switch so I'
have to first define the sequence in each section, and even then, i
wouldn't be accurate for any section with more than 2 pages.

Any suggestions?

Thanks
 
S

Stefan Blom

The table of contents always displays page numbers as defined in the Page
Number Format dialog box (for each Word section). You will have to set the
"Continue from previous section" option to get the TOC the way you want it.

You can use a formula field to calculate the page number(s) that you want to
show in the header. For more on this approach, post back.

-- 
Stefan Blom
Microsoft Word MVP




---------------------------------------------
"zebazga" wrote in message

Hi,

I'm formatting a document and can't figure out a way to get all the
numbering I need.

- There are roughly 35 sections in my document. The header in each
section needs to say "Page x of y" only for that section. Easy to do if
you reset page numbering after each section, and use the SECTIONPAGES
field.

The table of contents, however, needs needs to list page numbers for the
entire document. With the above, you instead get a table of contents
that goes: 1, 2, 1, 2, 1, 1, 1, 1, 2, 3, 4, 1, 1, 1, 2, etc.

I tried using SEQ, but evidently you can only use the \c switch so I'd
have to first define the sequence in each section, and even then, it
wouldn't be accurate for any section with more than 2 pages.

Any suggestions?

Thanks.
 
Z

zebazga

Please do share how I can use a formula. I didn't even think of that.

'Stefan Blom[_3_ said:
;492318']You can use a formula field to calculate the page number(s
that you want to
show in the header. For more on this approach, post back.

-- 
Stefan Blom
Microsoft Word MVP
 
S

Stefan Blom

To store the number of pages in each section, you can make use of SET
fields; these create variables that can be referenced in a formula field. If
you place the fields inside the headers, it is less likely that someone will
delete them by mistake, but, of course, you will have to *unlink* all the
headers.

Use the following SET field in the first section header: { SET pagecount1
{ SECTIONPAGES } }

Second section header: { SET pagecount2 { SECTIONPAGES } }

Repeat for each subsequent section.

Do the following to display the calculated "page" numbers:

Section 1: { = { NUMPAGES } - { REF pagecount2 } - { REF pagecount3 } }
(and so forth, for the remaining sections)

Section 2: { = { NUMPAGES } - { REF pagecount 1 } - { REF pagecount2 } }
(again, you must add fields for subsequent sections)

To insert each pair of field delimiters, { }, press Ctrl+F9. F9 updates the
fields in the selection. To show/hide field codes, press Alt+F9.

With many sections, this would be time-consuming of course.

--
Stefan Blom
Microsoft Word MVP




zebazga said:
Please do share how I can use a formula. I didn't even think of that.

'Stefan Blom[_3_ said:
;492318']You can use a formula field to calculate the page number(s)
that you want to
show in the header. For more on this approach, post back.

-- 
Stefan Blom
Microsoft Word MVP
 
Z

zebazga

Time consuming indeed. With more than 30 sections, I just don't see tha
as a viable option. Especially once the document is taken over by
different document.

Thanks for the information. I guess Word is just too limited in thi
case.


'Stefan Blom[_3_ said:
;492325']To store the number of pages in each section, you can make us
of SET
fields; these create variables that can be referenced in a formul
field.

With many sections, this would be time-consuming of course.
 
S

Stefan Blom

Perhaps someone will think of a more clever way to do this. It is clear,
though, that it involves a formula field.

--
Stefan Blom
Microsoft Word MVP




zebazga said:
Time consuming indeed. With more than 30 sections, I just don't see that
as a viable option. Especially once the document is taken over by a
different document.

Thanks for the information. I guess Word is just too limited in this
case.


'Stefan Blom[_3_ said:
;492325']To store the number of pages in each section, you can make use
of SET
fields; these create variables that can be referenced in a formula
field.

With many sections, this would be time-consuming of course.
 

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