Automatically Generating Table of Contents with Styles
8 min read Chapter 6
Learn to use styles to automatically generate table of contents and make documents more professional.
Key Takeaways
- Understand what typesetting is and why you need to learn it
- Master page setup, margins, headers and footers
- Learn to use fonts, font sizes, and character formatting correctly
- Build a style system for efficient formatting workflow
- Use styles to automatically generate table of contents
- Master paragraph formatting, table layout, and image-text mixing
- Handle common typesetting issues in practice
Once you’ve established a clear style hierarchy, you can fully leverage Word/WPS’s automatic table of contents feature.
6.1 What is an Automatic Table of Contents?
How Auto TOC Works
Word/WPS scans the entire document for all paragraphs with “Heading 1”, “Heading 2”, “Heading 3” styles applied, and automatically generates a TOC showing their titles and page numbers.
Advantages of Auto TOC
- One-Click Generation: No need to manually enter each title and page number
- Real-time Updates: TOC can be automatically updated when titles change or content is added
- Smart Page Numbers: Page numbers calculate automatically, no errors
- Interactivity: Readers can click TOC titles to jump directly to sections
6.2 Steps to Generate Auto TOC
Prerequisite
All headings in the document have correctly applied “Heading 1”, “Heading 2”, etc. styles.
Step 1: Place Cursor at TOC Location
Usually at the beginning of the document (after title, before body text).
Step 2: Insert TOC
Word Operation:
- “References” tab → “Table of Contents” → Select a style
WPS Operation:
- “References” tab → “Table of Contents” → Select style
Step 3: TOC Auto-Generates
The page will display:
Table of Contents
Chapter 1 Introduction................................................1
Chapter 2 Literature Review...........................................5
2.1 Related Research.........................................5
2.2 Theoretical Basis.........................................8
Chapter 3 Methodology...........................................12
6.3 Updating the TOC
When You Modify Titles or Add/Delete Content
The TOC needs to be updated.
Update Method
- Right-click the TOC
- Select “Update Field” (Word) or “Update Table of Contents” (WPS)
- Select “Update entire table”
- OK
Result
- New headings are added to the TOC
- Page numbers automatically recalculate
- Deleted headings are removed from the TOC
6.4 Customizing TOC Appearance
Customizing TOC in Word
- “References” → “Table of Contents” → Click “Custom Table of Contents”
- In the dialog:
- “Formats”: Choose your preferred style
- “Show levels”: Default 3, can change to 2 or 4
- “Right align page numbers”: Check to align page numbers right
- “Tab leader”: Check to show dots before page numbers
- Click “OK”