aboutsummaryrefslogtreecommitdiffstats
path: root/stylesheets/lfs-xsl/pdf/lfs-pagesetup.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'stylesheets/lfs-xsl/pdf/lfs-pagesetup.xsl')
-rw-r--r--stylesheets/lfs-xsl/pdf/lfs-pagesetup.xsl18
1 files changed, 18 insertions, 0 deletions
diff --git a/stylesheets/lfs-xsl/pdf/lfs-pagesetup.xsl b/stylesheets/lfs-xsl/pdf/lfs-pagesetup.xsl
index 49337d0ef..787a0e8c1 100644
--- a/stylesheets/lfs-xsl/pdf/lfs-pagesetup.xsl
+++ b/stylesheets/lfs-xsl/pdf/lfs-pagesetup.xsl
@@ -241,4 +241,22 @@
</fo:block>
</xsl:template>
+ <!-- page.number.format
+ We want roman numerals only in book's preface, not parts prefaces
+ (if any). The original template is in {docbook-xsl}/fo/pagesetup.xsl -->
+ <xsl:template name="page.number.format">
+ <xsl:param name="element" select="local-name(.)"/>
+ <xsl:param name="master-reference" select="''"/>
+
+ <xsl:choose>
+ <xsl:when test="$element = 'toc' and self::book">i</xsl:when>
+ <xsl:when test="$element = 'set'">i</xsl:when>
+ <xsl:when test="$element = 'book'">i</xsl:when>
+ <xsl:when test="$element = 'preface' and not(ancestor::part)">i</xsl:when>
+ <xsl:when test="$element = 'dedication'">i</xsl:when>
+ <xsl:when test="$element = 'acknowledgements'">i</xsl:when>
+ <xsl:otherwise>1</xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
</xsl:stylesheet>