Daily Dispatch

Power User

Word Styles: Automating a Table of Contents

By | Dec.11.14 | Daily Dispatch, Legal Technology, Power User, Skills

Power User Vivian Manning

In her latest “Power User” series, Vivian Manning has been showing how to use Microsoft Word Styles to produce documents much more efficiently. In her last column, she showed how Heading Styles can be used to structure and even reorganize documents. This time, she shows how to use Heading Styles to automate your tables of contents. No more retyping page numbers!

Most of us have a love-hate relationship with our work. If we’re lucky, we love most of what we do, most of the time. But some days, the tasks we have to perform can be downright boring, frustrating or annoying. Last month I had one of those days.

We have an unwritten policy that when working on a document prepared outside the firm, a lawyer or assistant should struggle no longer than 20 minutes before sending it along to me. Generally, I can fix whatever is “wrong” in five minutes or so, and then they can get back to work. This time, when one of our legal assistants sent along a rather lengthy draft document she had received, it took three hours to fix. It was a horror show. Every single thing had been done manually, and badly. Manual numbering, centering by using the space bar, unnecessary manual line breaks — and not a Style in sight.

One of the many changes needed was creation of a table of contents. Too often, people make the mistake of typing a table of contents from scratch — a tedious, time-consuming task fraught with the possibility of error. That unneeded effort doubles when the document gets edited, paragraphs move and page numbers change. It doesn’t have to be that way.

Word has the ability to quickly — and accurately — create an easy-to-update table of contents for your document. All you need is a document that’s properly prepared, using Word’s Styles. Then, in just a couple of clicks, Word will automatically pull every heading that has a Heading Style applied to it into a fresh table of contents, with corresponding page numbers.

Create a Table of Contents Based on Your Heading Styles

If you’ve been following along with this series on using Styles, you should have a draft document to play with — one that already has Heading Styles in it. (You can download the document linked here and save it to your desktop.) To create an automated table of contents:

  1. Open any document containing Heading Styles (or download the document linked above).
  2. Place your cursor in the area of the document where you wish the table of contents to be located.
  3. From Word’s Ribbon, choose the References tab.
  4. In the References tab, click on Table of Contents, and then click either Automatic Table 1, Automatic Table 2 or Custom Table of Contents. (See note below.) Do not choose the Manual Table option.
  5. The table of contents will appear automatically at the insertion point.

Note: If you use Automatic Table 1 or Table 2, your table of contents will only show entries for Heading Styles 1 through 3 (see below). If you used other Heading Styles in your document, they will not appear in the table of contents. In that case, choose the Custom Table of Contents option.

TOC Figure 1

TOC Fig 2

With just these few clicks, your document has an automated table of contents that looks something like this:

TOC Fig 4

A Quick Primer on Using Word’s Table of Contents

It’s important to understand a few things about Word’s Table of Contents feature.

The Table of Contents is a Word field. If you have Word set to show field codes instead of field values, you’ll need to go to Word’s Options (advanced) and set it to show values. You’ll know it’s set to display field codes if your table of contents ends up looking like this:

Fig 5 - TOC Values

Turn on Field Shading. Fields are easier to find and work with when shading is turned on. Head to Word’s Options, select Advanced and click to turn shading on to “Always.” (Note that the shading on screen will not show up in a printed document.)

TOC Fig 6

Word Fields are updated with the F9 key. You can update with F9 while the cursor is placed anywhere in the field (i.e, within the shaded area if field shading is turned on). Alternatively, you can click on the Update Table that will appear when you click anywhere within the table of contents. (My habit has been to use Ctrl+A to select the entire document, then F9 to update all fields – I’m just lazy that way.)

Re-use your customized tables of contents. If you customize a table of contents and want to use the same approach in other documents, you can save it to the Table of Contents Gallery:

  • Select the entire customized table of contents in your document.
  • Click the References tab.
  • Click Table of Contents.
  • Click Save Selection to Table of Contents Gallery.
  • That choice will now be available in the drop-down list when you want to add a table of contents to future documents.

TOC Fig 8

Bonus Tip: Page Breaks

Most people like to place the table of contents on its own page, so they create manual page breaks (Ctrl+Enter) either before or after inserting their table of contents. To save a step or two, you can insert page breaks and the table of contents at the same time. Customize a table of contents exactly as you wish, and add it to the Table of Contents drop-down list as described above. Then do the following:

  • Right-click on the new entry.
  • Click on Edit Properties.

TOC Fig 9

In the Modify Building Block dialog box that appears:

  • Name the table of contents, for example, “Classic with Page Breaks.”
  • Change Options to: “Insert content in its own page.”

TOC Fig 10

When you exit Word you may see a dialog box similar to the one below. Be sure to click Save so that selection is available the next time you want to use it.

TOC Fig 11

Quicker Access, Easy Updates

If you are regularly using the Table of Contents feature, go ahead and add the Table of Contents Gallery to Word’s Quick Access Toolbar, using the same right-click Edit Properties menu shown above.

You’ll be able to access the Table of Contents Gallery in one click. One more click will insert your customized table of contents on its own page, and a third click will update it, automatically. What could be easier?

Now you can go ahead and edit your document to your heart’s content — and let the Table of Contents feature work for you. It all starts with proper use of Word’s Heading Styles.

Vivian Manning is the IT Manager at Barriston Law LLP in Barrie, Bracebridge and Cookstown, Ontario, and is Attorney at Work’s Power User columnist. Prior to moving into IT, Vivian practiced law at Barriston LLP, primarily in the area of Municipal Land Development, with a total of 17 years in private practice before switching to the IT side of the law office. She currently indulges her love of teaching tech through her blog Small City Law Firm Tech, where she provides “tips of the day.” Follow her on @vivianmanning.

Sponsored Links
»Manage my legal practice from anywhere on any device—HoudiniEsq.
»Streamline your law practice from anywhere. Intuitive legal practice management software. Free trial.
»Start Saving Time: Top cloud-based practice management software.
»Learn more about the easiest way to get paid.

Illustration ©iStockPhoto.com

Recommended Reading

3 Responses to “Word Styles: Automating a Table of Contents”

  1. Stan
    11 December 2014 at 4:12 pm #

    Thanks for the article. I’m a solo attorney that does his own typing (not very well). I have Word for Mac and my keyboard does not have a F9 key. How do I replace it?

  2. Barbara Cooper
    13 December 2014 at 12:31 am #

    Thanks for this useful information. I’m a pro when it comes to TOCs and TOAs in WordPerfect, but haven’t quite mastered this in Word. I have a general policy of not sharing documents with clients. I send PDFs instead.


Comment