Actually, that's not entirely correct. You can specify which headers should
be used within the TOC field code. The information in Word's help feature,
and information on this discussion board, indicates that it can be done. I'm
just not getting something with the syntax quite right.
Gwen H.
> > I am using this field code to generate page numbers in the footer of a long
> > document. It is working properly. Page 1 in Chapter 3, for example, appears
[quoted text clipped - 16 lines]
> scheme in your document. For more on this particular topic, see
> http://www.shaunakelly.com/word/numbering/UseBuiltInHeadingStyles.html
Stefan Blom - 27 Feb 2008 10:50 GMT
If you are doing this with outline numbering, you must use the built-in
headings; see http://word.mvps.org/faqs/numbering/chapternumber.htm. As
explained in the article, you will have to insert section breaks and restart
page numbers on each section.
On the other hand, if you are doing it with SEQ fields, the required switch
in the TOC field is:
\s "sequence name here"
But note that you will have to add the SEQuence number to the header (or
footer), and that you still need section breaks (if you want to restart page
numbers).

Signature
Stefan Blom
Microsoft Word MVP
> Actually, that's not entirely correct. You can specify which headers
> should
[quoted text clipped - 31 lines]
>>
>> http://www.shaunakelly.com/word/numbering/UseBuiltInHeadingStyles.html
Jean-Guy Marcil - 27 Feb 2008 15:14 GMT
> If you are doing this with outline numbering, you must use the built-in
> headings; see http://word.mvps.org/faqs/numbering/chapternumber.htm. As
[quoted text clipped - 9 lines]
> footer), and that you still need section breaks (if you want to restart page
> numbers).
I am not sure I follow... How do you use SEQ fields in headers/footers? I
thought this was not allowed?
Stefan Blom - 28 Feb 2008 10:04 GMT
You can use SEQ fields in headers or footers, assuming that it contains the
\c switch, which repeats the current number. For example, in order to use
SEQ fields for chapter numbering and include the SEQ field in the header and
the TOC:
Header: { SEQ test \c }-{ PAGE }
Main body of document: { SEQ test } This is a "My custom heading" paragraph
Table of contents: { TOC \t "my custom heading,1" \s "test" }
The result for the TOC:
1 This is a "My custom heading"
paragraph...................................1-1
The example assumes that there is a style called "My custom heading" which
is used for headings. The { SEQ test } field is used to number the headings.
As I wrote in my previous reply, section breaks are required to restart page
numbers.

Signature
Stefan Blom
Microsoft Word MVP
>> If you are doing this with outline numbering, you must use the built-in
>> headings; see http://word.mvps.org/faqs/numbering/chapternumber.htm. As
[quoted text clipped - 15 lines]
> I am not sure I follow... How do you use SEQ fields in headers/footers? I
> thought this was not allowed?
Jean-Guy Marcil - 28 Feb 2008 19:01 GMT
> You can use SEQ fields in headers or footers, assuming that it contains the
> \c switch, which repeats the current number. For example, in order to use
[quoted text clipped - 17 lines]
> As I wrote in my previous reply, section breaks are required to restart page
> numbers.
Never used SEQ fields in headers/footers before. Thanks for the info.
Stefan Blom - 29 Feb 2008 09:58 GMT
>> You can use SEQ fields in headers or footers, assuming that it contains
>> the
[quoted text clipped - 25 lines]
>
> Never used SEQ fields in headers/footers before. Thanks for the info.
You are welcome.

Signature
Stefan Blom
Microsoft Word MVP
Jean-Guy Marcil - 27 Feb 2008 15:11 GMT
> Actually, that's not entirely correct. You can specify which headers should
> be used within the TOC field code. The information in Word's help feature,
> and information on this discussion board, indicates that it can be done. I'm
> just not getting something with the syntax quite right.
Headers that you specify within a TOC field are usually used to determine a
TOC level, they do not have any impact on the display of page numbers. If
they do, this is new to me and I would very much like to know how heading
styles can be used to influence the display of page numbers within a TOC.
From your post subject line, I see that you are using styles to control the
numbering, both of the chapters themselves and for the dispaly of the chapter
number in the footer. This is why I wrote that you must use Word's built in
heading styles.
If you want to use your own styles, you will have to restructure your
document to use a mix of automatic numbering and SEQ fields, or use only SEQ
fields. Which is what Stefan wrote.