How to make first leve chapter starts from a new page

Post here questions and problems related to editing and publishing DITA content.
lisazeng
Posts: 29
Joined: Tue Jun 27, 2017 2:10 pm

How to make first leve chapter starts from a new page

Post by lisazeng »

Hi experts,

If I want to have each level 1 chapter starts from a new page, what code should I change in my plugins?

For example. Chapter 2 and chapter 3 starts in a new page.

Chapter 2

chapter 2.1

chapter 2.2

Chapter 3

Thanks!

Lisa
Costin
Posts: 833
Joined: Mon Dec 05, 2011 6:04 pm

Re: How to make first leve chapter starts from a new page

Post by Costin »

Hi Lisa,

Starting each top level chapter on its own page is even the current behavior for the predefined DITA Map > PDF transformation in oXygen.
You should try publishing one of the bookmaps (for example "taskbook.ditamap", available in the "it-book" DITA sample) from the sample project in oXygen to check this.

If you obtain a different behavior when publishing your own bookmap, to reproduce it at our side and see what goes wrong, could you please send a minimal sample DITA Map for which you still obtain different results in the output? You could send the sample map to support AT oxygenxml DOT com

Last but not least, you should take a look over this older post HERE , as Bogdan suggested the solution for a similar request. This could help you as well.

Regards,
Costin
Costin Sandoi
oXygen XML Editor and Author Support
lisazeng
Posts: 29
Joined: Tue Jun 27, 2017 2:10 pm

Re: How to make first leve chapter starts from a new page

Post by lisazeng »

Hi Costin,

Thanks for suggestion of "older post HERE" .
I study it and make my topic/title starts with in a new page.
<xsl:attribute-set name="topic.title" >
<xsl:attribute name="break-before">page</xsl:attribute>
</xsl:attribute-set>
Thanks very much!!

br
Lisa
Post Reply