TOC and Headers

  • Thread starter Thread starter Marlene
  • Start date Start date
M

Marlene

I'm generating a report and have inserted my header 1 and Header 2 style into
the Header/Footers of the report. Now I would like to generate a Table of
contents, but I noticed that it does not notice the style I used in the
header. Is there a way for the TOC to recognize the style in a header
 
A TOC is based on headings, not headers. The TOC cannot see anything in the
header/footer story. This is by design. Since a header/footer appears on
every page, there is no page number associated with it. The TOC will reflect
Heading 1 and Heading 2 styles in the document body.
 
As Suzanne has explained, Word does not include text in headers or footers in
a table of contents. If you want to continue placing heading text directly in
the header or footer, you will have to add a TC field in the document body
for the text that should be included in the TOC. For more, see
http://sbarnhill.mvps.org/WordFAQs/TOCTips.htm.

However, the usual approach is to keep the headings in the document body and
insert a STYLEREF field to repeat the current heading in the header (or
footer). For more on this, see (the first section of) the article at
http://sbarnhill.mvps.org/WordFAQs/StyleRef.htm.
 
Back
Top