Please Note: This article is written for users of the following Microsoft Word versions: 2007, 2010, 2013, 2016, 2019, and Word in Microsoft 365. If you are using an earlier version (Word 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Word, click here: Customized Tables of Contents.

Customized Tables of Contents

Written by Allen Wyatt (last updated May 23, 2020)
This tip applies to Word 2007, 2010, 2013, 2016, 2019, and Word in Microsoft 365


1

Have you ever created a table of contents for a document? Word makes it easy to do, as described in other issues of WordTips. What if you want to customize the way in which the tables are formatted by Word?

For most formatting of TOCs, all you need to do is change the various styles assigned to the TOC entries by Word. For a standard table of contents, the style TOC 1 is used to format the TOC entry corresponding to paragraphs formatted with the Heading 1 style. Likewise, TOC 2 corresponds to Heading 2, TOC 3 to Heading 3, etc.

To change how the TOC entry looks, just change the formatting for the TOC styles. These styles are the same as any other paragraph style, so you can change font characteristics, alignment, indentation, spacing, borders, bullets—the works.

One way you might want to customize your TOC is to change a particular TOC entry, so it doesn't show page numbers. A clever way to do this is to change the style for the TOC entry so that the page number prints to the right of the edge of your paper. Just adjust the tab stop defined in the appropriate TOC entry so it is at a setting such as 9 inches, which is outside the printing area of a normal sheet of paper.

The proper way to turn off page numbers for a particular TOC level is to use a switch in the field code used to create the TOC. For instance, if you wanted the TOC entries corresponding with Heading 2 paragraphs to not include page numbers, you could follow these steps:

  1. Create your TOC as you normally would.
  2. Position the insertion point somewhere inside the TOC.
  3. Press Shift+F9. The entire TOC should collapse to a single field code, similar to what is shown here:
  4.      { TOC \o "1-3" \h \z }
    
  5. Modify the field code so it looks like this:
  6.      { TOC \o "1-3" \n "2-2" \h \z }
    
  7. With the insertion point still within the field, press F9. Word displays a dialog box that asks if you want to update the page numbers or the entire table.
  8. Choose to update the entire table, then click OK.

The resulting TOC should show page numbers on all TOC entries, except those that use the TOC 2 style.

For a great article on using switches with TOC entries, see the following Web page:

http://wordmvp.com/FAQs/Formatting/TOCSwitches.htm

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (12887) applies to Microsoft Word 2007, 2010, 2013, 2016, 2019, and Word in Microsoft 365. You can find a version of this tip for the older menu interface of Word here: Customized Tables of Contents.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Setting Spell-Checking Options

The spell checker can come in handy when entering data in a worksheet. Because the type of data you enter can vary so ...

Discover More

Formatting a Company Name

Want your company name to always appear in a particular formatted manner? Word provides two ways you can approach the ...

Discover More

Calculating the Median Age of a Group of People

Suppose you have a worksheet that contains a list of ages and then a count of people who correspond with those ages. You ...

Discover More

The First and Last Word on Word! Bestselling For Dummies author Dan Gookin puts his usual fun and friendly candor back to work to show you how to navigate Word 2013. Spend more time working and less time trying to figure it all out! Check out Word 2013 For Dummies today!

More WordTips (ribbon)

Adding Headers or Footers to a TOC

Word is very flexible in allowing you to include all sorts of information in a table of contents. This includes ...

Discover More

TOC Heading Numbers Always Show in Bold

Linda's got a document that includes a table of contents that is based on headings in the document. When the headings ...

Discover More

Insert a TOC without Upsetting Pagination

Insert a table of contents in your document, and your page numbering may get thrown for a loop. If you want the page ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 6 + 5?

2020-05-24 03:52:48

Steve Keeling

Thanks Alan
I've never been able to work out how to style tables of contents.
I think that your point that:
"TOC 1 is used to format the TOC entry corresponding to paragraphs formatted with the Heading 1 style. Likewise, TOC 2 corresponds to Heading 2, TOC 3 to Heading 3, etc."
could be the information I was missing.
I have tried fiddling with these styles while assuming that they appplied to whole ToCs and were just different types of styles for whole ToCs.
Now it makes sense.
Thanks a million and On-On!
Steve


This Site

Got a version of Word that uses the ribbon interface (Word 2007 or later)? This site is for you! If you use an earlier version of Word, visit our WordTips site focusing on the menu interface.

Videos
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.