[PATCH xorg-sgml-doctools] ToC on separate page in pdfs.
Matt Dew
marcoz at osource.org
Sat Dec 31 13:37:07 PST 2011
In the PDFs and postscript files docs, the Table of Contents should be on its own page if the
doctype='article'. This matches the behavior with doctype='book' documents.
---
xorg-fo.xsl | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/xorg-fo.xsl b/xorg-fo.xsl
index d57f7ac..4ce8acd 100644
--- a/xorg-fo.xsl
+++ b/xorg-fo.xsl
@@ -84,4 +84,11 @@
<xsl:param name="body.font.family">DejaVu Serif</xsl:param>
<xsl:param name="symbol.font.family">serif,Symbol,AR PL UMing CN,AR PL ShanHeiSun Uni,GNU Unifont</xsl:param>
+ <!-- put page breaks before and after the Table of Contents,
+ so that the ToC is on a page by itself -->
+ <xsl:attribute-set name="toc.margin.properties">
+ <xsl:attribute name="break-before">page</xsl:attribute>
+ <xsl:attribute name="break-after">page</xsl:attribute>
+ </xsl:attribute-set>
+
</xsl:stylesheet>
--
1.7.1
More information about the xorg-devel
mailing list