New Feature: Playlist Center! Pick a topic and let our playlists guide the way.

Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Creating tables of contents

From: Creating Long Documents with InDesign

Video: Creating tables of contents

Typically, a table of contents, like an index, is one of the last things you build in your long documents. Before you can build a TOC, you need to build your long document with all of its chapter titles, section titles, and so on, in place and styled with paragraph styles. Then you can use the TOC features to copy and reformat that information into a table of contents. Let's see how it's done. So before you can build the table of contents, you have to build your long document with things like chapter titles, section titles, and so on, all in place and styled with paragraph styles.

Creating tables of contents

Typically, a table of contents, like an index, is one of the last things you build in your long documents. Before you can build a TOC, you need to build your long document with all of its chapter titles, section titles, and so on, in place and styled with paragraph styles. Then you can use the TOC features to copy and reformat that information into a table of contents. Let's see how it's done. So before you can build the table of contents, you have to build your long document with things like chapter titles, section titles, and so on, all in place and styled with paragraph styles.

And once that's the case, then you can go to the Layout menu and choose table of contents. This opens the Table of Contents dialog box, and at the top, we see a Table of Contents Style menu. There is a Default, and I've built in a front matter table of contents style that we'll take a look at in a minute. But for now, we'll leave it on the default. And then the first choice is do we want a title for our table of contents? So you can have the word Contents appear at the top of your table of contents or you don't have to have it at all--and you can apply a paragraph style for that too.

Then we come to the Styles in Table of Contents area, and this is where you really build the content of your table of contents. This is where you tell InDesign which paragraph styles to look for in your long document to build the table of contents. When InDesign finds those paragraphs, it'll copy whatever is in them and collect it all to build the table of contents. Even things like anchored items can come along for the ride. So right now the only paragraph style this table of contents is going to use is No Paragraph Style, and I actually don't want Content set to No Paragraph Style in my TOC, so I'm going to click on the Remove button and remove that.

I can go on the other side to the Other Styles section and include content from these paragraph styles. So I could scroll down and see all the paragraph styles, and I could pick, say, Chapter Titles, Chapter Headings, and I can double-click to move them over into the Include Paragraph Styles. So I can include Chapter Headings Level 1, 2, 3, the overall ChapterTitle, FeatureTitle, and so on. If I change my mind, I can again double- click on a style name or click on Remove to take it out of the table of contents.

Here, I'll take the FeatureTitles out. Then once you have all the styles in place to grab the content you want in your TOC, you have to decide how it's all going to be formatted, and that's what the next section of the dialog box is for. But before you click anything down here, go over to the right side of the dialog box and click More Options. This gives you several extra options for the way your TOC is structured and formatted. So with the ChapterTitle selected, I can choose or create a paragraph style to format this. So by default, the Entry Style is going to be in the same paragraph style as the ChapterTitle, but I can pick a different style that I want. And I've set up several TOC styles to match up to my regular document styles.

So I have a TOC - ChapterTitle. It's a good idea to have some kind of consistent style-naming convention so you can easily match up your document styles to your table of contents styles. Next, you can choose if each entry gets a page number, either after or before the entry, or no page number at all. And you can apply a style to that. And you can decide what comes between the entry and the page number. By default, it's a Tab character, but you can choose other things from the pop-up menu, including a right indent tab character to make the page number go all the way to the right margin. And you can apply a style to that.

Next, we have the ability to sort entries in alphabetical order and to apply levels. And these two things go together, although you might not guess that right off the bat. The way it works is InDesign will sort all Level 1 entries alphabetically, and then it will alphabetize all the Level 2 entries it finds in between the Level 1 entries, and so on. Also regarding the TOC levels, you might guess that the way they're indented here in the Include Paragraph Styles section will somehow affect the formatting that comes out in the TOC, but that's not the case.

The spacing that actually comes out on the page comes only from the indent set on the paragraph styles. This level serves two other purposes: for grouping entries in alphabetical order and also for creating nested bookmarks in exported PDF files. But it has nothing to do with the formatting on page. Down near the bottom, I have the option to create those PDF bookmarks, to replace an existing table of contents00 so if this is selected, I can keep updating my table of contents as my long document changes--or I can deselect it to just have a static one-time table of contents.

I'll leave it selected. I also have the option to make my table of contents a running table of contents. If I leave this unchecked, entries are separated by a paragraph return, but if I select it, the entries of the same style are separated by a semicolon and are all in one paragraph. And finally, I have the option to include text on hidden layers. So text need not be visible in my document elsewhere in order for it to appear in the table of contents. Finally, I have a choice of what to do with numbered paragraphs? Do I want to include the full paragraph which includes the text, and the number, just the number, or exclude the numbers and have just the text? Okay.

Now that we've gone through the options, I'm going to switch to a different TOC style, the one that I built in advance, this front matter TOC. This includes all the paragraph styles for my long document that I want to include in the table of contents. If I click on each one, I can see how they're going to be formatted. Each one has a matching paragraph style and a right indent tab to put the page number over on the right side margin, as well as styles for the page number and the separator. I am going to create PDF bookmarks. I'll click OK.

I'll say yes, I do want to include items in overset text, and I get a loaded cursor, where I can click in a frame to flow the table of contents. These two frames are linked, so when I click, the table of contents will flow from one to the other. There's my table of contents. So here's the heading that I had at the top of the dialog box. Here are the chapter titles with their page numbers. Here are the poetry titles. Here are the chapter subheadings and the lower-level subheadings. Here's the feature title and the recipe titles.

Now, let's export a PDF and see those nested bookmarks, which were the other purpose of levels in the TOC dialog box. I'll choose File > Export > Adobe PDF. I'll click Save and OK, and if any warnings pop up, I'll just click OK through them right now. I just want to see that PDF file. Here's my PDF of my table of contents, and if I look at the bookmarks, I can see all the nested bookmarks that I set up with the levels, and I can click on them to navigate to those parts of my document.

The Table of Contents feature is one of InDesign's best long-document features and not only does it allow you to make table of contents, but it has a lot of other cool alternative uses too, as we'll see next.

Show transcript

This video is part of

Image for Creating Long Documents with InDesign
Creating Long Documents with InDesign

59 video lessons · 15282 viewers

Mike Rankin
Author

 
Expand all | Collapse all
  1. 10m 48s
    1. Welcome
      54s
    2. Using the exercise files and scripts
      1m 51s
    3. Long-document workflow overview
      4m 20s
    4. Analyzing the planned output
      3m 43s
  2. 34m 7s
    1. Using master pages
      9m 34s
    2. Using layers
      7m 23s
    3. Using text variables
      6m 42s
    4. Using section markers
      5m 44s
    5. Synchronizing text
      4m 44s
  3. 26m 16s
    1. Using InDesign templates
      7m 10s
    2. Setting up preferences
      3m 27s
    3. Using Word templates
      5m 50s
    4. InCopy workflows
      5m 17s
    5. Creating a production manual
      4m 32s
  4. 40m 2s
    1. Using Based On styles
      6m 14s
    2. Using nested styles
      5m 56s
    3. Using Next Style
      3m 39s
    4. Using GREP styles
      6m 17s
    5. Using object styles
      2m 48s
    6. Using table and cell styles
      5m 8s
    7. Using swatches
      5m 33s
    8. Using Quick Apply
      4m 27s
  5. 37m 57s
    1. Placing text
      4m 57s
    2. Placing images
      3m 41s
    3. Creating metadata captions
      4m 3s
    4. Using Mini Bridge
      4m 38s
    5. Using libraries and snippets
      6m 4s
    6. Using GREP Find/Change
      5m 5s
    7. Find/Change tips
      5m 21s
    8. Using Layout Adjustment
      4m 8s
  6. 15m 53s
    1. Using Notes
      4m 7s
    2. Tracking changes
      4m 36s
    3. Using CS Review
      7m 10s
  7. 34m 43s
    1. Creating tables of contents
      7m 9s
    2. Alternative uses for the TOC feature
      4m 9s
    3. Creating cross-references
      6m 8s
    4. Creating footnotes
      6m 31s
    5. Importing footnotes
      6m 47s
    6. Creating endnotes
      3m 59s
  8. 33m 50s
    1. Scoping out the index
      2m 19s
    2. Creating index topics and references
      9m 29s
    3. Creating index cross-references
      3m 1s
    4. Creating index references with Find/Change
      3m 31s
    5. Generating an index
      3m 35s
    6. Preserving formatting in an index
      5m 13s
    7. Using third-party indexing tools
      6m 42s
  9. 26m 44s
    1. Using InDesign book files
      4m 37s
    2. Numbering book documents
      5m 46s
    3. Synchronizing book documents
      7m 5s
    4. Preflighting book documents
      3m 49s
    5. Outputting book documents
      5m 27s
  10. 12m 54s
    1. Using conditional text
      5m 1s
    2. Using Smart Text Reflow
      4m 3s
    3. Using object styles for customization
      3m 50s
  11. 25m 17s
    1. Preflighting documents
      6m 56s
    2. Exporting to print PDF
      5m 26s
    3. Exporting to interactive PDF
      5m 36s
    4. Archiving a project
      7m 19s
  12. 48s
    1. Goodbye
      48s

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold

Are you sure you want to delete this note?

No

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.