Tables of contents are a great feature in InDesign, really easy to set up and create, once you understand the workflow that is. In this article, I am going to create a table of contents for a document that I have already completed (donâ€™t try and read it, it's all in placeholder text, but probably the most interesting thing Iâ€™ve ever written. Hey you were not supposed to agree with me there).
Ok so lets get started.
Here I have created an A-Master page that will work as a standard page in the document, nothing too exciting, just a 2 column text box.
I have also created a B-master page that will work as the first page of each new Chapter. To save time, I based it on the A-Master (and then unlocked the text frame, very important) and then modified it a little to include the Chapters Heading and its Title.
Tables of Contents won't work if you donâ€™t use Paragraph styles in a very disciplined way.
Here I created 4 styles for my document:
Now we can apply the styles where they are needed.
On the B-Master, apply the Chapter Title style only to the text on that page that is the title of the chapter. It is vital that you donâ€™t use this Paragraph style on any other parts of the document.
Do the same with the Chapter Heading text, making sure that this is the only place that style is used. (TIP: If you need to use the same style somewhere else for another purpose then duplicate the style and rename it, and use that one elsewhere instead).
Finally apply the First Page Body Text style to the opening paragraph of the B-Master. You should also apply Body Text to the text frame on the A-Master.
Start adding new pages in the pages panel Shift-Command-P. I have created (for no particular reason) 11 in total, 4 of which are B-Master templates.
On each B-Master page, unlock the text frames Shift-Command-Click and change the names on the Chapter Titles â€œPart 1â€, â€œPart 2â€ etc. Also change the text of the Chapter Headings â€œThe Long Walk Homeâ€ or â€œCatching a Lucky Busâ€ for example. This will ensure that your ToC will have different chapters listed.
When you make a ToC, it is possible to use the same styles on the text there as you did in the document. However, itâ€™s probably not very desirable as the text in the document (as it is with this example) may be a little over styled for a ToC.
Add a new style named ToC Title (use the small o, you will see why soon enough). Iâ€™ve based mine on Chapter Heading, to retain consistency. However I also modified the size, color and alignment so that it's Smaller, Blue and Aligned Left.
Add another style named ToC Chapter Title, base it on ToC Title and make it 2 points smaller and color it black.
Finally, Add the last style named ToC Chapter Heading and base that on ToC Chapter Title, this time adjusting the color tint to 70% (giving you a grey shade).
These are all very similar, but different enough to stand apart in the ToC.
The ToC also utilizes Character styles on the Page number and also if you wish, on the gap between the text and the page number. Open the Character Style Panel and create a new Character Style named ToC Number Entry. You can feel free to apply whatever creative bones you might possess to create a style for your ToC number, just bare in mind that people need to be able to read it. Here is mine.
ToCâ€™s often work better if there is some kind of line or mark that helps visually align the contents with the page number for the reader. Often little dots are used to serve this purpose.
Create another Character Style and name it ToC Dot Leader. In its options, go to Underline Options and turn the underline on. Set the weight to 1 pt, the type to Dotted and the color to Black.
Open the Pages panel and drag the (None) Master page down to the document so it is inserted before the current first page.
Now at last you are ready to generate your Table of Contents.
Go to the Layout menu and choose Layout > Table of Contents.
A window opens asking you to define the ToC you are creating
In the Title field, type â€œWhat's Insideâ€. This will be the title of the ToC and choose the Paragraph Style ToC Title (note there is a default style called TOC Title, hence our little o).
Using the menu called other styles, select the paragraph style named Chapter Title and click the add button, the style jumps over to the section named Include Paragraph Styles.
The ToC will now contain references to each occasion that the Paragraph style named Chapter Title appears, as well as what the text says.
In the Style section, use the Entry Style menu to select a paragraph style for the text that will appear in the ToC. Select the style you made earlier named ToC Chapter Title.
Also decide where the page number will appear. Convention would suggest you chose â€œafter entryâ€, and this is where to apply the character style you created named ToC Number Entry.
Finally, decide what should happen between the entry and the number. The default is a Tab Character, however to make the ToC a lot neater and easier to view, remove the ^t text and replace it with a Right Indent Tab, or type ^y. Apply the style named Dot Leader to the Right Indent and watch what happens later on.
Repeat the actions of step 12, only this time select the paragraph style named Chapter Heading and click Add. The style will be added to the Include Paragraph Style menu, and will be indented under the style added earlier named Chapter Title.
This indicates the structure of your ToC, in that the Titles will appear before the Headings of each chapter sequentially.
Use the same options as with the Chapter Title, such as Entry Style (only set it to ToC Chapter Heading). Set the Page Number to After Entry and between them use a Right Indent Tab with the Dot Leader style etc. So it ends up looking like this.
Once the ToC settings are done, click OK or press Return. The ToC settings window closes and the ToC is created and now fills the cursor in InDesign.
Place the cursor in-line with the top left corner of the page margin and click to create a text frame filled with the ToC that is the same size as the page margin.
Voila! The Table of Contents appears, with all your styles applied. Check out the dot leader style, adding dots to the gap between the titles and the page number. What's really nice about this is that if the ToC isnâ€™t quite what you want, just edit the styles that start ToC in the Character and Paragraph styles panels. Try a few different combinations.