pdf export toc start with heading level 2

Hi there,

my PDF layout has already a table of content.
I'm now trying to change the toc selector to be able to show only headings with h2 format.

Is it possible to determine minlevel of toc exactly like in the macro?



3 answers

No, it is not possible like that.

But: To hide different levels of headings in the toc you can set div.toclvl0, div.toclvl1, div.toclvl2, a.s.o. to { display: none; }


hmm, thats pitty.

Your hint is not that what I'm searching for.

In our templates we have declared a div selector with a specific class for a specific page title.
And this specific page title should now be displayed in in the table of content.

Is there a possibility to do this?




About your first question:
If you want to set a minlevel=3, meaning only h3 and less should be displayed in the toc but h1 and h2 not, you just define it in your PDF Export Stylesheet as:

div.toclvl0, div.toclvl1, div.toclvl2 {
display: none;

About your second question:

Sorry, I just don't understand it at all. Perhaps you can explain in different words?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

1,040 views 2 13
Read article

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