Formatting Issues

Create Inline Headings and Format Cross-References in Word

John WilsonJohn Wilson Nov 20, 2026 869 views

Question details

Create run-in headings that appear in a table of contents and format cross-reference field results.

Create Inline Headings and Format Cross-References in Word
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.
Before you start

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.

Solution 1Recommended

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.

1
Create the heading style

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.

2
Insert a style separator

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.

3
Map the style to a TOC level

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.

4
Insert or replace the table

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.

Create a Run-In Heading and Add Its Style to the Table of Contents
Custom styles and the TOC: Word's default table of contents uses built-in heading styles. A custom style needs a TOC level assignment to appear in the table.
Free Microsoft Office alternative

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.

Use document styles and formatting tools in WPS WriterOpen and save Microsoft Word DOC and DOCX filesWork in a familiar interface that makes switching easierUse a free, lightweight office suite for everyday documents
microsoft office alternative - wps office

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.