How to get a minitoc in the exported pdf?

I am exporting a pdf, out from multiple confluence wiki pages. My requirement is to have a minitioc(for h1, h2, h3 etc.) at the top for each page in the exported pdf. Is this possible to generate, and how?

I don't want to update my wiki pages.


2 answers

Hello there, currently the TOC takes into consideration the entirety of the content in a given page. You can choose where to display the TOC using the CSS Class Name parameter, as described in our doc, though this may need some experimenting with the content and CSS to achieve the desired output.

I did also find an request to improve the functioning of the styling aling this macro, which can be reviewed here.

Do you really mean "at the top for each page in the exported pdf"? That would not be possible.

If you mean "at the beginning of each of your wiki pages" that is possible. Just include the macro at the top of each of your wiki pages and set the "Minimum/Maximum Heading Level" to 1 and 3.


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
Sarah Goff-Dupont
Published 4 hours ago in Confluence

Think you know shares vs. @mentions in Confluence? Take this collab quiz.

To anyone who doubts that Atlassians are a little too obsessed with collaboration, and tools related thereto, let me describe a recent discussion we had (which took place on our internal Confluence, ...

56 views 2 3
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