How to Keep Word Table of Figures Page Numbers on the First Line
Question details
The user wants to keep the page number on the first line of a Table of Figures entry when the figure caption wraps to multiple lines.
- Product
- Word
- Device & OS
- not provided
- Scenario
- Generating a Table of Figures with long descriptive captions that wrap across multiple lines.
- Observed behavior
- Word's default Table of Figures settings place the page number at the end of the entire wrapped text rather than anchoring it to the first line.
Ensure your document already contains figure captions and that you are familiar with toggling field codes and applying paragraph styles.
Use a Customized Table of Contents (TOC) Field
Since the default Table of Figures cannot force page numbers to the first line, use a modified Table of Contents field combined with style formatting to achieve the desired layout.
Word's automatic Table of Figures settings place the page number at the very end of the text block. To fix the page number on the first line, you must split the caption from its long description and use a custom TOC field that hides the page number for the description line.
Place the long descriptive text in a separate paragraph from the main figure caption, or use a Style Separator (Ctrl+Alt+Enter) to keep them visually on the same line while remaining logically separated.
Apply a custom style (for example, create a style named 'CaptionNot') to the long description text. This style must be distinct from the standard 'Caption' style used for the figure number.
Press Alt+F9 to toggle field codes and manually insert a customized TOC field. Type the following code: { TOC \t "Caption,1,CaptionNot,2" \h \z \n 2-2 }
The switch \n 2-2 in the field code ensures that level 2 (your descriptive style) does not display page numbers, keeping the page number anchored only to the first line (level 1).
Modify the formatting of the TOC 2 style in your document so it indents appropriately, making the long description appear neatly directly beneath the primary figure caption.

Easily Customize Tables of Figures and Contents in WPS Writer
WPS Writer offers robust support for advanced document formatting, including custom styles, style separators, and field codes. You can perfectly replicate complex Table of Figures layouts while enjoying a highly intuitive interface and seamless compatibility with Microsoft Word formats.
- 1. Open your document in WPS Writer: Launch the application and open your existing Word document containing the figures.
- 2. Set up Custom Styles: Go to the 'Home' tab, open the Styles pane, and create distinct styles for your short captions and the accompanying long descriptions.
- 3. Insert a Custom TOC: Navigate to the 'References' tab, select 'Table of Contents', and choose 'Custom Table of Contents' to map your specific styles to specific TOC levels without displaying page numbers for descriptions.
- 4. Edit Field Codes manually: If you prefer manual control, press Ctrl+F9 to insert a field, enter your specific TOC formatting switches, and press F9 to update.

Frequently Asked Questions
Why does the page number go to the end of a long figure caption?
By default, a Table of Figures treats the entire caption paragraph as a single entity. It applies a dot leader followed by the page number at the very end of the paragraph's text block, regardless of how many lines it wraps across.
What is a Style Separator and how do I use it?
A Style Separator allows you to have two distinct paragraph styles on the same visual line. It is highly useful when you want only the first part of a line (the short caption) to appear with a page number in a Table of Contents or Figures. You can typically insert it by pressing Ctrl+Alt+Enter.
Can I hide page numbers for specific levels in a custom TOC?
Yes. By using the \n switch in your TOC field code (for example, \n 2-2), you can omit page numbers for a specific level or range of levels, allowing the text to appear in the table without a trailing page number.




