How to Use a Style Separator for Same-Line Headings in Word
Question details
The user needs to display a specific term as a heading in the Table of Contents and Navigation Pane, while keeping its definition on the exact same line within the document text.

- Product
- Word
- Device & OS
- not provided
- Scenario
- Formatting documents with run-in headings, inline subheadings, or dictionary-style layouts where only the leading term should be recognized as a heading.
- Observed behavior
- Standard heading styles apply to the entire paragraph, either forcing the term and its definition onto separate lines or causing the entire definition to be pulled into the Table of Contents.
Before applying style separators, it is highly recommended to display formatting marks by pressing Ctrl+* (or clicking the Show/Hide ¶ button on the Home tab) so you can clearly see the hidden separator marks in your document.
Insert a Style Separator Using Keyboard Shortcuts
Use the built-in keyboard shortcut to insert a style separator, allowing two different paragraph styles to coexist on the exact same visual line.
A style separator is a special hidden character in word processors. It allows the text preceding the separator to behave as a heading (which is picked up by the Table of Contents) while the text following it acts as normal body text, even though they appear on the same line.
Select the specific term or short phrase that you want to act as your heading. Go to the Home tab and apply your desired Heading style (e.g., Heading 1 or Heading 2).
Place your text cursor immediately after the heading term, exactly between the term and the beginning of its definition. Press the keyboard shortcut Ctrl+Alt+Enter.
Word will insert the style separator and instantly merge the following paragraph onto the same line. Ensure that the definition text following the separator is set to the Normal style so it does not appear in your Navigation Pane or Table of Contents.

Use StyleRef Fields to Display Same-Line Terms in Headers
If your goal is to showcase these run-in headings dynamically at the top of your pages (like a dictionary or glossary), you can utilize the StyleRef field.
Easily Manage Complex Document Layouts with WPS Writer
WPS Writer provides robust styling and layout tools to help you format professional documents, generate automatic Tables of Contents, and manage intricate text structures with ease.
- 1. Open your document: Launch WPS Writer and open the document you wish to format.
- 2. Apply styles: Highlight your text and quickly apply Heading styles directly from the Home tab.
- 3. Generate a Table of Contents: Navigate to the References tab and click 'Table of Contents' to generate your outline instantly based on your applied styles.
- 4. Customize formatting: Modify paragraph settings and style definitions seamlessly via the intuitive right-hand properties pane.

Frequently Asked Questions
Why is my entire paragraph showing up in the Table of Contents?
This happens when the entire paragraph is formatted with a Heading style. To fix this, you must apply the Heading style only to the leading term and use a style separator (Ctrl+Alt+Enter) so the rest of the paragraph remains in the Normal style.
How do I delete or remove a style separator?
First, turn on formatting marks (Ctrl+*) to reveal the hidden style separator mark. Place your text cursor immediately before the separator and press the Delete key. This will remove the separator and merge the styling of the text.
Can I use a hidden paragraph mark instead of a style separator?
Yes. You can press Enter to physically separate the heading and the text into two lines, then select the paragraph mark between them and apply 'Hidden' font formatting. This creates a similar visual effect of a run-in heading on the same line, though the style separator is generally considered the more robust method.




