Set Text Width and Page Number Tabs in a Word Table of Contents
Question details
Set a Word table of contents so description text wraps before a fixed page-number position.

- Product
- Microsoft Word 2016 for Mac
- Device & OS
- macOS
- Scenario
- A user wants long table of contents entries to wrap while page numbers remain right-aligned at 15 cm.
- Observed behavior
- Changing paragraph formatting moves the entire entry, including the page number, instead of adjusting only the description text.
Check that the table of contents is automatic and identify the TOC styles used for its levels. In Word, tab positions are measured from the paragraph's left margin, so confirm that 15 cm is the intended position relative to that margin.
Adjust the TOC style indents and page-number tab stop
Use the table of contents style settings to give entry text room to wrap while retaining a separate right-aligned page-number tab.
Apply the settings to each TOC level you use. A right indent can limit the text area, while a right-aligned tab stop controls the page-number position; however, Word's behavior can vary by version and compatibility mode.
Click in the table of contents, then go to References > Table of Contents > Custom Table of Contents. Select Modify, choose a style such as TOC 1, and select Modify again.
In the Modify Style dialog, select Format > Paragraph. Increase the right indent to leave space between wrapped description text and the page-number area, then select OK.
Select Format > Tabs. Enter 15 cm as the tab stop position, choose Right alignment and the desired leader, then select Set and OK. Remove a conflicting page-number tab stop if one is already present.
Confirm the style and table of contents dialogs, then update or replace the table when prompted. Check a long entry to see whether its text wraps before the page number while the number remains aligned at 15 cm.

Try the tab-stop formatting in Word Compatibility Mode
Use this workaround if the indent and tab-stop method does not work in a current-format Word document.
Work with Word Documents in WPS Writer
WPS Office is a free, lightweight alternative with a familiar interface for opening and editing Word documents. Its format compatibility makes it easy to move existing files into WPS Writer, though it does not fix Microsoft Word's compatibility-mode bug.

Frequently Asked Questions
Why does changing the right indent move my page numbers?
The page-number position depends on the TOC paragraph's tab stop as well as its indent. Open References > Table of Contents > Custom Table of Contents > Modify, then check both Format > Paragraph and Format > Tabs for the relevant TOC style.
How do I align TOC page numbers at 15 cm?
In the TOC style's Format > Tabs dialog, enter 15 cm, select Right alignment and a leader if desired, then select Set. The position is measured from the paragraph's left margin.
Will a .docx file always open in Compatibility Mode?
No. A .docx file can use either a current or an older compatibility mode. Open the document and check the Word title bar for Compatibility Mode.
Will manually formatting a TOC entry survive an update?
Manual formatting may be lost when the table is rebuilt. For an automatic table, modify the applicable TOC style through References > Table of Contents > Custom Table of Contents > Modify instead.




