diff options
author | Xi Ruoyao <xry111@xry111.site> | 2023-12-05 13:12:55 +0800 |
---|---|---|
committer | Xi Ruoyao <xry111@xry111.site> | 2023-12-05 13:12:55 +0800 |
commit | 73d91ac621a4e59f71ff6664c68c935317f9ce42 (patch) | |
tree | 4f9b341370b83d97379a1343a69d13d48cb65740 /stylesheets | |
parent | 6b6a1b958af3a0e59559e44ad700f761d8a49a09 (diff) | |
parent | dc8572f2413a4d25444bb1237ea2a01dfba60429 (diff) |
Merge remote-tracking branch 'origin/trunk' into xry111/arm64
Diffstat (limited to 'stylesheets')
-rw-r--r-- | stylesheets/lfs-xsl/chunk-slave.xsl | 3 | ||||
-rw-r--r-- | stylesheets/lfs-xsl/pdf/lfs-pagesetup.xsl | 18 |
2 files changed, 18 insertions, 3 deletions
diff --git a/stylesheets/lfs-xsl/chunk-slave.xsl b/stylesheets/lfs-xsl/chunk-slave.xsl index dab359d1d..1482ae351 100644 --- a/stylesheets/lfs-xsl/chunk-slave.xsl +++ b/stylesheets/lfs-xsl/chunk-slave.xsl @@ -10,9 +10,6 @@ <!-- Upstream XHTML presentation templates --> <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"/> - <!-- Use ISO-8859-1 for output instead of default UTF-8 --> - <xsl:param name="chunker.output.encoding" select="'ISO-8859-1'"/> - <!-- Including our customized elements templates --> <xsl:include href="common.xsl"/> <xsl:include href="xhtml/lfs-admon.xsl"/> 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> |