Fix Word Caption Error: No Text of Specified Style in Document
Question details
The user needs to fix a formatting error that occurs when trying to include chapter numbers in captions for tables, figures, or equations.

- Product
- Word
- Device & OS
- not provided
- Scenario
- Inserting a caption with the 'Include chapter number' option checked, but the document lacks the specific heading style required to generate the number.
- Observed behavior
- The application displays 'Error! No text of specified style in document' instead of generating the expected chapter and caption number.
Ensure your document has actual text designated for chapter titles or main section headings where the numbering should be pulled from.
Apply the Heading 1 Style to Chapter Titles
By default, Word looks for the 'Heading 1' style to extract the chapter number. Applying this built-in style to your chapter titles will instantly resolve the missing text error.
The caption tool relies on standard heading styles to determine where a new chapter begins. If your chapter titles are just formatted with a large bold font but are technically treated as 'Normal' text, Word will not be able to identify the chapter number.
Navigate to the beginning of your chapter and highlight the text you are using as the chapter title.
Go to the 'Home' tab on the top ribbon. In the 'Styles' gallery, click on 'Heading 1'.
While the heading is selected, click the 'Multilevel List' icon in the Paragraph group and choose a list style that includes 'Heading 1' (e.g., 1 Heading 1, 1.1 Heading 2).
Scroll down to the caption displaying the error, right-click on the error text, and select 'Update Field'. The error should disappear and display the correct number.

Change the Chapter Starting Style in Caption Settings
If you applied a different heading level (like Heading 2 or Heading 3) to your chapters, you need to adjust the caption numbering settings to reference that specific style.
Easily Manage Captions and Styles in WPS Writer
WPS Writer offers an intuitive approach to document styling and automated captioning, easily preventing common errors while managing complex multi-level lists.
- 1. Open your document: Launch WPS Writer and open the document containing the tables, equations, or figures.
- 2. Apply built-in headings: Highlight your chapter title and easily click 'Heading 1' from the prominent Styles section on the Home tab.
- 3. Insert the automated caption: Navigate to the References tab, click 'Insert Caption', and check 'Include chapter number'.
- 4. Select the correct style: Ensure the 'Chapter starts with style' dropdown is mapped to Heading 1, then click OK to insert the perfectly numbered caption.

Frequently Asked Questions
Why does my caption chapter number start at zero (e.g., Figure 0-1)?
This happens when there is no numbered heading before the caption in the document. Ensure that the heading style you selected in the caption numbering settings actually has a numbered list format applied to it in the main text.
Can I use custom styles for chapter numbers in captions?
Word's built-in 'Include chapter number' feature specifically requires the use of standard, built-in Heading styles (Heading 1 through Heading 9). If you want to use a custom style, you must link it to one of these built-in heading levels through the Multilevel List settings.
How do I fix the error without changing my document's formatting?
If you don't want the visual appearance of your text to change, you can modify the 'Heading 1' style to look exactly like your current text. Right-click 'Heading 1' in the Styles gallery, click 'Modify', and adjust the font, size, and color to match your desired design.
Does updating fields automatically fix all caption errors?
Updating fields (by selecting all text and pressing F9) will only fix the errors if you have correctly applied the required Heading style to your chapter titles beforehand. If the headings are still missing, the error will persist.




