logo
search
Formatting Issues

How to Fix Word Table of Contents Layout Changes in SharePoint Online

WPS EditorWPS Editor Oct 10, 2026 870 views

Question details

The user needs to prevent or fix a long table of contents from shifting to the second page when viewing a Word document in SharePoint Online or Teams.

How to Fix Word Table of Contents Layout Changes in SharePoint Online
Product
Microsoft Word for the Web, SharePoint Online, Microsoft Teams
Device & OS
not provided
Scenario
Viewing or collaborating on a Word document with a long table of contents in a web browser via SharePoint or Teams.
Observed behavior
The table of contents layout changes and moves to the second page in the web version, even though it displays correctly and maintains original pagination in the Word desktop application.
Before you start

Ensure you have the Microsoft Word desktop application installed on your computer, as you will need it to verify and lock the document's original pagination.

Solution 1Recommended

Use Word Desktop App and Export to PDF

Since Word for the web renders pagination differently, exporting your document to a PDF from the desktop client ensures the layout remains exactly as intended for all viewers.

Word for the web dynamically recalculates pagination and lacks the advanced layout engine of the desktop client. This often causes long tables of contents to shift pages. There is currently no setting in the web version to force the desktop layout.

1
Open document in Desktop App

Open the document in SharePoint Online or Teams. Click the 'Viewing' or 'Editing' button on the top ribbon and select 'Open in Desktop App'.

2
Verify layout

Review the table of contents in the Word desktop application to ensure the pagination and layout appear correctly as originally formatted.

3
Export to PDF

Go to 'File' > 'Save As' or 'Export' and choose 'PDF'. Save the PDF file and share this version with your team to guarantee the layout is locked and displays identically on all devices.

Use Word Desktop App and Export to PDF
Submit Feedback to Microsoft: Because this is a known limitation of Word for the web, consider submitting feedback through the Microsoft Feedback portal to request better pagination parity between web and desktop versions.
Free Microsoft Office alternative

Experience Consistent Formatting with WPS Office

Tired of layout shifts and pagination errors when moving between different word processors? WPS Office provides a highly compatible, lightweight, and free alternative to Microsoft Office, ensuring your tables of contents and document layouts look exactly the same across different devices.

Fully compatible with Microsoft Word (.docx) formats.Consistent layout rendering for tables of contents and complex pagination.Lightweight and completely free to use.Familiar user interface makes switching seamless.
microsoft office alternative - wps office

Frequently Asked Questions

Why does Word for the web change my document layout?

Word for the web is a lightweight version of the desktop app. It uses a different rendering engine that dynamically calculates pagination for browsers, which can alter the layout of complex elements like long tables of contents.

Can I force Word for the web to show the exact desktop layout?

Currently, there is no setting in Word for the web to force strict desktop pagination. If exact layout matching is required, you must use the desktop application or share the document as a locked PDF.

How do I open a SharePoint document directly in the desktop app?

In SharePoint Online or Teams, click on the document to open it in the web viewer. Then, look for the 'Editing' or 'Viewing' dropdown menu on the ribbon and click 'Open in Desktop App'. You can also change your document library settings in SharePoint to always open files in the client application by default.