table of contents from text in header

S

Somewhereinamerica

I need to generate a table of contents for text that is in the header
of each section. It is all the same custom style, but it doesn't show
up when I make the TOC.
 
J

John McGhie

That's right. The "Header" is not ON the page in the file, so it cannot
have a page number. So the Table of Contents Generator does not look there.

Do the job the other way around: put a Heading on the page, then use a
StyleRef field to copy its text into the header. Look up "StyleRef" in the
Help to see how.

In a document, the "Running Header" is not part of the main text story of
the document. All of the headers and footers are collected in a table at
the end of the file. Word sends a set along with each page break when the
file is on its way to the printer. It fakes this on the way to the screen
when it displays the document.

But the reason your header text doesn't appear in the TOC is that there's no
such thing on the "page" in the document.

There's no such thing as a "page" in a Word Document either, but that's the
subject of a different bed-time story :)

cheers


I need to generate a table of contents for text that is in the header
of each section. It is all the same custom style, but it doesn't show
up when I make the TOC.

--

Please reply to the newsgroup to maintain the thread. Please do not email
me unless I ask you to.

John McGhie <[email protected]>
Consultant Technical Writer
Sydney, Australia +61 4 1209 1410
 

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