summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Dew <marcoz@osource.org>2011-12-31 14:11:47 -0700
committerMatt Dew <marcoz@osource.org>2012-01-02 08:27:27 -0700
commitc247d759c70d6c2287478703633a718f1bab7326 (patch)
tree9566d79d7406c31a683a99e51b7f859b7e57b87f
parent14c51709c440954bebc9a43c19275e5777af105b (diff)
ToC on separate page in pdfs.
-rw-r--r--xorg-fo.xsl10
1 files changed, 10 insertions, 0 deletions
diff --git a/xorg-fo.xsl b/xorg-fo.xsl
index d57f7ac..896fcb6 100644
--- a/xorg-fo.xsl
+++ b/xorg-fo.xsl
@@ -31,6 +31,16 @@
<!-- SVG will be considered an acceptable image format -->
<xsl:param name="use.svg" select="1"/>
+ <!-- ToC/LoT/Index Generation -->
+ <!-- put page breaks before and after the Table of Contents,
+ so that the ToC is on a page by itself
+ Reference: http://www.sagehill.net/docbookxsl/PrintToc.html
+ -->
+ <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>
+
<!-- Pagination and General Styles FO Parameters -->
<!--
Speed up ps & pdf creation by not creating pages with "draft" image,