My TOC Heading breaks before generated TOC.

In the bottom of my PDF Space Export Title Page, I have the following: <div><h1>Table of Contents</h1></div> The Heading renders properly, but the TOC content is on the following page. Obviously I want the TOC heading and the TOC content on the same page. How do I achieve this?

1 answer

If that <div>...</div> heading is at the bottom of the Title Page there is a good chance that there simply isn't enough space for the TOC itself and it will be moved to the next page.

The easiest solution should be to include a page break before the <div>...</div> so that the heading also moves to the next page.

If that doesn't work try to explain more precisely:

  • What is the code in you Title Page?
  • What TOC do you use? The confluence one or the macro?
  • Do you use a PDF Export Stylesheet? What is in there?

How a page break can be created has been answered numerous times. It is just a bit difficult to find these answers with the forum search engine. Perhaps try a Google search instead.

Suggest an answer

Log in or Join to answer
Community showcase
Louis De Jaeger
Posted yesterday in Off-topic

Friday fun: your best joke

Hi all Lets make this Friday fun really fun and post one (or more) of your best jokes! The joke can be about an Atlassian product, or just a really fun joke you want to share! I’m not the best j...

153 views 12 3
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot