Can you change Heading levels in the Table of Contents?

Usually, the Heading levels match the way they appear in the Table of Contents: Heading 1 is at the left margin, Heading 2 indented once, and so on.

Is there a way to break this pattern? Can I make a specific Heading 1 appear indented once, and the following Heading 2 indent twice?

1 answer

0 vote

Hi Shawn,

In the Table of Contents Macro, you have the ability to include the indent parameter which will allow you to increase the level of indent:

Sets the indent for a list according to CSS quantities. Entering 10px will successively indent heading groups by 10px. For example, level 1 headings will be indented 10px and level 2 headings will be indented an additional 10px.

Go ahead and give that a try and let us know if that helps you do what you need or if you have any trouble or questions.

Kind Regards,
Shannon

This is interesting, but it's not what I'm looking for, because it affects all the entries. Let me explain better than before.

Right now my ToC looks like this:

  • Topic A (Heading 1)
    • SubTopic A1 (Heading 2)
  • Topic B (Heading 1)
    • SubTopic B1 (Heading 2)
    • SubTopic B2 (Heading 2)
  • Topic C (Heading 1)
    • SubTopic C1 (Heading 2)

 

I'd like to change it to look like this:

 

  • Topic A (Heading 1)
    • SubTopic A1 (Heading 2)
  • Topic B (Heading 1)
    • SubTopic B1 (Heading 2)
    • SubTopic B2 (Heading 2)
    • Topic C (Heading 1)
      • SubTopic C1 (Heading 2)

Note that, in the body of the document, Topic C and SubTopic C1 are still using Heading 1 and 2, respectively.

Right now my workaround is to change the headings in the body, so that the Topic C heading is actually Heading 2, but LOOKS like Heading 1.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

628 views 21 11
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you