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

This widget could not be displayed.

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; }

 

This widget could not be displayed.

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

This widget could not be displayed.

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
Posted Monday in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

509 views 7 6
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