Formatting Issues

How to Add Custom Prefixes to Word Table of Contents Page Numbers

Elise WilliamsElise Williams Nov 3, 2026 869 views

Question details

The user needs to add custom text identifiers (such as CD or DS) before the page numbers in a Word Table of Contents. Additionally, they are unable to locate the Customize Table of Contents command in their software.

How to Add Custom Prefixes to Table of Contents Page Numbers in Word
Product
Word
Device & OS
not provided
Scenario
Generating a Table of Contents for a document that uses specialized page numbering formats, requiring the TOC to reflect exact custom identifiers rather than standard numbers.
Observed behavior
The generated Table of Contents only displays standard page numbers, dropping the custom prefixes used in the document. The user also cannot find the option to customize the table.
Before you start

Before manually editing your Table of Contents, ensure your document's text, headings, and overall layout are entirely finalized to avoid losing your custom edits during an accidental TOC refresh.

Solution 1Recommended

Manually Edit and Lock the Table of Contents

Since Word uses the standard PAGE field to generate numbers, the most reliable method for adding arbitrary text prefixes is manual editing followed by locking the TOC.

Word's built-in feature only allows chapter numbers from built-in heading styles to be automatically included in page numbers. Because there is no practical built-in way to use custom text prefixes like 'CD' or 'DS', you must manually type them into the generated TOC and lock it to prevent automatic updates.

1
Generate the Table of Contents

Insert your Table of Contents as you normally would using the References tab.

2
Manually add prefixes

Click inside the generated Table of Contents and manually type your required prefixes (e.g., 'CD' or 'DS') directly before each standard page number.

3
Select the TOC

Highlight the entire Table of Contents by clicking and dragging over the text.

4
Lock the field

Press Ctrl + F11 on your keyboard. This locks the Table of Contents field, preventing Word from automatically updating it and overwriting your custom prefixes.

Manually Edit and Lock the Table of Contents
Updating the TOC: If you need to update the Table of Contents later due to document changes, press Ctrl + Shift + F11 to unlock it. You will need to re-enter your manual prefixes after the update is complete.

Create and Customize Table of Contents with WPS Writer

WPS Writer provides an intuitive interface for generating and customizing your Table of Contents. You can easily insert a TOC, manually adjust your page number prefixes, and seamlessly lock fields to preserve your specialized formatting.

  1. 1. Open your document: Launch WPS Writer and open your .docx file.
  2. 2. Insert the TOC: Navigate to the Reference tab, click on Table of Contents, and choose Insert Table of Contents to configure your layout.
  3. 3. Add custom prefixes: After insertion, manually type your specific 'CD' or 'DS' identifiers in front of the page numbers.
  4. 4. Lock the TOC formatting: Select the Table of Contents and press Ctrl+F11 to lock the field, ensuring your manual prefix edits remain perfectly intact.
Advanced Table of Contents customization and easy document formatting.Fully compatible with Microsoft Word (.docx) formats.Lightweight, free office suite with a highly familiar user interface.
microsoft office alternative - wps office

Frequently Asked Questions

Can I use the 'Include chapter number' feature for custom prefixes?

Yes, but only if your prefixes are configured as automated multi-level list numbers linked to built-in heading styles. Arbitrary text like 'CD' or 'DS' cannot be directly added to the PAGE field without manual editing.

How do I unlock the Table of Contents if I need to update my document?

Click anywhere inside your locked Table of Contents and press Ctrl + Shift + F11 on your keyboard. You can then right-click and update the table, though you will need to re-enter your manual page prefixes afterward.

Why is the 'Customize Table of Contents' option missing in my Word version?

In older versions of Word, such as Word 2007 and Word 2010, the command is simply named 'Insert Table of Contents'. It functions identically and is located at the bottom of the Table of Contents drop-down menu on the References tab.