How to Show a Chapter Number and Title on One Line in Table of Contents
Question details
The user needs to display chapter numbers and their corresponding titles on a single line within a custom Table of Contents, even if they appear on separate lines in the document body.

- Product
- Word
- Device & OS
- not provided
- Scenario
- Formatting a contract document where the Table of Contents requires specific horizontal alignment for chapter numbers and titles.
- Observed behavior
- The chapter number and title are separated into multiple lines or distinct entries in the Table of Contents due to standard paragraph breaks in the main document.
Ensure that both your chapter numbers and titles in the document body are currently using standard Heading styles (such as Heading 1 or Heading 2) so they can be recognized by the Table of Contents feature.
Use a Manual Line Break (Shift+Enter)
The simplest way to keep the chapter number and title on the same line in the TOC while displaying them on separate lines in the document is to use a manual line break.
A standard paragraph break (created by pressing Enter) tells the word processor that a new paragraph has started, causing the Table of Contents to create two separate entries. Replacing it with a manual line break forces a visual new line without starting a new paragraph.
Highlight both the chapter number (e.g., 'Article 15') and the title (e.g., 'Employee Benefits') in your document body and apply the exact same Heading style to them.
Place your text cursor directly after the chapter number and press Delete or Backspace to remove the paragraph break, bringing the title to the same line.
With your cursor still between the chapter number and the title, press Shift + Enter. This pushes the title to the next line visually while keeping it in the same paragraph block.
Scroll up to your Table of Contents, right-click anywhere inside it, and click 'Update Field'. Select 'Update entire table' and click OK. Both items will now appear on one single line.

Use a Style Separator for Different Heading Styles
If your chapter number and title must have completely different font styles or sizes in the document body, you will need to use a Style Separator.
Easily Format Tables of Contents with WPS Writer
WPS Writer provides a powerful, intuitive interface for generating and customizing Tables of Contents for professional documents like contracts or academic reports. It seamlessly handles manual line breaks, style separators, and custom heading configurations.
- 1. Format Your Headings: Open your document in WPS Writer. Highlight your chapter numbers and titles, then select the appropriate Heading style from the Home tab.
- 2. Consolidate with Line Breaks: Use 'Shift + Enter' between the chapter number and title to keep them structurally together as one paragraph while visually separated on the page.
- 3. Generate and Update: Go to the 'References' tab and click 'Table of Contents' to insert your customized TOC. If you make edits, simply click 'Update TOC'.

Frequently Asked Questions
Why does my Table of Contents show the chapter number and title on separate lines?
This happens if you used a standard paragraph break (by pressing the Enter key) between the chapter number and the title in your main document. The TOC reads them as two distinct headings. Replacing the paragraph break with a manual line break (Shift+Enter) fixes this issue.
Will updating the entire table overwrite my manual TOC edits?
Yes. If you manually type or delete text directly inside the Table of Contents block, your changes will be completely erased the next time you refresh or update the table. You should always make your formatting changes in the document body and then update the TOC.
Can I hide chapter numbers in the TOC but keep them in the main text?
Yes, you can achieve this by applying a normal or non-heading style to the chapter numbers in the document body, or by customizing the TOC field codes to exclude numbered lists, though this requires advanced document formatting.
Does the Shift+Enter trick work for the Table of Figures as well?
Absolutely. You can use manual line breaks to separate figure labels (e.g., 'Figure 1') and their descriptions in the document body. When you generate a Table of Figures, they will elegantly display on a single line.




