Create Inline Headings and Format Cross-References in Word
Question details
Create run-in headings that appear in a table of contents and format cross-reference field results.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- A document needs headings and body text on the same line, while retaining heading entries in the table of contents and consistent cross-reference formatting.
- Observed behavior
- The desired document has inline headings listed in the table of contents and cross-references formatted with a character style.
Open the document in desktop Word and identify the heading text you want to include in the table of contents. Turn on Home > Show/Hide ¶ to make paragraph and style separators easier to inspect.
Create a Run-In Heading and Add Its Style to the Table of Contents
Use a custom paragraph style and a style separator when a heading and its body text must share a line.
On the Home tab, open the Styles pane and choose New Style. Name the style, set its style type to Paragraph, choose the desired formatting, and click OK.
Apply the new style to the heading paragraph. Place the cursor at the end of the heading and insert a style separator; in Word for Windows, press Ctrl+Alt+Enter. Type the body text after the separator and apply the Normal style to it.
Go to References > Table of Contents > Custom Table of Contents > Options. Find your custom style, enter a TOC level such as 1 next to it, and click OK.
Click OK in the Table of Contents dialog and, if prompted, confirm that you want to replace the existing table. Check that the heading appears without the body text.

Apply a Character Style to Cross-Reference Results
Use a character style to format individual cross-references consistently.
Edit Word Documents with WPS Writer
WPS Writer is a free, lightweight alternative for editing documents in a familiar interface. Open compatible Word files and continue working with styles and document formatting as you migrate; check complex Word fields and layout after opening.

Frequently Asked Questions
Why doesn't my custom heading appear in the table of contents?
Go to References > Table of Contents > Custom Table of Contents > Options and assign a TOC level to the custom style. Then replace or update the table.
How can a heading and body text appear on the same line?
Apply a paragraph style to the heading and insert a style separator at its end. In Word for Windows, use Ctrl+Alt+Enter, then apply the Normal style to the text after the separator.
Can Word automatically apply my character style to every cross-reference?
Word does not automatically apply a custom character style to all cross-references. Select each displayed reference and apply the style from the Home tab's Styles pane, or consider a macro for bulk formatting.
What should I do if a cross-reference loses its formatting after an update?
Select the displayed cross-reference and reapply your character style from the Styles pane. Check the result again after updating the field with F9.




