Complex Table of Contents in Work 2003

A

Alaska_Word_novice

I need to create a table of contents that has the section title and the
regulation code on the same line. Does anyone have any idea how to creat
this so it can be automatically updated as I add to the document.

my section titles appear like this:

Well Locations

20AAC 25.252 (c) 1

I would like the table of contents to appear like this:

Well Locations 20AAC 25.252 (c) 1...........................3

Is this posible? If so how do I set it up?

Can I create my own TOC template to do this?

Any advise would be greatly appreciated.

Thanks,
Alaska_Word_novice
 
J

Jay Freedman

Alaska_Word_novice said:
I need to create a table of contents that has the section title and
the regulation code on the same line. Does anyone have any idea how
to creat this so it can be automatically updated as I add to the
document.

my section titles appear like this:

Well Locations

20AAC 25.252 (c) 1

I would like the table of contents to appear like this:

Well Locations 20AAC 25.252 (c) 1...........................3

Is this posible? If so how do I set it up?

Can I create my own TOC template to do this?

Any advise would be greatly appreciated.

Thanks,
Alaska_Word_novice

I'll assume that you have already applied specific styles to the two pieces
of each title. I'll use "Heading 1" and "Heading 2" styles, but any pair of
styles (including ones you made up) will do, as long as they were applied
uniformly throughout the document.

You need to create a TC field for each title that builds up the information
you want in the table of contents.

First turn on display of hidden text by clicking the ¶ button, because a TC
field is automatically made hidden and you'll need to see what you're doing.

Press Ctrl+F9 to insert a pair of field markers, and type the letters TC
between them. Then type a space and two double-quotes:

{ TC "" }

Between the double-quotes, press Ctrl+F9 again. Inside this pair of markers,
type the text shown below (or replace "Heading 1" with the name of the style
applied to the section titles):

{ TC "{StyleRef "Heading 1"}" }

Now put the cursor just before the last double-quote, type a tab character,
and press Ctrl+F9 a third time:

{ TC "{ StyleRef "Heading 1" } { }" }

Type in the text shown below (or replace "Heading 2" with the name of the
style applied to the regulation codes):

{ TC "{ StyleRef "Heading 1" } { StyleRef "Heading 2" }" }

I recommend that at this point you highlight the whole thing and make it
into an AutoCorrect entry. That would make it easier to insert in many
places rather than copying and pasting.

Put a copy of this TC field at the beginning of the paragraph immediately
after each regulation code. When you select it and press F9 to update the
field, the two interior StyleRef fields will make hidden copies of the
preceding section title and regulation code.

The final piece of this is to insert a table of contents that displays only
the information from the TC fields, not from the regular headings. To do
that, go into the Insert > Table of Contents dialog and click the Options
button. Check the box for "Table entry fields" and uncheck the boxes for
"Styles" and "Outline levels". Click OK there and in the TOC dialog.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
J

Jay Freedman

Jay said:
I'll assume that you have already applied specific styles to the two
pieces of each title. I'll use "Heading 1" and "Heading 2" styles,
but any pair of styles (including ones you made up) will do, as long
as they were applied uniformly throughout the document.

You need to create a TC field for each title that builds up the
information you want in the table of contents.

First turn on display of hidden text by clicking the ¶ button,
because a TC field is automatically made hidden and you'll need to
see what you're doing.
Press Ctrl+F9 to insert a pair of field markers, and type the letters
TC between them. Then type a space and two double-quotes:

{ TC "" }

Between the double-quotes, press Ctrl+F9 again. Inside this pair of
markers, type the text shown below (or replace "Heading 1" with the
name of the style applied to the section titles):

{ TC "{StyleRef "Heading 1"}" }

Now put the cursor just before the last double-quote, type a tab
character, and press Ctrl+F9 a third time:

{ TC "{ StyleRef "Heading 1" } { }" }

Type in the text shown below (or replace "Heading 2" with the name of
the style applied to the regulation codes):

{ TC "{ StyleRef "Heading 1" } { StyleRef "Heading 2" }" }

I recommend that at this point you highlight the whole thing and make
it into an AutoCorrect entry. That would make it easier to insert in
many places rather than copying and pasting.

Put a copy of this TC field at the beginning of the paragraph
immediately after each regulation code. When you select it and press
F9 to update the field, the two interior StyleRef fields will make
hidden copies of the preceding section title and regulation code.

The final piece of this is to insert a table of contents that
displays only the information from the TC fields, not from the
regular headings. To do that, go into the Insert > Table of Contents
dialog and click the Options button. Check the box for "Table entry
fields" and uncheck the boxes for "Styles" and "Outline levels".
Click OK there and in the TOC dialog.

For more help, with pictures, see the last part of
http://sbarnhill.mvps.org/WordFAQs/StyleRef.htm.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 

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