How to Fix Word Cross-References That Copy Entire Headings
Question details
The user needs to fix document cross-references that are pulling in entire paragraphs or extra text instead of just the targeted heading number or text.

- Product
- Word / WPS Writer
- Device & OS
- not provided
- Scenario
- Inserting or updating cross-references to headings after document content has been modified or moved via drag-and-drop.
- Observed behavior
- The cross-reference displays an entire paragraph or extra content because the hidden bookmark expanded, instead of displaying just the heading.
Before modifying your cross-references, press Alt+F9 (or Fn+Alt+F9 on some keyboards) to reveal the field codes in your document. This allows you to identify whether you are working with a REF or PAGEREF field and see exactly what the bookmark is pulling.
Use the \r Switch to Show Only the Heading Number
Use this solution if your REF field is capturing too much text and you only want it to display the heading number.
When a cross-reference is inserted, a REF field is created. By modifying the field code to include a specific switch, you can force the cross-reference to display only the numbering of the heading, ignoring any extra paragraph text that was accidentally dragged into the hidden bookmark.
Right-click the incorrect cross-reference in your document and select 'Toggle Field Codes' from the context menu.
Locate the revealed REF code (which will look something like { REF _Ref123456 }). Click inside the brackets and type \r at the very end so it reads { REF _Ref123456 \r }.
Right-click the field code again and select 'Update Field'. The cross-reference should now shrink to display only the heading number.

Recreate the Cross-Reference to Reset the Hidden Bookmark
Use this method if adding text or pressing 'Enter' next to a heading caused the hidden bookmark to expand unintentionally.
Switch to a PAGEREF Field for Page Numbers
Apply this solution if you only need the page number of the heading, which avoids pulling in any heading text entirely.
Manage Cross-References Seamlessly with WPS Writer
WPS Writer offers a highly intuitive and stable environment for managing document references, field codes, and bookmarks, helping you avoid broken cross-references entirely.
- 1. Open your document: Launch WPS Writer and open your .docx file containing the cross-references.
- 2. Access the Reference tab: Navigate to the 'Reference' tab on the top ribbon and click on 'Cross-reference'.
- 3. Insert accurately: Choose whether you want to insert the heading text, heading number, or page number, and WPS Writer will automatically generate the correct, clean field code.

Frequently Asked Questions
Why did my cross-reference suddenly include extra text?
When you create a cross-reference, the software wraps the target heading in a hidden bookmark. If you place your cursor at the very beginning of that heading and press Enter to type a new paragraph, the hidden bookmark expands to include the new content, causing it to appear in your cross-reference.
How do I update all cross-references in my document at once?
To update all cross-references simultaneously, press Ctrl+A to select your entire document, and then press F9. This refreshes all field codes, ensuring your cross-references reflect the latest heading text and page numbers.
What is the difference between a REF and PAGEREF field?
A REF field is designed to duplicate the text or the paragraph number of a referenced item. A PAGEREF field simply looks at where the referenced item is located and outputs the corresponding page number, ignoring the text entirely.




