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.

Thanks.

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Tuesday in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

464 views 19 9
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