WD2000: How to Create Multiple Tables of Contents in One Document

ID: Q211791


The information in this article applies to:
  • Microsoft Word 2000


SUMMARY

This article describes how to create multiple table of contents in a Word document.


MORE INFORMATION

Use the method that is appropriate for your situation.

Method 1: When Using Standard Heading Styles

NOTE: Standard (built-in) heading styles are the build-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 using 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:


    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, under Field names, click to select TOC.


  6. Click Options.


  7. On the Options tab, under Switches, click to select \b and 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 into the Field codes box and type the bookmark name for this section of your document. This is the bookmark name you created in step 1. The Field codes box should now look similar to the following:


  9. TOC \b Part1
  10. Click OK to close the Field Options dialog box.


  11. 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


  12. {TOC \b Part1 \* MERGEFORMAT}
    press ALT+F9 to show the results of your table of contents.

  13. Repeat steps 3 through 10 for each section of your document for which you want a separate table of contents.


Method 2: When Using Custom Heading Styles

NOTE: Custom heading styles are the heading styles 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:


    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, under Field names, click to select TOC.


  6. Click Options.


  7. On the Options tab, under Switches, click to select \b and 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 into the Field codes box and type the bookmark name for this section of your document. This is the bookmark name you created in step 1. The Field codes box should now look similar to the following:


  9. TOC \b Part1
  10. Click Options.


  11. On the Options tab, under Switches, click to select \t and click Add to Field.


  12. Click into the Field codes box and type the name of your custom style (for example: MyCustomStyle) that you want to use to build the table of contents. The Field codes box should now look similar to the following:


  13. TOC \b Part1 \t MyCustomStyle
  14. Click OK to close the Field Options dialog box.


  15. 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


  16. {TOC \b Part1 \t MyCustomStyle \* MERGEFORMAT}
    press ALT+F9 to show the results of your table of contents.

  17. Repeat steps 3 through 13 for each section of your document for which you want a separate table of contents using your custom style.


Method 3: When Using 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, then 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 will appear.


  2. The text you selected should appear in the Entry box. Change the Table identifier box to the appropriate identifier.

    For example, click to select C as the table identifier for the selected text. If you mark additional text to include in the same table of contents, make sure 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 will create a TC field in your document that contains the text that you selected similar to the following:
    {TC "Text" \f C \l "1"}
    where "Text" is the text that you selected to include in your table of contents.


  4. Do one of the following:


    • To mark additional text to include in the same table of contents, following these steps:


      1. With the Mark Table of Contents Entry dialog box open, click back into your Word document.


      2. Click to select the additional text you want to include and then click back into the Mark Table of Contents Entry dialog box. The text you selected should now appear in the Entry box.


      3. Do not change the Table identifier box. The identifier needs to be the same for each selection of text that is to be included in the same table of contents. However, if you want the newly selected text to be a different indent level, change the Level box to the appropriate setting.


      4. Click Mark.


      -or-

    • Click Close to close the Mark Table of Contents Entry dialog box.


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, under Field names, click to select TOC and then click Options.


  3. In the Options dialog box, under Switches, click to select \f and click Add to Field.


  4. Click into 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 should now look similar to the following:


  5. TOC \f C
  6. Click OK to close the Field Options dialog box.


  7. 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


  8. {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.

Method 4: When Using 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 for 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, under Build table of contents from, click to select both the Styles and the Table entry fields check boxes 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, click to select or change any of the options you want 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 to the following message:


  7. Do you want to replace the selected table of contents?
Your table of contents should now appear. If you do not see the table of contents, but instead 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}
press ALT+F9 to show the results of your table of contents.


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.

Additional query words: tables contents many

Keywords : kbdta kbfield wd2000
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbhowto


Last Reviewed: January 18, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.