On 01/21/2011 07:06 PM, Dave Gash wrote:
>  
> One unrelated question, if you don't mind, and I promise to stop
> bothering you for a while. I have read the ditac manual and looked at
> the support archives but didn't find anything about this. How can I
> force page breaks in rtf/docx output at the start of each topic (DITA
> input file)?
>  

--> The easiest thing to do is to use a bookmap rather than a map and in
this bookmap use part, chapter or appendix rather than toplevel
topicrefs. If you do this, each part, chapter or appendix will start at
a new page.




--> If you are sure that you want to unconditionally add a page break
before each topic, you need to customize the XSLT stylesheets that
generate XSL-FO as explained in this section:

"XMLmind DITA Converter Manual"
"Customizing the look of the PDF files generated by ditac"
http://www.xmlmind.com/ditac/_distrib/doc/manual/manual-6.html#customAttributeSet

(This also applies as is to RTF, .docx, .odt, etc.)

Your customization must redefine the attribute-set called "topic".

By default, it's :

---
<xsl:attribute-set name="topic">
</xsl:attribute-set>
---
(excerpts from
XSL_Utility_install_dir/addon/config/dita/xsl/fo/topic.xsl or
ditac_install_dir/xsl/fo/topic.xsl)

Instead you need to use:

---
<xsl:attribute-set name="topic">
  <xsl:attribute name="break-before">page</xsl:attribute>
</xsl:attribute-set>
---

See http://www.w3schools.com/xslfo/prop_break-before.asp



--> If you want to something smarter, then do not hesitate to write a
more extensive customization. This is quite feasible because our XSLT
2.0 stylesheets are easy to understand.
 
--
XMLmind DITA Converter Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/ditac-support

Reply via email to