HOW TO: Create Multiple Tables of Contents in One Document in Word 2000 (211791)



The information in this article applies to:

  • Microsoft Word 2000

This article was previously published under Q211791

SUMMARY

This step-by-step article describes how to create multiple tables of contents in a Word document.

Use the method that is appropriate for your situation.

back to the top

If You Use Standard Heading Styles

NOTE: Standard (built-in) heading styles are the built-in heading styles in Microsoft Word. For example, the styles "Heading 1", "Heading 2", "Heading 3" are standard heading styles. This procedure assumes you have already formatted the appropriate text with the standard heading styles.

Use this method when you want to create a table of contents with standard heading styles for a specific section in a Word document.
  1. Create a separate bookmark for each section of the document for which you want to create a table of contents. To create the bookmark, follow these steps:
    1. Select the entire section, and then click Bookmark on the Insert menu.
    2. In the Bookmark name text box, type a name for the bookmark, for example Part1, and then click Add.
  2. Repeat step 1 for each section of the document for which you want to build a separate table of contents and assign a different bookmark name for each section.
  3. Move the insertion point to the location where you want the table of contents to appear for a particular section.
  4. On the Insert menu, click Field.
  5. In the Field dialog box, click TOC under Field names.
  6. Click Options.
  7. On the Options tab, click \b under Switches, and then click Add to Field.

    NOTE: The \b switch uses a bookmark to specify the area of the document from which to build a table of contents.
  8. Click anywhere in the Field codes box, and then type the bookmark name for this section of your document.

    This is the bookmark name that you created in step 1. The Field codes box should now look similar to the following:

    TOC \b Part1

  9. Click OK to close the Field Options dialog box.
  10. Click OK to close the Field dialog box.

    Your table of contents for the specified section should now appear. If you do not see the table of contents, but instead see a field code similar to the following

    {TOC \b Part1 \* MERGEFORMAT}

    press ALT+F9 to show the results of your table of contents.
  11. Repeat steps 3 through 10 for each section of your document for which you want a separate table of contents.
back to the top

If You Use Custom Heading Styles

NOTE: Custom heading styles are the heading styles that you have created in Microsoft Word. This procedure assumes you have already formatted the appropriate text with your custom heading styles.

Use this method when you want to create a table of contents using your custom heading styles for a specific section in a Word document.
  1. Create a separate bookmark for each section of the document for which you want to create a table of contents. To create the bookmark, follow these steps:
    1. Select the entire section, and then click Bookmark on the Insert menu.
    2. In the Bookmark name text box, type a name for the bookmark, for example Part1, and then click Add.
  2. Repeat step 1 for each section of the document for which you want to build a separate table of contents and assign a different bookmark name for each section.
  3. Move the insertion point to the location where you want the table of contents to appear for a particular section.
  4. On the Insert menu, click Field.
  5. In the Field dialog box, click TOC under Field names.
  6. Click Options.
  7. On the Options tab, click \b under Switches, and then click Add to Field.

    NOTE: The \b switch uses a bookmark to specify the area of the document from which to build a table of contents.
  8. Click anywhere in the Field codes box, and then type the bookmark name for this section of your document.

    This is the bookmark name that you created in step 1. The Field codes box should now look similar to the following:

    TOC \b Part1

  9. Click Options.
  10. On the Options tab, click \t under Switches, and then click Add to Field.
  11. Click anywhere in the Field Codes box, and then type the name of your custom style that you want to use to build the table of contents. (For example, type the name MyCustomStyle.)

    The Field Codes box should now look similar to the following:

    TOC \b Part1 \t MyCustomStyle

  12. Click OK to close the Field Options dialog box.
  13. Click OK to close the Field dialog box.

    Your table of contents for the specified section should now appear. If you do not see the table of contents, but instead see a field code similar to the following

    {TOC \b Part1 \t MyCustomStyle \* MERGEFORMAT}

    press ALT+F9 to show the results of your table of contents.
  14. Repeat steps 3 through 13 for each section of your document for which you want a separate table of contents using your custom style.
back to the top

If You Use TC Fields

Use this method when you want to build a table of contents using TC fields and not heading styles.

Step 1: Mark the Text with TC Fields

If you will be using TC fields to build the table of contents, mark the text that you want to include in the table of contents. To do this, follow these steps:
  1. Select the text that you want to include and then press ALT+SHIFT+O.

    The Mark Table of Contents Entry dialog box appears.
  2. The text that you selected should appear in the Entry box. Change the Table identifier box to the appropriate identifier.

    For example, click C as the table identifier for the selected text. If you mark additional text to include in the same table of contents, make sure that you use the same table identifier.

    NOTE: You can also assign a different indent level to the selected text by changing the number in the Level box.
  3. Click Mark.

    Word creates a TC field in your document that contains the text that you selected. The TC field appears similar to the following example

    {TC "Text" \f C \l "1"}

    where "Text" is the text that you selected to include in your table of contents.
  4. Repeat steps 1 through 3. Do not change the Table identifier box if you want to include the selected text in the same table of contents. However, if you want the newly selected text to have a different indentation level, change the Level box to the appropriate setting.
  5. When you are finished selecting entries for the table of contents, click Close to close the Mark Table of Contents Entry dialog box.
back to the top

Step 2: Create the Table of Contents Using the TC Fields

After you have marked all of the text you want to include in a specific table of contents, you now need to build the table of contents. To do this, follow these steps:
  1. On the Insert menu, click Field.
  2. In the Field dialog box, click TOC under Field names, and then click Options.
  3. In the Options dialog box, click \f under Switches, and then click Add to Field.
  4. Click anywhere in the Field Codes box and type the table identifier you used for the TC fields for this table of contents.

    For example, if you marked text (in step 1 of this method) with the table identifier of C, then type C in the Field Codes box.

    The Field Codes box now looks similar to the following:

    TOC \f C

  5. Click OK to close the Field Options dialog box.
  6. Click OK to close the Field dialog box.

    Your table of contents for the specified section should now appear. If you do not see the table of contents, but instead see a field code similar to the following

    {TOC \f C \* MERGEFORMAT}

    press ALT+F9 to show the results of your table of contents.
NOTE: Repeat step 1 and step 2 of this method for each separate table of contents you want in your Word document.

back to the top

If You Use a Combination of Heading Styles and TC Fields

Use this method when you want to build a table of contents using both heading styles and TC fields. For example, use this method when you want to build a main table of contents for your Word document.

NOTE: This procedure assumes you have already marked the text to be included in your table of contents using either heading styles (custom heading styles) and TC fields.
  1. Move the insertion point to the location where you want the table of contents to appear in the document.
  2. On the Insert menu, click Index and Tables.
  3. On the Index and Tables tab, click Options.
  4. In the Table of Contents Options dialog box, select both the Styles check box and the Table entry fields check box under Build table of contents from, and then click OK.

    NOTE: Under Available styles, make sure that each of the styles (standard or custom styles) are selected that you want to use to build the table of contents.
  5. Click OK to close the Table of Contents Options dialog box.
  6. On the Table of Contents tab, select or change any of the options to modify the style of your table of contents, and then click OK.

    NOTE: If you have other table of contents in your Word document, click No when you receive the following message:

    Do you want to replace the selected table of contents?

The table of contents is now displayed. If you see a field code similar to the following

{TOC \o \f \h \z \t "Heading 4,4,Heading 5,5,Heading 6,6,Heading 7,7,Heading 8,8,Heading 9,9" \* MERGEFORMAT}

instead of the table of contents, press ALT+F9 to show the results of your table of contents.

back to the top

REFERENCES

For more information about the table of contents field, click Microsoft Word Help on the Help menu, type toc field in the Office Assistant or the Answer Wizard, and then click Search to view the topics returned.

For more information about table of contents entry fields, click Microsoft Word Help on the Help menu, type tc field in the Office Assistant or the Answer Wizard, and then click Search to view the topics returned.

For more information about styles, click Microsoft Word Help on the Help menu, type styles in the Office Assistant or the Answer Wizard, and then click Search to view the topics returned.

back to the top

Modification Type:MajorLast Reviewed:10/27/2002
Keywords:kbfield kbhowto kbHOWTOmaster KB211791