Microsoft KB Archive/257877

= HOW TO: Create a Table of Contents in a Master Document =

Article ID: 257877

Article Last Modified on 12/12/2002

-

APPLIES TO


 * Microsoft Word 2000 Standard Edition

-



This article was previously published under Q257877



IN THIS TASK
SUMMARY Use Heading Styles to Mark Text Use Table Entry ({TC}) Fields to Mark Text
 * Method 1: Use the Fields Command
 * Method 2: Use the Mark Table of Contents Entry Dialog Box

Create a Table of Contents Troubleshooting REFERENCES



SUMMARY
This article explains how to create a table of contents in a master document.

In Word 2000, you can create a table of contents based on styles, Table Entry ({TC}) fields, or a combination of styles and table entry fields. To create a table of contents in a master document, you perform a similar process as when you create a table of contents in a normal Word document. Before you can build a table of contents, you must apply heading styles to the text that you want to include in the table of contents, or you must format the text by marking it with Table of Contents Entry fields, or both.

back to the top

Use Heading Styles to Mark Text

 * 1) Select the text that you want to appear in the table of contents.
 * 2) On the Format menu, click Style.
 * 3) In the Styles box, click the heading style (Heading 1 through Heading 9) that you want to apply, and then click Apply.

back to the top

Use Table Entry ({TC}) Fields to Mark Text
Use one of the following methods to create Table of Contents Entry fields:

Method 1: Use the Fields Command
 Click where you want to create the TC field. On the Insert menu, click Field. In the Categories list, click Index and Tables. In the Field names list, click TC.

The TC field has the following syntax:

TC "text" [switches]

TC appears in the Field codes box. Click after the TC, and then press SPACEBAR once. Type the text that you want to appear in the table of contents. Be sure to enclose this text in quotation marks. If you want to add a switch to the TC field, click Options. You can use the following switches with the TC field:

Select the switch that you want, and then click Add to Field. If the switch requires an identifier, click after the switch, press SPACEBAR, and then type the unique identifier. Click OK.</ol>

back to the top

Method 2: Use the Mark Table of Contents Entry Dialog Box

 * 1) Select the text that you want to appear in your table of contents.
 * 2) Press ALT+SHIFT+O.

The Mark Table of Contents Entry dialog box appears. The selected text appears in the Entry box.
 * 1) Select the Table Identifier and Level settings that you want to mark your Table of Contents Entry as, and then click Mark.

NOTE: Repeat these steps for each occurrence of text that you want to appear in your table of contents.

back to the top

Create a Table of Contents
<ol> Display the master document in outline view. To switch to outline view, click Outline on the View menu.</li> Expand all of the subdocuments. To do this, click Expand Subdocument on the Outlining toolbar.</li> Click where you want to insert the table of contents.</li> On the Insert menu, click Index and Tables, and then click the Table of Contents tab.</li> Do one of the following: <ul> To use one of the available designs, click a design in the Formats box.

-or-</li> To specify a custom table of contents layout, follow these steps: <ol style="list-style-type: lower-alpha;"> In the Formats box, click From template, and then click Modify.</li> Under Styles, click the style that you want to change, and then click Modify.</li> To add the new style definition to your template, click to select the Add to template check box.</li> Click Format, and then select the options that you want.</li> Click OK to close the Modify Style dialog box.</li> Click Close to close the Style dialog box.</li></ol> </li></ul> </li> Click Options.</li> In the Table of Contents Options dialog box, click to select the Styles check box, the Table Entry Fields check box, or both check boxes.

If you selected Styles, the heading styles that you can use are available (not dimmed), and you can specify a TOC level for each style that you want to include in the table of contents.</li> Click OK to close the Table of Contents Options dialog box.</li> <li>Click OK to close the Index and Tables dialog box.</li></ol>

back to the top

Troubleshooting
If error messages instead of pages numbers are displayed in the table of contents, you probably made the table of contents or index into an individual subdocument. To update the table of contents, you must work on the subdocument from within the master document; you cannot update the table of contents while you work on it as an open subdocument. Close the subdocument that contains the table of contents, and then open the master document. Expand the subdocuments. Click anywhere in the table of contents, and then press F9 to update the page numbers.

If field codes are displayed (for example, {TOC \o "1-8" \h \z \t "Heading 3,3"}) rather than the table of contents, press ALT+F9, click the table of contents ({TOC}) field, and then press F9 to update the field. In the Update Table of Contents dialog box, click Update Entire Table, and then click OK.

If the Heading style 1 paragraphs in the table of contents begin with no number, you specified chapter numbering in the subdocuments but not in the master document.

For additional information, click the article number below to view the article in the Microsoft Knowledge Base:

212011 WD2000: TOC or Index Starts with No Number for Heading 1 Style

back to the top

<div class="references_section">