]> pere.pagekite.me Git - text-madewithcc.git/blob - extra/pdf.xsl
Translated using Weblate (Norwegian Bokmål)
[text-madewithcc.git] / extra / pdf.xsl
1 <?xml version='1.0' encoding="iso-8859-1"?>
2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
3
4 <xsl:param name="latex.class.book">myclass</xsl:param>
5 <!--
6 <xsl:param name="page.width">6in</xsl:param>
7 <xsl:param name="page.height">9in</xsl:param>
8 -->
9 <xsl:param name="page.margin.inner">0.8in</xsl:param>
10 <xsl:param name="page.margin.outer">0.55in</xsl:param>
11
12 <xsl:param name="page.margin.top">0.05in</xsl:param>
13 <xsl:param name="page.margin.bottom">0.15in</xsl:param>
14
15 <xsl:param name="double.sided">1</xsl:param>
16 <xsl:param name="latex.class.options">openright,twoside</xsl:param>
17
18 <xsl:param name="latex.encoding">utf8</xsl:param>
19
20 <xsl:param name="preface.tocdepth">1</xsl:param>
21
22 <xsl:param name="toc.section.depth">1</xsl:param>
23
24 <!-- do not list figures -->
25 <xsl:param name="doc.lot.show">example</xsl:param>
26
27 <!--
28 Make final page blank, which is required for PDFs inteneded for
29 extended distribution with LuLu.
30 -->
31
32 <xsl:param name="latex.enddocument">
33 <xsl:text>\pagebreak
34 \thispagestyle{empty}
35 ~
36 \end{document}
37 </xsl:text>
38 </xsl:param>
39
40 <!-- Place title verso page behind the title page the hard way: put
41 colophon content in a file loaded by \maketitle -->
42 <xsl:template match="colophon">
43 <xsl:variable name="titlepage.verso">
44 <xsl:text>\begin{colophon}&#10;</xsl:text>
45 <xsl:apply-templates/>
46 <xsl:text>\end{colophon}&#10;</xsl:text>
47 </xsl:variable>
48 <xsl:call-template name="write.text.chunk">
49 <!-- The filename must end with 'input.rtex' to be parsed by dblatex -->
50 <xsl:with-param name="filename">
51 <xsl:text>titlepg.input.rtex</xsl:text>
52 </xsl:with-param>
53 <xsl:with-param name="method" select="'text'"/>
54 <xsl:with-param name="content">
55 <xsl:value-of select="$titlepage.verso"/>
56 </xsl:with-param>
57 <xsl:with-param name="encoding" select="$chunker.output.encoding"/>
58 </xsl:call-template>
59 </xsl:template>
60
61 </xsl:stylesheet>