]> pere.pagekite.me Git - text-free-culture-lessig.git/blob - data/xetex_param.xsl
Indexterms: 48 missing
[text-free-culture-lessig.git] / data / xetex_param.xsl
1 <?xml version='1.0'?>
2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
3 <xsl:param name="xetex.font">
4 <xsl:text>\setmainfont{Crimson Text}&#10;</xsl:text>
5 <xsl:text>\setsansfont{Crimson Text}&#10;</xsl:text>
6 <xsl:text>\setmonofont{Latin Modern Mono}&#10;</xsl:text>
7
8 <!-- Force <emphasis role='strong'> to be bold, not semibold -->
9 <xsl:text>\setmainfont[BoldFont={CrimsonText-Bold}]{Crimson Text}&#10;</xsl:text>
10 </xsl:param>
11
12 <!-- Do it the hard way: put this content in a file loaded by \maketitle -->
13 <xsl:template match="colophon">
14 <xsl:variable name="titlepage.verso">
15 <xsl:text>\begin{colophon}&#10;</xsl:text>
16 <xsl:apply-templates/>
17 <xsl:text>\end{colophon}&#10;</xsl:text>
18 </xsl:variable>
19 <xsl:call-template name="write.text.chunk">
20 <!-- The filename must end with 'input.rtex' to be parsed by dblatex -->
21 <xsl:with-param name="filename">
22 <xsl:text>titlepg.input.rtex</xsl:text>
23 </xsl:with-param>
24 <xsl:with-param name="method" select="'text'"/>
25 <xsl:with-param name="content">
26 <xsl:value-of select="$titlepage.verso"/>
27 </xsl:with-param>
28 <xsl:with-param name="encoding" select="$chunker.output.encoding"/>
29 </xsl:call-template>
30 </xsl:template>
31
32 </xsl:stylesheet>