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
Community showcase
Posted Oct 24, 2018 in Confluence

Atlassian Research opportunity with Confluence templates

Do you use templates with Confluence? Take part in a remote 1-hr workshop. You'll receive USD $100 for your time!   We're looking for people to participate in a   remote 1-hr workshop...

1,552 views 25 14
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