]> pere.pagekite.me Git - text-madewithcc.git/blobdiff - extra/pdf.xsl
Translated using Weblate (Norwegian Bokmål)
[text-madewithcc.git] / extra / pdf.xsl
index 1192e51b9d183449922bc01a70825751db19f00f..281bc02b13978026fb992bea50eead5188a5e745 100644 (file)
 
   <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>
 
@@ -33,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>