Formatting Issues

Set Text Width and Page Number Tabs in a Word Table of Contents

Bushra ParveenBushra Parveen Nov 22, 2026 868 views

Question details

Set a Word table of contents so description text wraps before a fixed page-number position.

Set Text Width and Page Number Tabs in a Word Table of Contents
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.
Before you start

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.

Solution 1Recommended

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.

1
Open the TOC style settings

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.

2
Set the text indent

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.

3
Set the page-number tab

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.

4
Apply and check the result

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.

Adjust the TOC style indents and page-number tab stop
If the tab stop does not behave as expected: Some Word versions do not reliably honor this combination of indents and tab stops in the current document format. Try the compatibility-mode option below if changing the style still moves or misaligns the page number.
Free Microsoft Office alternative

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.

Open and edit Microsoft Word DOC and DOCX filesWork with table of contents entries in WPS WriterUse a familiar interface for everyday document editingMove existing Office documents into a lightweight office suite
microsoft office alternative - wps office

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.