Create Table of Contents for Special Cases
A table of contents (TOC) in a document is represented by a special TOC field. There is set of TOC field switches that you can combine to create TOCs of different types. This document describes how to create the following TOCs.
TOC for the Specified Portion of a Document
To build a TOC consisting of titles (marked with built-in heading styles) from a specified portion of a document only, follow the steps below.
- Mark entries to be included in the TOC by using built-in heading styles (Heading 1, Heading 2, etc.).
- Mark a portion of a document whose headings you want to include in the TOC with the "Chapter1" bookmark.
- Insert an empty field (CTRL+F9) and enter a TOC field code with the \b switch and bookmark name: {TOC \b Chapter1}.
TOC Including Paragraphs with Specified Outline Levels Only
To generate a TOC from Heading 1, Heading 2 and Heading 3 entries only (or paragraphs with outline levels 1 through 3), use the \o switch in the TOC field code.
{TOC} | {TOC \o "1-3"} |
---|---|
Table of Figures (Tables, Equations)
The following step-by-step instructions describe how to create a TOC from items numbered by a SEQ field (for example, table of figures), add sequence numbers (figure numbers) before page numbers in the table of contents, and specify the separator between sequence and page numbers.
Specify captions for figures that you want to include in the table of figures. To do this, click the Insert Caption button on the References tab and select Figures Caption...
... or add the {SEQ Figure} field code (via CTRL+F9).
- Click within a document where you wish to insert the table of figures.
Click Insert Table of Figures on the References ribbon tab and select Table of Figures.
If you click the Show All Field Codes button on the Mail Merge ribbon tab, you will see the TOC field code - { TOC \h \c "Figure" }. The \c switch is used to build a TOC from items that are numbered by a SEQ field.
- To add figure numbers before page numbers in the table of figures and insert the => separator between figure and page numbers, use the \s and \d switches of the TOC field - { TOC \h \c "Figure" \s Figure \d => }.
Resulting table of figures will look like the following.
In the same way you can sequentially number tables and equations in a document, and built a table of tables or equations.
Note
If you add, remove or modify captions, you can quickly update the table of figures by using the References button on the Captions ribbon tab or by selecting the Update Field item from the context menu.