{ STYLEREF "EPRI Chapter Number"\n }-{ PAGE}

G

GwenH

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
as "3-1" at the bottom of the page. Ditto for page 2 in Chapter 3, which
appears as "3-2". However, the Table of Contents does not reflect these page
numbers. Instead, it uses page numbers such as 61, 62, etc. Here is the
current field code for the Table of Contents:

{ TOC \O "1-3" \H \Z \U }

How do I need to modify it so that it uses "EPRI Heading 2" for level 2
headers and and "Heading 2" for level three headers in the TOC?

Help!

Gwen H
 
J

Jean-Guy Marcil

GwenH said:
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
as "3-1" at the bottom of the page. Ditto for page 2 in Chapter 3, which
appears as "3-2". However, the Table of Contents does not reflect these page
numbers. Instead, it uses page numbers such as 61, 62, etc. Here is the
current field code for the Table of Contents:

{ TOC \O "1-3" \H \Z \U }

How do I need to modify it so that it uses "EPRI Heading 2" for level 2
headers and and "Heading 2" for level three headers in the TOC?

Help!

For the TOC to pick up chapter numbers, you have to insert those with the
Insert Page Number dialog. If you do, you will see that you must use the
built-in Heading 1 to 9 for that. This is why it is usually recommended to
use Word's built-in heading styles, unless you need a mutliple numbering
scheme in your document. For more on this particular topic, see
http://www.shaunakelly.com/word/numbering/UseBuiltInHeadingStyles.html
 
G

GwenH

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.
 
S

Stefan Blom

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).

--
Stefan Blom
Microsoft Word MVP


in message
 
J

Jean-Guy Marcil

GwenH said:
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.
 
J

Jean-Guy Marcil

Stefan Blom said:
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).

I am not sure I follow... How do you use SEQ fields in headers/footers? I
thought this was not allowed?
 
S

Stefan Blom

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.

--
Stefan Blom
Microsoft Word MVP



in message
 
J

Jean-Guy Marcil

Stefan Blom said:
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.

Never used SEQ fields in headers/footers before. Thanks for the info.
 

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