summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Dew <marcoz@osource.org>2011-12-31 14:37:07 -0700
committerGaetan Nadon <memsize@videotron.ca>2012-03-28 08:58:51 -0400
commit0929d29671be0a4a6d321826e6f89dcace413e00 (patch)
treec2ac2ed6dbfa7f307ce62faca83838f55976327f
parentc247d759c70d6c2287478703633a718f1bab7326 (diff)
ToC on separate page in pdfs.
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. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
-rw-r--r--xorg-fo.xsl7
1 files changed, 7 insertions, 0 deletions
diff --git a/xorg-fo.xsl b/xorg-fo.xsl
index 896fcb6..4680db3 100644
--- a/xorg-fo.xsl
+++ b/xorg-fo.xsl
@@ -94,4 +94,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>