Formatting Issues

How to Fix Word StyleRef Header Not Preserving Superscript Formatting

Ayan MasoodAyan Masood Oct 23, 2026 869 views

Question details

The user needs to display superscript formatting correctly within a document header that pulls text dynamically from chapter headings.

How to Fix Word StyleRef Header Not Preserving Superscript Formatting
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.
Before you start

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.

Solution 1Recommended

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.

1
Insert a Section Break

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.

2
Unlink the Header

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.

3
Replace StyleRef with Manual Text

Delete the existing StyleRef field (the dynamic text) in the header. Manually type your heading exactly as you want it to appear.

4
Apply Superscript Formatting

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.

Manually Recreate Headers Using Section Breaks
Maintenance Required: Because the headers are no longer dynamically linked using StyleRef, you will need to manually update the header text if you ever change the corresponding chapter heading in the body of the document.
Free Microsoft Office alternative

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. 1. Download and Install: Visit the official WPS website and download the free WPS Office suite for your operating system.
  2. 2. Open Your Document: Launch WPS Writer and open your existing Word document. Your layout, text, and headings will remain perfectly preserved.
  3. 3. Customize Headers: Double-click the header area to access straightforward header and footer tools, making manual edits and section breaks simpler to manage.
Fully compatible with Microsoft Word documents (.docx) and formatting styles.Intuitive and easy-to-manage header and footer settings without relying on complex field codes.Lightweight software that runs smoothly on Windows, Mac, and Linux.Familiar user interface ensuring a seamless migration with zero learning curve.
microsoft office alternative - wps office

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.