How to avoid page breaks between some chapters?
Posted: Fri Dec 13, 2019 10:30 am
Hi!
I need to place some very short chapters on the same page. I see that chapter heading has a different behavior than topic heading, and
doesn't work.
I tried to apply something like this:
but no result.
I 've found that p-chapters.css contains:
Does it affect?
I need to place some very short chapters on the same page. I see that chapter heading has a different behavior than topic heading, and
Code: Select all
*[class~="topic/topic"] > *[class~="topic/title"] {
page-break-before:avoid;
}
I tried to apply something like this:
Code: Select all
*:not([class ~= "map/chapter"])[outputclass ~= "no-page-break-before-chapter"] {
page-break-before:avoid;
}
I 've found that p-chapters.css contains:
Code: Select all
*[class ~= "topic/topic"][is-chapter] {
/* Each chapter starts a new page sequence, so the :first selector applies to each of them. */
-oxy-page-group:start;
page: chapter;
}