View Single Post
  #4   Report Post  
Posted to microsoft.public.word.pagelayout
Jay Freedman Jay Freedman is offline
external usenet poster
 
Posts: 9,854
Default Linking Table of Contents to show text from a header

Yes, I realized that -- of course, after I hit Send.

Still, the TC fields must be in the main text, not in the header pane or any
other story. Since the text to be displayed in the TOC isn't present in the
main text, the choice is either to construct the TC field in the header and
then cut/paste it to the main text (displaying Hidden text in order to be
able to see it), or to construct the field directly in the main text.

Suzanne S. Barnhill wrote:
If Stacks324 is creating the TOC using Alt+Shift+O, then he/she is
already using TC fields.


"Jay Freedman" wrote in message
...
Stacks324 wrote:
I am currently putting togather the annual reports for a client and
am linking the section titles to my table of contents using
alt+shift+o. I am having difficulty when the client has the title
of the section in the header rather than as a heading as the method
I mentiond before doesn't work. I can't add a heading in as the
report has to match the client exactly, does anyone know how to get
around this?


The TOC generator can't "see" the header, footer, text box, and other
stories other than the main text. (The article
http://word.mvps.org/faqs/customizat...ceAnywhere.htm explains
about stories in Word documents.)

Instead, you can place a hidden, nonprinting field in the main text
at the proper location and tell the TOC to include it.

At each point where you would normally mark a section title heading
(but there isn't one now), click Insert Field and choose to insert
a TC field. Enter the text you want to appear in the table of
contents. Check the box for "outline level" and tell it what level
to use. TC fields are automatically marked as Hidden text. Unlike most
fields
whose codes are displayed by Shift+F9 or Alt+F9, these fields appear
only when you display Hidden text (for example, by clicking the ¶
button). In the Table of Contents dialog, click the Options button and
check
the box for the Table Entry Fields option. You should leave the
Styles option checked as well, so the TOC will include both kinds of
entries. Then update the TOC.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.