Controlling Page Breaks Before/After for Part/Chapter
Posted: Thu Jul 12, 2018 12:23 am
Hello Oxygen Team and Users,
I am struggling to figure out how to implement the following fir the DITA MAP PDF - Based on DITA and CSS (WYSIWYG) transform:
• Part has page break before, but not after (keep with next chapter title)
• Chapter has no page break before
I tried coding the following (among many other solutions) to override the default configuration for part/chapter, with no luck:
I unfortunately cannot post hosted images from my workplace, but here's what I'm getting vs. the desired result:
Desired
Part Title (page break before)
Chapter Title (no page break following part title)
Mapref Title (no page break following chapter title)
Actual
Part Title (page break before and after)
Chapter Title (page break before)
Mapref Title (no page break following chapter title)
I've been reviewing https://www.oxygenxml.com/doc/versions/ ... aking.html and trying different solutions with no luck. Can you suggest how to achieve this page flow?
Regards,
Paul Hillier
I am struggling to figure out how to implement the following fir the DITA MAP PDF - Based on DITA and CSS (WYSIWYG) transform:
• Part has page break before, but not after (keep with next chapter title)
• Chapter has no page break before
I tried coding the following (among many other solutions) to override the default configuration for part/chapter, with no luck:
Code: Select all
*[class~="topic/topic"] > *[class~="topic/title"] {
page-break-after: avoid;
}
*[class~="topic/topic"] *[class~="topic/topic"] > *[class~="topic/title"] {
page-break-before: avoid;
}
Desired
Part Title (page break before)
Chapter Title (no page break following part title)
Mapref Title (no page break following chapter title)
Actual
Part Title (page break before and after)
Chapter Title (page break before)
Mapref Title (no page break following chapter title)
I've been reviewing https://www.oxygenxml.com/doc/versions/ ... aking.html and trying different solutions with no luck. Can you suggest how to achieve this page flow?
Regards,
Paul Hillier