]> pere.pagekite.me Git - text-madewithcc.git/blobdiff - extra/pdf.xsl
Translated using Weblate (Norwegian Bokmål)
[text-madewithcc.git] / extra / pdf.xsl
index 3fe57f35fa79a70fc2733929321d0d6265d60aa8..281bc02b13978026fb992bea50eead5188a5e745 100644 (file)
   <xsl:param name="double.sided">1</xsl:param>
   <xsl:param name="latex.class.options">openright,twoside</xsl:param>
 
+  <xsl:param name="latex.encoding">utf8</xsl:param>
+
+  <xsl:param name="preface.tocdepth">1</xsl:param>
+
+  <xsl:param name="toc.section.depth">1</xsl:param>
+
+  <!-- do not list figures -->
+  <xsl:param name="doc.lot.show">example</xsl:param>
+
 <!--
 Make final page blank, which is required for PDFs inteneded for
 extended distribution with LuLu.
@@ -28,4 +37,25 @@ extended distribution with LuLu.
     </xsl:text>
   </xsl:param>
 
+  <!-- Place title verso page behind the title page the hard way: put
+       colophon content in a file loaded by \maketitle -->
+  <xsl:template match="colophon">
+    <xsl:variable name="titlepage.verso">
+      <xsl:text>\begin{colophon}&#10;</xsl:text>
+      <xsl:apply-templates/>
+      <xsl:text>\end{colophon}&#10;</xsl:text>
+    </xsl:variable>
+    <xsl:call-template name="write.text.chunk">
+      <!-- The filename must end with 'input.rtex' to be parsed by dblatex -->
+      <xsl:with-param name="filename">
+       <xsl:text>titlepg.input.rtex</xsl:text>
+      </xsl:with-param>
+      <xsl:with-param name="method" select="'text'"/>
+      <xsl:with-param name="content">
+       <xsl:value-of select="$titlepage.verso"/>
+      </xsl:with-param>
+      <xsl:with-param name="encoding" select="$chunker.output.encoding"/>
+    </xsl:call-template>
+  </xsl:template>
+
 </xsl:stylesheet>