Table of Contents

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.

  1. Mark entries to be included in the TOC by using built-in heading styles (Heading 1, Heading 2, etc.).
  2. Mark a portion of a document whose headings you want to include in the TOC with the "Chapter1" bookmark.
  3. 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"}
RTETocFieldDefault RTETOCOSwitch

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.

  1. 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...

    RTETOCInsertFigure

    ... or add the {SEQ Figure} field code (via CTRL+F9).

  2. Click within a document where you wish to insert the table of figures.

  3. Click Insert Table of Figures on the References ribbon tab and select Table of Figures.

    RTETOCInsertTableOfFigures

    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.

  4. 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 => }.

  5. Resulting table of figures will look like the following.

    RTETOCFiguresResult

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.