We have an interesting challenge:
A booklet has several chapters. The default is to always start on an odd page (i.e. on the right), and I implemented that successfully with "page-break-after: right;".
But some chapters are insets and should follow their previous chapter immediately.
As each chapter is processed separately I believe I cannot use "page-break-before" (I tried, but it doesn't give me the break I want).
Are there any options for this scenario?
To restate the problem: Any chapter can be followed by an "inset" chapter which is allowed to start on the left or right page. But any "real" chapter following that inset should again always start on the right. I can programmatically determine what kind of chapter I'm currently processing, but I don't know its number of pages. My thinking was that if it's a normal chapter then insert a page break before it, but I don't know how as I believe "page-break-before" does not work on the first element in a file (I tried html, body, h1 to no avail)?
Thank you for your help.
A booklet has several chapters. The default is to always start on an odd page (i.e. on the right), and I implemented that successfully with "page-break-after: right;".
But some chapters are insets and should follow their previous chapter immediately.
As each chapter is processed separately I believe I cannot use "page-break-before" (I tried, but it doesn't give me the break I want).
Are there any options for this scenario?
To restate the problem: Any chapter can be followed by an "inset" chapter which is allowed to start on the left or right page. But any "real" chapter following that inset should again always start on the right. I can programmatically determine what kind of chapter I'm currently processing, but I don't know its number of pages. My thinking was that if it's a normal chapter then insert a page break before it, but I don't know how as I believe "page-break-before" does not work on the first element in a file (I tried html, body, h1 to no avail)?
Thank you for your help.