diff options
author | Matt Dew <marcoz@osource.org> | 2011-12-31 14:37:07 -0700 |
---|---|---|
committer | Gaetan Nadon <memsize@videotron.ca> | 2012-03-28 08:58:51 -0400 |
commit | 0929d29671be0a4a6d321826e6f89dcace413e00 (patch) | |
tree | c2ac2ed6dbfa7f307ce62faca83838f55976327f | |
parent | c247d759c70d6c2287478703633a718f1bab7326 (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.xsl | 7 |
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> |