Wednesday, December 19, 2018

Format or customize a table of contents

Format or customize a table of contents

After you have created a table of contents in Word, you can customize the way it appears. For example, you can change the layout, change the text formatting, select how many heading levels to show, and choose whether to show dotted lines between the entries and the page numbers.

For basic instructions on customizing a table of contents, see Change the layout of your table of contents below.

Here are some other ways you can edit your table of contents.

Format the text:

Shows before and after views of formatting text styles in a TOC

Change the level of an entry:

Shows changing a level 3 entry to a level 4 entry

Add dot leaders:

Shows adding dot leaders to a table of contents

Change the number of levels shown:

Shows changing number of levels so that level 3 no longer appears

Change the layout of your table of contents

  1. On the References tab of the Ribbon click Table of Contents > Custom Table of Contents.

    Custom Table of Contents
  2. Make your changes in the Table of Contents dialog box. You'll see what they look like in the Print Preview and Web Preview areas.

    • To add a dot leader, or dotted line, between each entry and its page number, click the Tab leader list and then click the dotted line. You can also choose a dash leader or remove the leader entirely and just have a blank space.

      Change the tab leader in your table of contents to dashes or dots.
    • To change the overall appearance of your table of contents, click the Formats list, and then click the format that you want.

    • To change the number of levels displayed in your table of contents, click Show levels, and then click the number of levels you want.

    Table of Contents dialog box

    Tip: "Levels" in this context refers to your heading levels. You may have Heading 1 for your major headings then Heading 2 for your subsections of those headings. You can have even more sub-levels within those that in your table of contents if you choose.

  3. Click OK.

What else would you like to do?

To change how the text in your table of contents looks, change the style for each level in the table of contents.

  1. On the References tab of the Ribbon click Table of Contents > Custom Table of Contents.

  2. In the Table of Contents dialog box, click Modify. If the Modify button is grayed out, change Formats to From template.

    Use the Table of Contents dialog box to customize the appearance of your table of contents.
  3. In the Styles list, click the level that you want to change and then click Modify.

    The Modify Style dialog lets you update how the text in your table of contents will look.
  4. In the Modify Style dialog box, make the formatting changes that you want, and then click OK.

  5. Repeat steps 3 and 4 for all the levels that you want to display in your table of contents.

Word will remember these customizations each time you update the table of contents in this document.

To change the level of an entry in your table of contents, just change the heading level of that text in the body of your document.

  1. Click the heading that you want to change.

  2. On the Home tab, in the Styles group, click the heading level you want.
    Heading 1 in Styles Gallery

  3. On the References tab, click Update Table.
    Update Table of Contents

  4. Click Update entire table, and then click OK.

If you've already added a table of contents to your document, the following procedure will replace it with a new table of contents that contains the same information and has dot leaders, or dotted lines, between the entries and the page numbers.

  1. Click References > Table of Contents > Custom Table of Contents.

    Custom Table of Contents

  2. In the Table of Contents dialog box, in the Tab leader list, click the dotted line option.

    Dot leader option in the table of contents dialog box

To change the number of levels shown in your table of contents is to replace the existing table with one that contains the levels you want. A shorter, but more technical way to do it is to edit the field code information.

  1. Click References > Table of Contents > Custom Table of Contents.

    Custom Table of Contents

  2. In the Table of Contents dialog box, in the Show levels list, choose the number of levels that you want, and then click OK.

    Table of Contents dialog box

    For example, if you click 2, then all text with the Heading 1 style or the Heading 2 style applied is displayed in the table of contents.

  3. When you are asked whether you want to replace the existing table of contents, click Yes.

Word inserts fields automatically when you use particular commands. For example, when you Add page numbers, Word inserts the Page field. When you Create a table of contents, Word inserts the TOC field.

You can edit the field code information to quickly change the number of levels shown in your TOC.

  1. Click in your table of contents, and then press Alt+F9. The field code information appears between curly brackets and looks like this:

    TOC field code

  2. Change the numbers in the quotation marks. For example, if you want to show only two levels, change "1-3" to "1-2".

  3. Press Alt+F9 to display the table of contents again.

  4. Update the table of contents to see your changes (References > Update Table).

If you'd like to learn more about field codes, read Field codes in Word.

For basic instructions on editing a table of contents, see Insert a custom table of contents below.

Here are some other ways you can edit your table of contents.

Format the text:

Shows before and after views of formatting text styles in a TOC

Change the level of an entry:

Shows changing a level 3 entry to a level 4 entry

Add dot leaders:

Shows adding dot leaders to a table of contents

Change the number of levels shown:

Shows changing number of levels so that level 3 no longer appears

Insert a custom table of contents

If your document already includes a table of contents, this procedure will replace it with your customizations.

  1. On the References tab, in the Table of Contents group, click Table of Contents, and then click Insert Table of Contents.

    Insert Table of Contents

    The Table of Contents dialog box opens.

    Table of Contents dialog box

  2. Do any of the following:

    • To add a dot leader, or dotted line, between each entry and its page number, click the Tab leader list and then click the dotted line.

      You can also choose a dash leader.

    • To change the overall appearance of your table of contents, click the Formats list, and then click the format that you want.

      You can see what the different formats will look like in the Print Preview box.

    • To change the number of levels that are displayed in your table of contents, click Show levels, and then click the number of levels that you want to show.

What else would you like to do?

Here are some more ways you can edit your table of contents. Choose an option from the list below for step-by-step instructions.

To change the formatting of the table of contents that Word generates, you need to change the style for each level in the table of contents. This is separate from the styles that you applied to the headings in your document.

After you make the changes you want to the style, Word uses that style each time it updates the table of contents.

  1. On the References tab, in the Table of Contents group, click Table of Contents, and then click Insert Table of Contents.

  2. In the Table of Contents dialog box, click Modify.

    Table of Contents dialog box

  3. In the Styles list, click the level that you want to change, and then click Modify.

    Modify button

  4. In the Modify Style dialog box, make the formatting changes that you want, and then click OK.

  5. Repeat steps 3 and 4 for all the levels that you want to display in your table of contents.

To change the level of an entry in your table of contents, you need to change the heading level of that text in the body of your document.

  1. Click the heading that you want to change.

  2. On the Home tab, in the Styles group, click the heading style that corresponds to the level you want.

    Alt Text

  3. On the References tab, in the Table of Contents group, click Update Table.

    Alt Text

  4. Click Update entire table, and then click OK.

If you've already added a table of contents to your document, the following procedure will replace it with a new table of contents that contains the same information and has dot leaders, or dotted lines, between the entries and the page numbers.

  1. On the References tab, in the Table of Contents group, click Table of Contents, and then click Insert Table of Contents.

    Alt Text

  2. In the Table of Contents dialog box, in the Tab leader list, click the dotted line option.

    Dot leader option in the table of contents dialog box

  1. On the References tab, in the Table of Contents group, click Table of Contents.

    Alt Text

  2. Click Custom Table of Contents.

  3. In the Table of Contents dialog box, in the Show levels list, click the number of levels that you want in your table of contents.

    Show levels in the Table of Contents dialog box

    For example, if you click 2, then all text with the Heading 1 style or the Heading 2 style applied is displayed in the table of contents.

  4. When you are asked whether you want to replace the existing table of contents, click Yes.

Do you have a question about Word that we didn't answer here?

Post a question on the Word Answers forum.

Help us improve Word

Do you have suggestions about how we can improve tables of contents (or any other feature) in Word? If so, please visit Word User Voice and let us know!

See also

Update a table of contents

Format or customize a table of contents in Word 2016 for Mac

No comments:

Post a Comment