Page break for every H1
Page break for every H1
I have a printed PDF book made up of topics that all start with H1. Is there a way to set it up so every topic starts on a new page? I am trying to avoid having any headings (h1) at the bottom of a page.
Re: Page break for every H1
You can use a CSS rule:
Code: Select all
h1
{
page-break-before: always;
}
Re: Page break for every H1
I set the "page-break-before: always;" for an H1 style, but get not only a page break, but a blank page before every H1.
Why is that?
Why is that?
Re: Page break for every H1
Honestly it could be many things. I'd suggest looking at any setting you might have at target level to inject empty pages (Advanced tab) and any settings at TOC Printed Output level for "Auto-end on 'left' page". Try disabling them if they're enabled and see what happens.
Re: Page break for every H1
Finally figured it out. After looking into every possible way a page break could be inserted, I found a problem in a page layout file. My left page layout had a frame mis-typed as a header in place of a body frame.
This led to many strange symptoms, including a PDF ToC entry that pointed to a blank page.
Some of my hair is left.
Thanks for the tips! They kept me sane...
This led to many strange symptoms, including a PDF ToC entry that pointed to a blank page.
Some of my hair is left.
Thanks for the tips! They kept me sane...