How to Fix Word Table of Contents Layout Changes in SharePoint Online
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.

- 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.
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.
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.
Open the document in SharePoint Online or Teams. Click the 'Viewing' or 'Editing' button on the top ribbon and select 'Open in Desktop App'.
Review the table of contents in the Word desktop application to ensure the pagination and layout appear correctly as originally formatted.
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.

Adjust Table of Contents Formatting
Compressing the table of contents can sometimes prevent it from spilling over and triggering a layout shift in the web viewer.
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.

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.




