Stefano Bernardi headshot
Hey, global marketers!
Need to balance the cost, quality, and turnaround time of your translation projects?
Sign up for our webinar today!

How to Create a Table of Contents in InDesign

Contents
Create table of contents how to guide

Creating a table of contents in InDesign is a little bit tricky. For years, I've been designing my documents without using this very handy feature.

Creating a table of contents in InDesign is a little bit tricky. For years, I've been designing my documents without using this very handy feature.

I used to layout my entire document, and only at the end of the process, I would generate a PDF of the document and manually write the Table of Contents (TOC) of my InDesign file, chapter by chapter (or product by product, if I designed a product catalog).

If you are also familiar with this tedious job, and you want to stop doing it manually and forget about it right now, follow this quick tutorial and learn how to automate the creation and update of your table of contents in InDesign.

This tutorial consists of two main parts. The first covers the basic functionalities of the feature. The second covers every aspect and personalization of the TOC feature. If you have an issue, or are trying to achieve a specific result, you can probably find what you are looking for in the second part.

Overview

When should I use this feature?

You should use the TOC with:

  • books or magazines
  • user manuals, technical documents, brochures, etc.
  • product catalogs, pricing lists, etc.

Actually, you can use it with any list of elements which you can set to a specific Paragraph Style. InDesign doesn't force you to show the page numbers of the listed entries, so you can use the TOC feature to create any kind of list. Also, you can sort the TOC in alphanumerical order which is great when you have to create an ordered index.

The picture shows some usages of the TOC in InDesign

Introduction

The first time I learned how to use this feature I was designing a product catalog.
In this tutorial I’ll use that as an example, and at each step I'll also give you the instructions you need in case you are designing a book or a magazine.
Also, I'll highlight possible issues/solutions you might encounter with creating the TOC of your document.

In short, what you need to do to is:

  • create and apply the Paragraph Styles for each entry you want in the TOC (chapters, subchapters – product types, product names)
  • create the Paragraph Styles for the Table of Contents (the title of the TOC, and the body - learn how to properly use InDesign paragraph styles here)
  • create the Table of Contents

If you want to try it out – or you just want a ready-to-use template – here you can find two example files (in IDML format). Inside, I also created a Table of Content Style that you can import in your InDesign documents. Download the InDesign Table of Contents Template.

Advantages of using the InDesign Table of Contents feature

Using this feature gives you many benefits:

  • it saves a lot of time when creating the TOC (the creation is automatic)
  • it helps you update the TOC automatically
  • it avoids mistakes and typos while manually editing the TOC
  • it creates hyperlinks to the chapters or the products listed
  • it creates a Navigation Table of Contents for your ePub
  • with a few clicks you can add or remove levels to the TOC (add/remove subchapters)
  • you can create an ordered list of elements automatically

Seeking for more ways to add structure to your documents? If so, make sure you read our guides on How to create Numbered Lists and Bullet lists in InDesign.

Creating a Table of Contents in InDesign: the basics

Apply the Paragraph styles to the document

Creating a TOC requires the use of Paragraph Styles. If you don't know how to use them, please check the Adobe guide or watch this great video by LinkedIn Learning.

To show you how to use the TOC feature, in this tutorial, I am going to use a product catalog I designed for an Italian company as an example.

Luckily, this is a great example because it has everything I need for showing you how to create a TOC in InDesign whether you are working on a book/magazine or a product catalogue/price list (as this one).

Creating the Paragraph Style for the entries of the TOC

I created a Paragraph Style called "chapter-or-product_name". This Paragraph Style is the one we will use later to set the anchor to the elements (paragraphs) we want to add to the TOC.

It indicates to InDesign which entries the TOC should have. They are your chapter names (see page to the left) or your product names (see page to the right).

We have to apply the "chapter-or-product_name" style to the entries we want to be listed in the TOC (the chapters and the product names).

3_create-entries-paragraph-style

Create the Paragraph Styles for the Table of Contents

When you create a TOC InDesign you need to indicate to the software which style it should give to the references it'll lists.

I created two paragraph styles for this purpose. One TOC_Title is for the title of the Table of Contents, the other TOC_Entries is for the references the Table of Contents feature will add while listing the elements to which I set the Paragraph Style "chapter-or-product_name".

Paragraph Styles used in the TOC title and body

Create the Table of Contents

Right now we have:

  • created the Paragraph Style "chapter-or-product_name"
  • set the Paragraph Style "chapter-or-product_name" to the references that we want to list (chapter titles, product names)
  • created two Paragraph Styles for the TOC Title and body

Let's see how simple creating a table of contents is and how helpful it can be.

Later in the post I'll go through the main issues you may face while creating a TOC. If you are facing an issue that is not listed in the post, please drop a comment below so that I can help you and therefore add the solution to this post.
  1. Let's click on Layout and then on Table of Contents....
Select the Table of Contents feature
  1. We write the title of the TOC and we set the Paragraph Style TOC_Title we created before.
Set the TOC title
  1. We add the Paragraph Style "chapter-or-product_name" into the Include Paragraph Style: box. The TOC will list all the entries that use the styles that are added to this box (we will add some complexity further in this tutorial but for now, let's see the basic use of the feature).
Select the Paragraph Styles to list in the Table of Contents
  1. Let's tell InDesign which style it should apply to the entries that has the Paragraph Style "chapter-or-product_name" by setting Entry Style: to TOC_Entries.
Set the Paragraph Style for the entries listed by the TOC
  1. Let's click OK and draw a text-box in a blank page of the InDesign document.

InDesign has created a thread of text which has a title set to the TOC_Title Style, and a list of Paragraphs in the TOC_Entries Style. By default, the Table of Contents feature places the entries in page-order and adds a tabulation and the page number of the entry after each entry.

The TOC created by InDesign with the default settings

In the Options (without activating More Options) you can select:

  • Create PDF Bookmarks: It creates a bookmark for each entry of the TOC. When you click above one of the entries in the exported PDF, you will be brought to the page of the entry.
  • Replace Existing Table of Contents: Updates the TOC
  • Include Book Documents: It searches for entries in all the documents of the Book (Read about Books here). It's available only if the Book is open.
  • Make text anchor in source paragraph: it sets up a hyperlink for each entry to its paragraph in the text.
TOC Options – without activating More Options

This is how you create a simple Table of Contents in InDesign for your book/magazine or product catalogue/pricing list. Let's now see one by one all the cases/issues that you might face.

Advanced settings and issues you might face

Update the Table of Contents

To update the entries of the TOC, just click on Layout and then Update Table of Contents.

Make sure that the page numeration starts after the Table of Contents

You have probably noticed that my first entries which is ‘Storia’ shows '3' as page number instead of '1'. This happens because the page numeration of my document starts from the cover. To change this behavior, we need to create a Section in the InDesign file.

  1. In the Pages menu to the right panel, I select page ‘3’ and do right-click on it. Then I click on Numbering & Section options....
Create a new section in the InDesign
  1. In the dialog window that opens, simply click OK.
Numbering & Section options...
  1. Again in the Pages menu, I select page ‘1’, right-click on it, and click again on Numbering & Section options....
  2. In the dialog window that opens, you can decide to add a Section Prefix to this first section, or change the styles of the Page Numbering. I decide to change the style.

I am doing this because I want to set page ‘3’ as ‘1’, and without changing the numbering style of this section, InDesign would get confused by the presence of two pages ‘1’.

First section in roman numbers


  1. In the Pages menu, I select page ‘3’ and right-click on it. Then I click on Numbering & Section options....
  2. In the dialog window that opens, activate Start Page Numbering at: and set the value to 1. Then click OK. After this, the page number will be set correctly.
Set page numbering to start from 1

In the Table of Contents, you’ll see the entries with the updated page numbers. (To appreciate the results you need to update the TOC first).

Set page numbering to start from 1

Put dots between the entries and their page numbers

TOC with dots between entries and page numbers

If you want to achieve the same result as above, you need to edit the Paragraph Style assigned to the TOC entries and the character that InDesign puts between each entry and its page number. Let's see the best way to do it.

  1. The first thing I do is change the character that InDesign puts between each entry and its page number. Click Layout then Table of Contents... select the style in Include Paragraph Style: and, if they are not already active, click More Options.

Right now the value of Between Entry and Number is ^t. I'll replace it with ^t^t because, as you saw in the image above, I want a little space between the end of the dots and the page number.

'Replace

Now we edit the Paragraph Style “TOC_Entries” which is the one InDesign assigns to the entries of the TOC.

  1. Double click on the style name. Move to the tab Tabs. Let's place a first tabulation (the arrow) and set it to X = 68mm and Leader = '. ' (there is a space after the dot). This will create the dotted line which will stop at 68mm of the text length.
Create the dotted line
  1. I also place a second tab. This will create the space between the dotted line and the page number. I set it to X = 74 mm and change the type of justification.
Create the space between the dotted line and the page number
  1. I save and apply the changes by pressing OK. Done.
Create the space between the dotted line and the page number

Listing more than a single Paragraph Style – and work with the indentation

Let's say that I want to add entries with two different Paragraph Styles. To show you how to do so, from the Paragraph Style "chapter-or-product_name" I create two different styles "chapter_name" and "product_name".

I set "chapter_name" to the chapters of my document, and "product_name” to the name of the products (I changed the "chapter_name" style to give a different color to my chapters - so you can appreciate the difference between the two styles).

Previews of the document

We are going to set the Table of Contents so that it lists entries with two different paragraph styles.

Let's add the Paragraph Styles "chapter_name" and "product_name" in the Include Paragraph Style: box.

Paragraph Styles added to the “Include Paragraph Style” box

By default, each time you add a Paragraph Style to the Include Paragraph Style: box, InDesign sets the level value in incremental order. This level doesn't affect the generated TOC (except for ePubs).
However, I prefer to be tidy, so I generally change the level based on the hierarchy of the entries (i.e. Chapters have Level 1, Subchapters have Level 2).

Notice that if you want to change the indent of the entries you need to work on the assigned Paragraph Styles (As we are going to do in the next instructions).

The Level value

Both the entries from the "chapter_name" and "product_name" style now use the same Paragraph Style, which is TOC_Entries – and the same settings.

I am changing it as follow:

  • "chapter_name" = TOC_Chapter-Entries (Level is 1)
  • "product_name" = TOC_Product-Entries (Level is 2)

Then I change the indent of the entries from the “product_name” Paragraph Style. To do so, I need to edit the TOC_Product-Entries Paragraph Style. In the tab Indents and Spacing I set the Left Indent to 8 mm.

Change the left indent of the TOC_Product-Entries Paragraph Style

This is how the TOC looks like now.

TOC with entries from two Paragraph Styles and indent

Add entries from a hidden level

If you also want to add to the TOC entries from hidden layers, you should activate the option Include Text on Hidden Layers.
In a hidden layer, I have added a text "Prodotti" and set the Paragraph Style chapter_name

Text “Prodotti” insert in a hidden layer

As you might appreciate from the image below, the chapter "Prodotti" is listed in my TOC (left part of the image). The right part of the image shows what would happen if I didn't activate the option Include Text on Hidden Layers.

TOC with an entry from a hidden layer

How to set the TOC to list the entries in alphanumerical order

As we've seen, InDesign by default creates a list of entries in page order.

To create an index in alphanumerical order, you should click on More Options and then activate the Sort Entries in Alphanumerical Order option for each paragraph style included in the TOC.

Put entries in an aphanumerical ordered

Notice that if the TOC has entries with more than a Paragraph Style, the entries will be sorted in alphanumerical order within each level. If that's not what you want to achieve, change the level value as we previously saw.

Change the level value if you want to sort entries with different Paragraph Styles

Show entries without page number

To create a list of entries without showing their page number, you should click on More Options and then set Page number to No page number for each paragraph style included in the TOC.

Set the TOC to list its entries without page number

What about Numbered Paragraphs?

TOC with chapter numbers

If the Chapters in your document are numbered, you can decide to show their numbers in the TOC (or not) by setting the Numbered Paragraph drop-down menu.

  • Include Full Paragraph: presents both the text of the paragraph (i.e. your chapter title) and its number (i.e. chapter number) - see image above
  • Include Numbers Only: presents only the number (i.e. chapter number)
  • Exclude Numbers: presents only the text of the paragraph (i.e. your chapter title)
Numbered Paragraph drop-down menu

Save the Table of Contents Style

You can save the Table of Content Style you created for later use, by clicking on Save Style... and then choosing a name (The option is in the window you open by clicking on Layout and then Table of Contents...).

Save the Table of Contents Style

Import a Table of Contents Style

You can import a TOC Style from another InDesign document by going to Layout then clicking on Table of Contents Style....

How to import a Table of Contents Style

In the window that opens, click Load... and choose the file InDesign from which you want to import the TOC Style. Then click OK.

Select the file from which to import the TOC Style

Multiple Table of Contents in a document

To insert more than one TOC in your InDesign document, you need to use the Table of Contents Styles.

In the TOC I created in this document, the TOC Style is set to Default (probably also in your file if you already have a TOC to which you haven't set a customized TOC Style). The TOC Style dropdown can be used to manage multiple TOCs inside your document.

Use the TOC Style dropdown to place more TOCs into your document

I want to create a new TOC with only the entries from the Paragraph Style “product_name”.

  1. Let's create a new Table of Contents Style. Click on Layout then Table of Contents Style....
How to import a Table of Contents Style
  1. Click New....
Open the Table of Contents Style window
  1. In the window that opens we edit the options as to create a new TOC. And then we click OK.
Set the options as to create a new TOC
  1. Here we have our new TOC Style. Click Ok.
TOC Style created
  1. Now we have to insert the TOC into the InDesign file. Click on Layout then Table of Contents.... In the window that opens be sure to select the new TOC Style from the dropdown TOC Style. Then Click OK and place the new TOC into the InDesign document.
Place the second TOC into the InDesign document
  1. Here we have the new TOC.
Two TOCs into a single document

Conclusion

The Table of Contents feature is great and gives you many benefits.
If you have never used it, download the two examples I created for this post, and try to create your first TOC. If you have questions feel free to post them in the comments.

Be sure to subscribe to our newsletter to keep up with future posts or major updates.

Even more, here is a short list of other content you might find useful during this process:

If you liked the post, I'd really appreciate you sharing it!

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere.

30 practical tips for InDesign users
Download guide
Blue arrow pointing right
No email required
Icon of an eye
Read by more than 25k people
Stefano Bernardi HeadshotStefano Bernardi Headshot
Save your spot for our free webinar
Book your free 30-mins demo with one of the founders
(not a random salesperson).
Book a demoREGISTER NOW

Streamline your translation workflow with zero downtime. Discover how.