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

Home > Articles > Design > Adobe Creative Suite

Working with Long Documents in Adobe InDesign CS3: Table of Contents

Anything you can tag with a paragraph style, you can build into a “table of contents,” which all depends entirely on your using styles. Olav Martin Kvern and David Blatner show you how.
Like this article? We recommend

Like this article? We recommend

Table of Contents

Don’t get fooled into thinking the Table of Contents feature (under the Layout menu) is only for making book tables of contents. This feature lets you build collections of paragraphs that have been tagged with specific styles. For instance, if you use even two styles when you’re formatting a book—one for the chapter name and another for your first-level headings—you can build a basic table of contents by collecting all the paragraphs tagged with these two styles. But if you use paragraph styles to tag your product names, you could just as easily build an index of products for a catalog. Anything you can tag with a paragraph style, you can build into a “table of contents.” (While QuarkXPress can also make these kinds of lists based on character styles, InDesign currently only works with paragraph styles.)

This all depends entirely on your using styles. You should be using styles anyway—if you’re not, you’re working way too hard; refer to Chapter 4, “Type,” to see why you should.

Making a Table of Contents

Making a table of contents (or a list of figures, or whatever) is easy, but it requires a methodical approach to the Table of Contents dialog box (see Figure 8-9).

  1. If you only have one list (table of contents, list of figures, etc.) in your document, you can leave the Style pop-up menu set to [Default]. We’ll cover table of contents styles later in this section.
  2. Fill in a name for your list in the Title field. InDesign places this title at the beginning of the list, so you might want to type “Table of Contents” or “Advertisers” or something like that. We usually leave this field blank and later make our own title on the document page. If you do include a title, choose a paragraph style for it from the Style pop-up menu to the right of the Title field. (InDesign automatically adds a paragraph style called “TOC title” to your document when you open this dialog box, but you don’t have to use that style if you don’t want to.)
  3. Choose the paragraph styles that you want included from the list on the right. You can click the Add button to add them to the list, but double-clicking the style names is faster. You can also select more than one style (by Command/Ctrl-clicking each one) and then click Add to add them all at once (in which case they’re added alphabetically—if you want to rearrange the order, just click and drag the style names after adding them).
  4. One by one, click each style in the Include Paragraph Styles list and choose a paragraph style for it from the Entry Style pop-up menu. This is helpful because you’d rarely want a heading from your document to appear in your table of contents in the actual Heading style; instead, you’d probably create a new style called “TOC-head” or something like that. If you want certain paragraphs to be indented on your final list, you should apply styles here that include indentation. InDesign adds a paragraph style called “TOC body text” to your document when you open this dialog box, but you don’t have to use it—we just roll our own.
  5. If your document is included in a Book panel, you can choose to include the entire book in your list by turning on the Include Book Documents check box. We’ll talk about the Replace Existing Table of Contents check box below.
  6. Finally, when you click OK, InDesign builds the table of contents (which might take a little while, especially if you have many documents in a book). When it’s done, InDesign displays the text place icon, just as if you had imported a text file (see Chapter 4, “Text,” if you need to know more about placing text).

More Table of Contents Options

The default Table of Contents dialog box gives you the basic controls you need for a simple table of contents, but for most lists we make we click the More Options button, which gives us more options for fine-tuning the table of contents (see Figure 8-10).

  • Page Number. You may not want every entry in your table of contents to be followed by a page number. For instance, you might want page numbers after the headings, but not after the chapter titles in a book. You can control how page numbers will appear on your printed page with the Page Number pop-up menu. You’ve got three options for numbering: After Entry, Before Entry, and None. The first two tell InDesign to include the page number (either before or after the entry), separated from the text of the paragraph by a tab character. We typically create a character style for the page numbers and select it from the Style pop-up menu to the right of the Page Number menu. This way, all the page numbers appear the same rather than appearing in the Entry Style.

  • Between Entry and Number. By default, InDesign places a tab character between the entry and the page number (whether the page number is before or after the entry). However, you can change this to some other character or characters. For instance, we usually replace the ˆt character (which is code for a tab) with ˆy (a right-indent tab, which always sits flush on the right margin, even if you haven’t placed a tab stop). If you’re planning on including dot leaders between the entries and the page numbers (which you would set up in the Tabs panel), you may want to pick a character style from the Style pop-up menu. A regular dot leader looks too much like periods in a row (which is exactly what it is), so we often make a character style of 7-point text with 500 units of tracking, then apply this style to the leader.

  • Sort Entries in Alphabetical Order. If you turn on the Sort Entries in Alphabetical Order option in the Table of Contents dialog box, InDesign sorts the list in alphabetical order when you build it. Whether or not you want your final list alphabetized is up to you; you probably wouldn’t want it when you build the table of contents for a book, but you might if you’re creating a list of items in a catalog.

  • Level. Each paragraph style you include appears with a different indent in the Include Paragraph Styles list. You can control how much indent with the Level feature. This only adjusts the display in this dialog box; it has no effect on the final list unless your list is alphabetized—in which case, the entries are alphabetized by level.

  • Run-in. Some tables of contents, such as those found in academic journals, are “run-in”—that is, the headings are all in one paragraph, separated by semicolons. If you want this sort of list, turn on this option (see Figure 8-11).

  • Include Text on Hidden Layers. This option is pretty self-explanatory. If you have multiple layers in your document, you can choose whether to include the text on those layers even when the layers are hidden. While it’s rare that you’d turn this on, you might do so if you have made a layer that contains keywords or explanatory text that you want in the table of contents but don’t want in print (see the next section).

  • Numbered Paragraphs. If you have used automatic paragraph numbering in your document, you have a choice of what will appear in the table of contents: the entire paragraph (with the numbering), the paragraph with no number, or only the number.

Using Dummy Text for Lists

One of the things we like most about tables of contents is that they’re document-wide rather than simply story-wide. That means that any text in any text frame can be included in a table of contents—even text in a nonprinting text frame. With this in mind, you can add “tags” to items on your page that don’t appear in print, but do appear in your table of contents.

One of the best examples of this is an advertiser index. You can place a text frame with an advertiser’s name on top of that company’s ad in your document. Set the text frame’s color to None and turn on Nonprinting Object in the Attributes panel (or put the frame on a hidden layer), and it’s almost as though this were a “non-object”—the text won’t print, and it won’t affect the ad underneath. But if that advertiser’s name is tagged with a style, you can include it on a list of advertisers.

The same trick applies to building a list of pictures in a catalog, or for any other instance where what you want on the list doesn’t actually appear on the page.

Building and Rebuilding Tables of Contents

There is nothing magic about the text or page numbers in your table of contents—they’re just regular text and numbers. That means if you update the document on which the list is based (such as adding pages or changing the text), the entries and page numbers in the table of contents don’t automatically update, and you will have to rebuild it. We find that we build and rebuild a table of contents several times for each document or book. It isn’t that we’re having so much fun with the feature—it’s that we make mistakes.

To update a table of contents, use the Selection tool or Text tool to select the text frame containing the list, then choose Update Table of Contents from the Layout menu. Or, if you want to make a change to the Table of Contents dialog box settings, you can choose Table of Contents from the Layout menu, make the changes, turn on the Replace Existing Table of Contents check box, and click OK.

Table of Contents Styles

Everything we’ve said about table of contents so far is based on the idea that you have only one of these in your document. However, you can define lots of different table of contents styles in a single document—one for headings, one for figures, one for bylines, and so on. The easiest way to do this is to build various table of contents styles, which are simply saved collections of settings. Once you set up the Table of Contents dialog box just the way you want it, you can click the Save Style button to save this setup as a style (see Figure 8-12). Later, you can reload those settings by choosing your style from the TOC Style pop-up menu at the top of the dialog box.

A second way to build a “style” is to select Table of Contents Styles from the Layout menu and click New. You get a nearly identical dialog box, but when you click OK your settings are saved for use later. You can also use the Table of Contents Styles feature to delete and edit styles, or load them from other InDesign documents.

Note that if you save your table of contents style after building a table of contents in your document, InDesign isn’t smart enough to match your built list to the style name. That means you can’t use the Replace Existing Table of Contents feature. Instead, you’ll have to delete the already-built list and replace it with a new one.

Peachpit Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from Peachpit and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about Peachpit products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites; develop new products and services; conduct educational research; and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email ask@peachpit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by Adobe Press. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.peachpit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020