Page 11 of 17PREVNEXT

Table of Contents III: Use fields to create a TOC and create multiple TOCs

One-level TOC

Example of the \o switch that is used to create a short, abbreviated TOC that is based on Heading 1 styles.

Let's say that you want two TOCs at the start of your cookbook: a short, abbreviated TOC with just the main sections of the book, and then right after it a full, comprehensive TOC. The first TOC would include just the chapter titles: Appetizers, Entrees, Sauces, and so on, and the other TOC immediately after it would show each chapter and all the individual recipes within it.

If your document uses Word's built-in heading styles, the solution to this scenario is simple. Create two automatic TOCs at the start of your document. Then, in the first TOC, change the \o switch from "1-3" to "1-1" to shorten it to just the Heading 1 styles. For example:

{TOC \o "1-1" \h}

There's your short, abbreviated TOC.

Because the second TOC includes all Heading 1, Heading 2, and Heading 3 entries by default, it is your full, comprehensive TOC.

There are two other options for creating multiple TOCs: TC fields and bookmarks, which you'll learn about next.

Page 11 of 17PREVNEXT