How to Add Hidden Chapter Headings to a Word Table of Contents
Question details
The user needs to include chapter headings in the Table of Contents without displaying the text in the main document body.

- Product
- Word
- Device & OS
- not provided
- Scenario
- Creating a customized document layout where chapter headings are designed as graphical images, requiring hidden text to correctly populate the Table of Contents.
- Observed behavior
- The standard Table of Contents fails to capture the desired headings because the visible headings are embedded in images, and previous field-code settings stopped working after heading styles were changed.
Ensure that you have the 'Show/Hide ¶' feature enabled in your Word settings so you can view hidden characters and field codes while inserting entries.
Use TC Fields to Create Hidden TOC Entries
This is the most reliable method to add text to your Table of Contents without it showing up in the document body or Navigation pane.
Table of Contents Entry (TC) fields allow you to define hidden text that the TOC will pick up during generation. This approach ensures your image-based headings remain undisturbed while the TOC reflects the correct document structure.
Place your cursor at the location in the document where the chapter heading belongs. Press 'Alt+Shift+O' to open the Mark Table of Contents Entry dialog box.
In the dialog box, type the exact text you want to appear in the Table of Contents into the 'Entry' field. Assign the appropriate heading level (e.g., level 1 for chapter titles) and click 'Mark'.
Press 'Alt+F9' to reveal your document's field codes. Locate your Table of Contents field code (it will look something like { TOC \o "1-3" \h \z \u }) and type '\f' at the end of the code so Word knows to include your TC entries.
Press 'Alt+F9' again to hide the field codes. Right-click your Table of Contents, select 'Update Field', and choose 'Update entire table' to display your new hidden headings.

Apply Hidden Formatting to Custom Heading Styles
An alternative approach is to type the actual text, apply a standard heading style, and format the text font as 'Hidden'.
Create Professional Tables of Contents with WPS Office
WPS Office provides advanced, easy-to-use formatting tools for complex documents, allowing you to manage custom headings, field codes, and Tables of Contents effortlessly.
- 1. Open your document: Launch WPS Writer and open the document where you need to create your Table of Contents.
- 2. Access reference tools: Navigate to the 'References' tab on the top ribbon and locate the Table of Contents section.
- 3. Customize TOC settings: Select 'Custom Table of Contents' to adjust heading levels, toggle field settings, and dictate exactly how your outline should behave.
- 4. Manage hidden text: Use the Font dialog tool from the Home tab to easily toggle hidden formatting for any headings you want to keep invisible in the layout.

Frequently Asked Questions
Why aren't my hidden TC entries showing up in the Table of Contents?
You must ensure the \f switch is added to your TOC field code. Press Alt+F9 to reveal field codes, locate your TOC code, add \f inside the brackets, press Alt+F9 again, and then update the table.
Will TC fields appear in the Word Navigation pane?
No, TC field entries are designed strictly to populate the generated Table of Contents and will not display in the Navigation pane or standard outline views.
How do I edit a TC field after inserting it?
Click the 'Show/Hide ¶' button on the Home tab to reveal hidden formatting marks. You will see the { TC "Your Text" } code in your document body, which you can edit directly like normal text.




