Categories
Microsoft Word

Create and Modify Table of Contents

A table of contents (commonly referred to as a TOC) is a list of headings and subheadings to help readers locate specific information in the document. To create a TOC, you can use Word’s built-in heading styles, or you can create your own heading styles by setting paragraph levels.

  1. Table of Contents Requirements
  2. Create Table of Contents
  3. Update Table of Contents
  4. Remove Table of Contents
  5. Customtomize Table of Contents
  6. Table of Contents Options
  7. Create a TOC using any styles
  8. Modify Table of Contents Styles
  9. The TOC Field

TOC Requirements:

  • Use heading styles:
    Word uses heading styles to create a Table of Contents, which reflects the heading names and their page numbers. It is recommended to use Heading 1 for main headings, Heading 2 for subheadings, and Heading 3 for lower-level headings in your documents. (See Appy, Create, and Modify Styles).
  • Or, use outline levels
    Word’s default normal template assigns each heading style a level, for example, it assigns Level 1 to Heading 1 style, Level 2 to Heading 2 style, and so on. If you are using your own heading styles then you must specify the proper outline levels to these headings to create a table of contents.. ( See Outline View to Control Levels).

Create table of contents

If you used the heading style (or set outline levels properly on custom headings) you won’t have a problem in creating a table of content. The Navigation pane displays these headings when you’re working in the document. Follow these steps to create a table of contents:

  1. Insert a blank page
    The best place to insert a TOC is the page next to the title page of the document.
  2. Click at the top of the blank page or where you want to insert the TOC.
  3. Click the References tab.
  4. In the Table of Contents group, click the Table of Contents drop-down.
  5. The built-in TOC styles appear, choose a TOC style to create table of contents:
Built-in Table of Contents Gallery

Following is the brief description of three built-in TOC tables as shown in the above figure:

  • Automatic Table 1
    Inserts the title Contents as heading for the a table of contents.
  • Automatic Table 2
    Inserts the title Table of Contents as heading for the a table of contents.
  • Manual Table
    Inserts the title Table of Contents and editable table of contents which you can edit and replace with your text and numbers.

Update table of contents

The Table of Contents is a field (see, the TOC field) and it is not automatically updated when you make changes in the document. You need to update the Table of Contents when:

  • a heading’s text has changed.
  • you added or removed anything from the document that caused the change in the document’s page numbering.

Follow one of the below steps to open the Update Table Of Contents dialog box:

Update Table of Contents
  • Click the References tab, in the Table of Contents group, click the Update Table button.
  • Click anywhere in the table of contents, and then click the Update Table button which appears above the toc table.
  • Right-click on the table of contents, and then click Update Field from the shortcut menu.

The Update Table of Contents dialog box gives you two choices:

Update Table of Contents dialog box
  • .Update page numbers only
    Choose this option if you want to update the page numbers but not the headings.
  • Update entire table
    Choose this option if you want to update both the headings and page numbers.

Choose any option and then click OK to update the TOC.

Remove Table of Contents

To delete a table of contents:

  1. Click in the table of contents
  2. Click References tab.
  3. Click Remove Table of Contents in the Table of Contents group.

Or,

  1. Click anywhere in the table of contents
  2. Click the drop-down button that appears above the table.
  3. Click Remove Table of Contents from the menu.
Remove table of contents

Custom Table of Contents

You can customize the Table of Contents if the pre-defined TOCs in the gallery do not meet your needs. The Custom Table of Contents command displays a dialog box where you can customize the appearance of the Table of Contents for the current document. To display the Table of Contents dialog box:

  1. Click the References tab.
  2. In the Table of Contents group, click the Table of Contents drop-down.
  3. Then click Custom Table of Contents as shown in the following figure:
The Table of Contents dialog box

The preview boxes show the TOC appearance, the print preview box shows page numbers while the web preview shows only links.

Using this dialog box, you can use the following options to customize the appearance of your TOC:

  • Show page numbers:
    Uncheck this option if you want to hide page numbers in the TOC.
  • Right align page numbers:
    This option uses Right tab stop to makes the page numbers appear aligned to the right page border in the TOC.
  • Tab leader:
    Choose a different style from the drop-down to fill the space between text and page number in the TOC.
  • Use hyperlinks instead of page numbers:
    Word will remove pages number when you save/export the document in HTML format.
  • Formats:
    This drop-down offers Classic, Distinctive, Fancy, Modern, Formal, and Simple format to customize the style of TOC.
  • Show levels:
    By default, a TOC shows the headings to level 3 (Heading 1, Heading 2, and Heading 3). To show more or less levels in the TOC, use the numbers 1 to 9. For example, if you want to display the main headings (Heading 1) only in the TOC choose 1.
  • Options:
    Shows the Table of Contents Options dialog box.
  • Modify:
    See, Modify TOC Styles.

Table of Contents Options

How to open Table of Contents Options dialog box
Table of Contents Options dialog box

The Table of Contents Options dialog box enables you to build a TOC from:

  • Styles
    By default, this optin is checked. Headings 1, 2, and 3 are assigned to TOC levels 1, 2, and 3. You can assign Heading 4 to level 4 (Heading 5 to level 5 and so on) if your document requires that level.
    Scroll down this area to see other styles that you used in the document. You also can use other styles to create a TOC, for example, if you used Title and Subtitle styles in the document, you can assign Title to level 1 and Subtitle to level 2 (see, Create a TOC with other Word styles).
  • Outline levels
    By default, this optin is checked. Word also use the Level 1, 2 and 3 for creating the TOC if you’ve properly set the levels in the document (See, Outline View to set text levels).
  • Table entry fields
    Check this box if you’ve inserted TC fields in the document and want to insert these fields in the TOC.
    Note: You can insert a TC field by pressing the Ctrl+Alt+O keyboard buttons (See, Using Fields in Word).

Create a TOC using any styles

By default, Word uses Styles and Outline levels to create a TOC. In this tutorial, you’ll learn how to use other styles for creating a TOC other than the Heading styles. Watch the following video:

Customize Table of Contents: Used Title and Subtitle styles instead of Heading styles to create the TOC.
Video: Use Title and Subtitle styles to create Table of Contents

Table of Contents Styles

how to open table of contents styles dialog box
Table of Contents Styles dialog box

To modify styles used in a Table of Contents:

  1. Click References tab.
  2. In the Table of Contents group, click Table of Contents drop-down.
  3. Choose Custom Table of Contents.
  4. In the Table of Contents dialog box, make sure that you’ve selected From Template in the Formats drop-down.
  5. Click Modify button.
  6. The Style dialog box appears.

In the Style dialog box, you can add a new style, delete or modify existing styles used in the table of contents. When you click Modify button in the Style dialog box, the Modify Style dialog box appears, in which you can make formatting changes to the selected style. (See, Create, apply or modify styles in Word).

The TOC Field

When you insert a Table of Contents, Word creates that table using the TOC field code. To see the field code, right click on the Table of Contnets table and click Toggle Field Codes option from the shortcut menu:

Table of Contents – Toggle Field Codes

By default, Word uses the {TOC \o "1-3" \h \z \u} field code to create an automatic table. To understand what each of the switches means:

  1. Click the Insert tab.
  2. In the Text group, click Quick Parts drop-down and choose Field.
  3. The Field dialog box displayed.
  4. Under Field names, scroll down and click TOC.
  5. Click Field Codes button.
  6. The TOC code will displayed in the Field Codes box
  7. Click the Options button to see a list of TOC switches.
TOC Field Code and Switches

Click each of the switches to see its description, for more information visit, Working with Fields in Word.