WD2000: How to Create Multiple Tables of Contents in One Document
ID: Q211791
|
The information in this article applies to:
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.
- Create a separate bookmark for each section of the document for which you want to create a table of contents. To create the bookmark:
- Select the entire section and then click Bookmark on the Insert menu.
- In the Bookmark name text box, type a name for the bookmark, for example Part1, and then click Add.
- 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.
- Move the insertion point to the location where you want the table of contents to appear for a particular section.
- On the Insert menu, click Field.
- In the Field dialog box, under Field names, click to select TOC.
- Click Options.
- 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.
- 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:
TOC \b Part1
- Click OK to close the Field Options dialog box.
- 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.
- 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.
- Create a separate bookmark for each section of the document for which you want to create a table of contents. To create the bookmark:
- Select the entire section and then click Bookmark on the Insert menu.
- In the Bookmark name text box, type a name for the bookmark, for example Part1, and then click Add.
- 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.
- Move the insertion point to the location where you want the table of contents to appear for a particular section.
- On the Insert menu, click Field.
- In the Field dialog box, under Field names, click to select TOC.
- Click Options.
- 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.
- 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:
TOC \b Part1
- Click Options.
- On the Options tab, under Switches, click to select \t and click Add to Field.
- 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:
TOC \b Part1 \t MyCustomStyle
- Click OK to close the Field Options dialog box.
- 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.
- 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:
- Select the text that you want to include and then press ALT+SHIFT+O. The Mark Table of Contents Entry dialog box will appear.
- 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.
- 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.
- Do one of the following:
- To mark additional text to include in the same table of contents, following these steps:
- With the Mark Table of Contents Entry dialog box open, click back into your Word document.
- 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.
- 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.
- 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:
- On the Insert menu, click Field.
- In the Field dialog box, under Field names, click to select TOC and then click Options.
- In the Options dialog box, under Switches, click to select \f and click Add to Field.
- 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:
TOC \f C
- Click OK to close the Field Options dialog box.
- 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.
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.
- Move the insertion point to the location where you want the table of contents to appear for the document.
- On the Insert menu, click Index and Tables.
- On the Index and Tables tab, click Options.
- 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.
- Click OK to close the Table of Contents Options dialog box.
- 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:
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.
REFERENCESFor 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
|