Forum Discussion

KlaCat's avatar
KlaCat
Copper Contributor
Jun 18, 2023

Table of contents - include only heading's numbering but excluding text

My TOC currently looks like this:

But it's much too lengthy. Is there a way to include only the numbering of the level 3 heading (the one starting with §) and exclude the rest of the text?

 

It should look like this:

 

6 Replies

  • Charles_Kenyon's avatar
    Charles_Kenyon
    Bronze Contributor

    KlaCat 

    You want to use a Style Separator. The part you do not want in the TOC should be in a separate paragraph in a style that does not show up in the TOC. You could use a single space in the paragraph that has the number.

    • Stefan_Blom's avatar
      Stefan_Blom
      MVP

      Charles_Kenyon 

       

      Charles, what you are suggesting would normally work. However, something appears to be wrong in Word. An auto number (in Heading 1 style) is ignored by the TOC, even when a space character (nonbreaking or breaking space) follows the number. Are you seeing the same thing? I am running Word 2021 Professional, version 2305. 

       

       

Resources