Microsoft KB Archive/257877

From BetaArchive Wiki

Article ID: 257877

Article Last Modified on 12/12/2002



APPLIES TO

  • Microsoft Word 2000 Standard Edition



This article was previously published under Q257877

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

  1. Click where you want to create the TC field.
  2. On the Insert menu, click Field.
  3. 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.
  4. 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.
  5. You can use the following switches with the TC field:

    Switch

    Description

     

     

    \f Type

    The type of items collected in a particular contents list. Use a unique Type identifier (typically a letter from A through Z) for each type of list. For example, to build a list of illustrations, mark each illustration with a field such as {TC "Illustration 1" \f i}, where "i" indicates only illustration entries. If no type is specified, the entry is listed in the table of contents.

     

     

    \l Level

    The level of the TC entry. For example, the {TC "Entering Data" \l 4} field marks a level-4 entry, and Word applies the built-in style TOC 4 to that entry in the table of contents. If no level is specified, level 1 is assumed.

     

     

    \n

    Omits the page number for the entry.



    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.
  6. Click OK.

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

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

      -or-
    • To specify a custom table of contents layout, follow these steps:
      1. In the Formats box, click From template, and then click Modify.
      2. Under Styles, click the style that you want to change, and then click Modify.
      3. To add the new style definition to your template, click to select the Add to template check box.
      4. Click Format, and then select the options that you want.
      5. Click OK to close the Modify Style dialog box.
      6. Click Close to close the Style dialog box.
  6. Click Options.
  7. 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.
  8. Click OK to close the Table of Contents Options dialog box.
  9. Click OK to close the Index and Tables dialog box.

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

REFERENCES

For additional information about how to number chapters, appendixes, and pages, click the article number below to view the article in the Microsoft Knowledge Base:

212173 WD2000: Number Chapters, Appendixes, and Pages in Word 2000 Documents That Contain Both Chapter and Appendix Headings


back to the top

Keywords: kbhowto kbhowtomaster wd2000 kbdta KB257877