Documentation Text & typography

Text & typography

Build a table of contents

Generate a table of contents from paragraph styles, choose levels and leaders, and update it after editing.

Designer 2 min read Updated

A table of contents collects headings from your document and puts their page numbers in one text frame. It works from paragraph styles, so style the headings in the document before you generate the list. See paragraph and character styles if you have not created them yet.

Generate the list

Choose Insert → Table of contents. For each level, click the paragraph styles that should appear there under Include paragraphs styled with. Put chapter headings at the first level and smaller headings at later levels, and use Add level for more. Choose an Entry style for each level if you want a specific look, and leave Page # ticked to show page numbers. Then pick a Leader (Dots, Dots spaced, Line or None) for the gap between titles and page numbers. Tick Include title if the list should start with a heading such as Contents.

The Table of contents dialog. Include title is unticked. Under Level 1, a pill named Heading is highlighted beneath Include paragraphs styled with. An Entry style menu reads TOC Level 1 (auto) beside a ticked Page # box. An Add level link follows, then a Leader menu reading Dots, and Cancel and Generate buttons.
Figure 1The Table of contents dialog with one paragraph style chosen for Level 1. Entry style, Page # and Leader control how each line looks, and Generate builds the list.

Click Generate to build the list. The dialog stays open, reports how many entries it found, and warns about any headings that sit outside a page and so have no page number. Check long headings and page breaks in the finished document. A heading appears once even if a source style is used in the document; do not assign the same source style to two TOC levels.

If the dialog says No paragraph styles yet, close it, style your headings first, and come back.

After moving pages or changing headings, update the list: right-click the TOC and choose Update table of contents, or reopen Insert → Table of contents, which opens on that list's saved settings with an Update button in place of Generate. Nothing refreshes by itself. Editing the generated lines by hand is temporary because an update builds them again from the source headings. For page numbers elsewhere, see page numbers and variables.

Want to try it?

Take this into the editor and work on a design.

Open Popcorn Editor →
Share this page

Send a link to a teammate or save it for later.