How to Fix Word StyleRef Header Not Preserving Superscript Formatting
Question details
The user needs to display superscript formatting correctly within a document header that pulls text dynamically from chapter headings.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- Using a StyleRef field (such as in the Motion template) to automatically generate headers based on section headings that contain superscript text.
- Observed behavior
- The StyleRef field strips out the direct superscript formatting, displaying the superscripted characters as regular, inline text within the header.
Press Alt+F9 (or Option+F9 on Mac) to reveal your document's field codes and confirm whether your dynamic header is currently using a StyleRef field.
Manually Recreate Headers Using Section Breaks
Since the StyleRef field fundamentally ignores direct superscript formatting, the most reliable workaround is to use section breaks and manually format the header text.
The StyleRef field is designed to pull raw text and paragraph-level styles, meaning it intentionally drops direct character formatting like superscript, subscript, and font color. To keep superscripts in your headers, you must separate your document into sections and manually type the header text.
Navigate to the end of the previous chapter. Go to the 'Layout' tab on the ribbon, click 'Breaks', and select 'Next Page' under Section Breaks.
Double-click the header area in the new section. In the Header & Footer toolbar, click 'Link to Previous' to disable it, ensuring changes here won't affect the previous chapters.
Delete the existing StyleRef field (the dynamic text) in the header. Manually type your heading exactly as you want it to appear.
Highlight the specific characters that need to be superscripted in the header. Go to the 'Home' tab and click the Superscript button (x²) in the Font group.

Experience Seamless Document Formatting with WPS Office
Complex field limitations in Microsoft Word can complicate your formatting workflow. WPS Office provides a highly compatible, free, and lightweight alternative for creating professional documents with easy-to-use header and footer customization.
- 1. Download and Install: Visit the official WPS website and download the free WPS Office suite for your operating system.
- 2. Open Your Document: Launch WPS Writer and open your existing Word document. Your layout, text, and headings will remain perfectly preserved.
- 3. Customize Headers: Double-click the header area to access straightforward header and footer tools, making manual edits and section breaks simpler to manage.

Frequently Asked Questions
Why does the StyleRef field remove my font colors and bold formatting?
The StyleRef field only inherits the base paragraph style of the source text. Any direct character formatting applied manually over that style—such as specific font colors, bold, italics, or superscript—is intentionally ignored by the field's underlying logic.
Can I format the StyleRef field code itself to make text superscript?
Yes, but this format will apply to the entire field result. If you apply superscript formatting to the StyleRef field code, the entire heading will appear as superscript in the header, rather than just the specific numbers or letters you originally intended.
Is there another dynamic field that preserves direct formatting?
Unfortunately, no standard dynamic linking field fully preserves direct, partial-character formatting like superscript when pulling text from headings. Creating manual section headers remains the standard and most reliable workaround.




