How to make first leve chapter starts from a new page

lisazeng
Posts: 29

How to make first leve chapter starts from a new page

Thu Jul 27, 2017 12:43 pm

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: 275

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

Thu Jul 27, 2017 3:58 pm

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

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

Fri Jul 28, 2017 7:01 am

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

Return to “DITA (Editing and Publishing DITA Content)”

Who is online

Users browsing this forum: No registered users and 2 guests