How to Prevent Formatting Changes When Adding Text to a Table of Contents in Word
Question details
The user wants to include text in a Word Table of Contents without losing their custom formatting when heading styles are applied.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- Adding text to a document's Table of Contents using heading styles or the "Add Text" feature under the References tab.
- Observed behavior
- Applying heading styles or using "References > Add Text" overrides the text's original custom formatting, unexpectedly altering its font, size, color, alignment, and numbering.
Ensure your document text is fully formatted the way you want it to appear before updating your styles, and clearly decide which text should act as Level 1, Level 2, or Level 3 headings in your Table of Contents.
Update Heading Styles to Match Your Selection
This is the most effective way to retain your custom formatting while still allowing the text to be recognized by the Table of Contents generator.
When you add text to a Table of Contents, the word processor automatically applies a default Heading style (like Heading 1) to that text, which changes its visual appearance. By updating the Heading style to match your custom-formatted text, you preserve your design while keeping the necessary Table of Contents functionality.
Select the text you want to include in the Table of Contents and manually format its font, size, color, and alignment exactly as you want it to appear in the document.
Keep your newly formatted text selected. Navigate to the Home tab and locate the Styles gallery or pane.
Right-click on the appropriate heading level (e.g., Heading 1). From the context menu, select "Update Heading 1 to Match Selection."
Your text will now function as a heading without losing its custom look. Repeat this process for subheadings by updating Heading 2 or Heading 3 using the same method.

Effortlessly Manage Table of Contents with WPS Writer
WPS Writer offers a highly intuitive way to manage text styles and generate Tables of Contents without ruining your document's layout. Easily customize headings and build precise, professional documents for free.
- 1. Open Styles and Formatting: In WPS Writer, go to the Home tab and click on the Styles icon to open the formatting pane.
- 2. Update Style to Match: Format your heading exactly how you want it, right-click the desired Heading style in the pane, and select "Update to Match Selection."
- 3. Insert Table of Contents: Go to the References tab, click "Table of Contents," and insert an automatic TOC based on your newly updated, beautifully formatted styles.

Frequently Asked Questions
Why does my font change when I click "Add Text" in the References tab?
Using the "Add Text" feature automatically applies a default built-in Heading style (Level 1, 2, or 3) to your text so it can be indexed in the Table of Contents. Since these built-in styles have predetermined font and size settings, they override your manual formatting.
Can I format the Table of Contents itself without changing the document headings?
Yes. To format the actual Table of Contents layout, go to References > Table of Contents > Custom Table of Contents. Click "Modify" to change the TOC 1, TOC 2, etc., styles. This changes the text appearance inside the Table of Contents block without affecting the headings in the body of your document.
How do I remove a specific heading from the Table of Contents?
Select the text you want to remove, go to the References tab, click "Add Text," and select "Do Not Show in Table of Contents." Alternatively, you can apply the "Normal" style to the text from the Styles gallery on the Home tab.




