]> pere.pagekite.me Git - text-madewithcc.git/blobdiff - extra/pdf.xsl
Translated using Weblate (Norwegian Bokmål)
[text-madewithcc.git] / extra / pdf.xsl
index 7fc8cecd111e7d639c28e9b131003168607176d5..c7d5268d369b300dbbbb969644ae16c5a7512ee1 100644 (file)
@@ -25,7 +25,7 @@
 
   <xsl:param name="preface.tocdepth">1</xsl:param>
 
-  <xsl:param name="toc.section.depth">1</xsl:param>
+  <xsl:param name="toc.section.depth">0</xsl:param>
 
   <!-- do not list figures -->
   <xsl:param name="doc.lot.show">example</xsl:param>
@@ -42,6 +42,16 @@ extended distribution with LuLu.
     </xsl:text>
   </xsl:param>
 
+  <!-- Attributions should be italicized, right-aligned -->
+  <xsl:template match="attribution">
+    <xsl:param name="content">
+      <xsl:apply-templates/>
+    </xsl:param>
+    <xsl:text>\vskip 0.5cm \hfill \textit{ </xsl:text>
+    <xsl:copy-of select="$content"/>
+    <xsl:text>}</xsl:text>
+  </xsl:template>
+
   <!-- Place title verso page behind the title page the hard way: put
        colophon content in a file loaded by \maketitle -->
   <xsl:template match="colophon">