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?

Cheers,

Lina

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?

 

Cheers,

Lina

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Friday in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

277 views 11 10
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