Publishers of technology books, eBooks, and videos for creative people

Home > Articles > Design > Adobe Creative Suite

  • Print
  • + Share This
Like this article? We recommend

Like this article? We recommend

Generating a table of contents

With InDesign, you can generate a fully formatted table of contents with accurate page numbers for a single document or all the documents in a book file. The table of contents consists of text that you can place anywhere—at the beginning of a document or in its own document within a book file. The feature works by copying text formatted with specific paragraph styles, compiling the text in order, and then reformatting the text with new paragraph styles. The veracity of the table of contents, therefore, depends on correctly applied paragraph styles.

In this exercise, you will generate a table of contents for the book.

Preparing to generate the table of contents

To generate a table of contents, you need to know what paragraph styles are applied to the text that will go in the table of contents. You also need to create paragraph styles to format the text in the table of contents. Now you will open a chapter to study its paragraph styles and open the table of contents chapter to see how it is formatted.

  1. In the Book panel, double-click 12_01_ID_HowTos_GettingStarted to open the chapter.
  2. Choose Type > Paragraph Styles to open the Paragraph Styles panel.
  3. On page 1 of the Getting Started chapter, click in the chapter title. In the Paragraph Styles panel, notice the Chapter Title paragraph style is applied.
  4. On page 2 of the chapter, click in the numbered section name. In the Paragraph Styles panel, notice the Head 1 paragraph style is applied.
  5. Close the Getting Started chapter; then double-click 12_00_ID_HowTos_TOC in the Book panel to open it.
  6. With the Paragraph Styles panel open, use the Type tool (typetool.jpg) to click in the three different types of formatting you see on the page:
    • TOC Chapter Title is applied to the first-level heads, the chapter names.
    • TOC Section Name is applied to the second-level heads, the numbered section names.
  7. Choose Edit > Select All. Then press Backspace or Delete to delete the table of contents.
  8. You are going to generate your own table of contents in the next two exercises.

  9. Choose File > Save.

Setting up the table of contents

Now that you are familiar with all the paragraph styles that will be used to generate the table of contents, you will “map” them in the Table of Contents dialog box. In this exercise, you will specify the title, what paragraph styles to include, and how to format the final table of contents.

  1. Choose Layout > Table of Contents.
  2. In the Table Of Contents dialog box, type Contents in the Title box. This is the title that will appear above the table of contents.
  3. To specify how the title is formatted, choose Chapter Title from the Style menu.
  4. Under Styles In Table Of Contents, scroll through the Other Styles list box to locate Chapter Title. Select it and click Add.
  5. Repeat step 4 to locate and select Head 1. Click Add. Leave the dialog box open.
  6. Now that you have specified what text needs to go in the table of contents—text formatted with Chapter Title followed by Head 1—you will specify how it should look in the table of contents.

  7. On the left side of the Table of Contents dialog box in the Include Paragraph Styles list box, select Chapter Title. Under Style: Chapter Title, choose TOC Chapter Title from the Entry Style menu.
  8. In the Include Paragraph Styles list box, select Head 1. Under Style: Head 1, select TOC Section Name from the Entry Style menu.
  9. Select Include Book Documents to generate a table of contents for all the chapters in the book file.
  10. Click OK. This loads the pointer with the table of contents text.

Flowing the table of contents

You flow the table of contents text the same way you flow other imported text. You can either click in an existing text frame or drag to create a new text frame.

  1. Click in the frame that held the sample table of contents. The table of contents flows into the text frame.
  2. Choose File > Save and close the document.
  3. From the Book panel menu, choose Save Book. This saves all changes made to the book file.
  • + Share This
  • 🔖 Save To Your Account