Formatting Issues

How to Stop a Word Table of Contents from Breaking Across Pages

Olivia MillerOlivia Miller Oct 29, 2026 871 views

Question details

The user needs to prevent a document's Table of Contents from creating unexpected page breaks or leaving large blank spaces across pages.

How to Stop a Word Table of Contents from Breaking Across Pages
Product
Microsoft Word
Device & OS
not provided
Scenario
Generating or updating a multi-page Table of Contents in a text document.
Observed behavior
The Table of Contents contains large blank spaces or breaks awkwardly across pages because the applied styles use problematic Keep with next or Keep lines together formatting.
Before you start

Before modifying your styles, ensure your document's main headings are finalized and the Table of Contents has already been generated.

Solution 1Recommended

Modify TOC Styles to Disable Pagination Restrictions

Adjust the paragraph formatting of your TOC styles to disable 'Keep with next' and 'Keep lines together', allowing the Table of Contents to flow naturally.

When 'Keep with next' is enabled for multiple consecutive entries, Word attempts to keep all those entries on the same page. If they don't fit, it pushes the entire block to the next page, creating massive blank spaces.

To resolve this, you must modify the underlying TOC styles (TOC 1, TOC 2, etc.) rather than manually formatting the text, as manual changes will be lost the next time the table is updated.

1
Open the Custom Table of Contents Dialog

Navigate to the 'References' tab on the top ribbon, click on 'Table of Contents', and select 'Custom Table of Contents' from the dropdown menu.

2
Access the Style Modifier

In the Table of Contents dialog box, click the 'Modify' button. This will open the Style dialog showing your active TOC levels.

3
Select the TOC Level to Edit

Select the style you want to change, such as 'TOC 2' or 'TOC 3', and click the 'Modify' button next to the list.

4
Adjust Paragraph Formatting

Click the 'Format' dropdown at the bottom-left corner of the window and select 'Paragraph'.

5
Disable Keep With Next

Switch to the 'Line and Page Breaks' tab. Uncheck both the 'Keep with next' and 'Keep lines together' boxes, then click 'OK'.

6
Apply and Repeat

Click 'OK' to save the style. Repeat this process for any other lower-level TOC styles causing layout issues, then confirm to replace the existing Table of Contents.

Modify TOC Styles to Disable Pagination Restrictions
Retaining Style for Top-Level Headings: Depending on your layout preferences, you may choose to keep 'Keep with next' enabled for the 'TOC 1' style so main headings always stay with their immediate sub-items, while disabling it for 'TOC 2' and lower.
Professional Word Processing

Easily Manage Table of Contents Pagination with WPS Writer

WPS Writer offers intuitive tools for generating and fine-tuning your Table of Contents. You can easily modify paragraph styles to ensure your TOC flows perfectly across pages without awkward breaks, all in a user-friendly interface.

  1. 1. Open Your Document in WPS Writer: Launch WPS Office and open the document containing the Table of Contents you want to adjust.
  2. 2. Access Table of Contents Settings: Navigate to the 'Reference' tab, click on 'Table of Contents', and select 'Insert Table of Contents' to open the setup window.
  3. 3. Modify the TOC Styles: Click the 'Options' or 'Modify' button to access the specific TOC levels (TOC 1, TOC 2, etc.) used in your document.
  4. 4. Adjust Line and Page Breaks: Select 'Format' > 'Paragraph', navigate to the 'Line and Page Breaks' tab, and disable 'Keep with next'. Click 'OK' to apply the clean formatting.
Precise control over TOC styles and paragraph paginationSeamless format compatibility with Microsoft Word (.docx)Lightweight, fast, and free to use for daily document editing
microsoft office alternative - wps office

Frequently Asked Questions

Why does my Table of Contents have huge blank gaps between entries?

Huge gaps occur when the 'Keep with next' paragraph setting is applied to too many consecutive TOC entries. The word processor tries to keep them all on the same page, and when it fails, it moves the entire block to the next page, leaving the previous page mostly blank.

Can I apply 'Keep with next' only to main headings in my TOC?

Yes. You can modify just the TOC 1 style to retain the 'Keep with next' property, ensuring top-level headings stay attached to their first sub-heading, while disabling the setting for TOC 2 and lower styles.

How do I safely update the Table of Contents after modifying the styles?

Right-click anywhere inside your Table of Contents and select 'Update Field'. Choose 'Update entire table' and click OK. The new paragraph settings will automatically apply to the updated list.

Will changing TOC styles affect the actual headings in my main document text?

No. TOC styles (such as TOC 1, TOC 2) only control the appearance and pagination of the Table of Contents itself. Your actual document headings use separate Heading styles (Heading 1, Heading 2), which remain unaffected.