Page 1 of 1

How to make first leve chapter starts from a new page

Posted: Thu Jul 27, 2017 12:43 pm
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

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

Posted: Thu Jul 27, 2017 3:58 pm
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

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

Posted: Fri Jul 28, 2017 7:01 am
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