keepcalculator

06 Numbers and Powers

How to Automatically Create a Table of Contents

Card No. 06·88369 · Updated · Standard formula, shown below

This guide shows you how to set up an automatic table of contents (TOC) in Microsoft Word, Google Docs, and common web platforms. You’ll learn the steps to generate a TOC that updates itself when you change headings or page numbers, saving you from manual edits.

What You’ll Need

  • A document with clear heading styles (e.g., Heading 1, Heading 2) applied to section titles.
  • Access to a word processor or platform that supports automatic TOCs (Microsoft Word, Google Docs, or a website builder like WordPress).
  • For web pages: a plugin or built-in TOC feature (most modern platforms include one).

Step-by-Step

  1. Apply heading styles to your sections. In Word or Google Docs, select the text you want as a heading, then choose the appropriate style (e.g., “Heading 1” for main sections, “Heading 2” for subsections) from the toolbar. This is essential because the TOC pulls from these styles.
  2. Place your cursor where you want the TOC. Usually this is at the beginning of the document, after the title page or abstract.
  3. Insert the automatic TOC.
    • Microsoft Word: Go to the “References” tab, click “Table of Contents,” and choose a style (e.g., “Automatic Table 1”).
    • Google Docs: Go to “Insert” > “Table of Contents” and select a format (with page numbers or with links).
    • Web (WordPress/other): Use a TOC plugin (e.g., “Table of Contents Plus”) or enable the built-in TOC in your theme settings. The plugin automatically scans your headings and inserts a list.
  4. Update the TOC after changes. If you add, remove, or reorder headings, the TOC won’t update by itself in most word processors. To refresh it:
    • Word: Click on the TOC, then choose “Update Table” (or press F9). You can update only page numbers or the entire table.
    • Google Docs: Click the refresh icon next to the TOC, or right-click and select “Update table of contents.”
    • Web: TOC plugins usually update automatically when you publish or reload the page.
  5. Customize the TOC appearance (optional). In Word, go to “References” > “Table of Contents” > “Custom Table of Contents” to change the number of levels shown, add dots, or adjust fonts. In Google Docs, you can modify the TOC’s formatting by editing the styles it uses.
  6. For web pages, ensure headings are properly tagged. If you’re using HTML, wrap section titles in <h2>, <h3>, etc. Most TOC plugins automatically pick these up. If not, check the plugin’s settings to specify which heading levels to include.

Common Mistakes

  • Not using heading styles. Manually bolding or enlarging text doesn’t create a heading that the TOC can detect. Always use the built-in styles.
  • Forgetting to update the TOC. After editing, the TOC can become outdated. Always refresh it before finalizing your document.
  • Including too many levels. A TOC with four or five levels can be overwhelming. Stick to 2–3 levels for most documents.
  • Using different heading styles inconsistently. If you use “Heading 1” for some sections and “Title” for others, the TOC won’t capture all of them. Be consistent.
  • In web, not enabling the TOC plugin. Some themes have a TOC feature that’s off by default. Check your theme’s settings.

Tips

  • Use heading levels logically. Heading 1 for main sections, Heading 2 for subsections, Heading 3 for sub-subsections. This creates a hierarchical TOC.
  • Add a TOC to long documents only. For pages under 500 words, a TOC is often unnecessary and can clutter the page.
  • In Word, you can add a “Table of Contents” entry manually if you have text that isn’t a heading (e.g., an appendix). Use “Add Text” in the References tab.
  • For web, consider a sticky TOC that stays visible while scrolling. Many plugins offer this option.
  • Always test the TOC links. In PDF exports, make sure the hyperlinks work. In Word, Ctrl+Click a TOC entry to jump to the section.

Troubleshooting

  • TOC is blank or missing entries. This usually means your headings aren’t using the built-in styles. Select the text and apply the correct heading style. In Word, you can also click “Update Table” and choose “Update entire table” to force a refresh.
  • Page numbers are wrong. The TOC shows page numbers as of the last update. Click the TOC and select “Update Table” > “Update page numbers only.”
  • TOC in web doesn’t appear. Check if the plugin is active and if your headings are in the correct HTML tags. Some plugins require you to exclude certain headings (e.g., the page title) from the TOC.
  • TOC formatting looks off. In Word, go to References > Table of Contents > Custom Table of Contents and adjust the formatting. In Google Docs, you can modify the TOC’s styles by editing the “Table of contents” style in the Format menu.
  • Hyperlinks in TOC don’t work in PDF. Ensure you export with “Create bookmarks” or “Hyperlinks” enabled in your PDF settings.

Frequently Asked Questions

Can I create a TOC without using heading styles?

No, automatic TOCs rely on heading styles. You can manually type a TOC, but it won’t update automatically.

How do I update the TOC in Google Docs?

Click the refresh icon next to the TOC, or right-click and select “Update table of contents.”

Why does my TOC show “No table of contents entries found”?

This error in Word means you haven’t applied heading styles. Select your section titles and apply a heading style from the Home tab.

Can I include a TOC in a PDF export?

Yes, most word processors include the TOC in PDF exports. Ensure you enable bookmarks or hyperlinks in the export settings.

How many heading levels should I include?

Typically 2–3 levels. Too many levels make the TOC hard to read. You can adjust this in the TOC settings.

Does the TOC update automatically when I add new sections?

No, you need to manually refresh it. In Word, press F9 or click “Update Table.” In Google Docs, click the refresh icon.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →