+ <!-- Attributions should be italicized, right-aligned -->
+ <xsl:template match="attribution">
+ <xsl:param name="content">
+ <xsl:apply-templates/>
+ </xsl:param>
+ <xsl:text>\begin{flushright}
+ \textit{ </xsl:text>
+ <xsl:copy-of select="$content"/>
+ <xsl:text>}
+ \end{flushright}</xsl:text>
+ </xsl:template>
+
+ <!-- An attribution's citetitle should be rendered after a line
+ break -->
+ <xsl:template match="citetitle">
+ <xsl:param name="content">
+ <xsl:apply-templates/>
+ </xsl:param>
+ <xsl:text>\\ \quad \hfill </xsl:text>
+ <xsl:copy-of select="$content"/>
+ </xsl:template>
+
+ <!-- Bibliography and acknowledgements are formatted as numberless
+ chapters — And the easiest way to achieve it was abusing the
+ "Appendix" definition. -->
+ <xsl:template match="appendix">
+ <xsl:param name="content">
+ <xsl:apply-templates/>
+ </xsl:param>
+ <xsl:param name="title">
+ <xsl:apply-templates/>
+ </xsl:param>
+ <xsl:text>\chapter*{</xsl:text>
+ <xsl:copy-of select="title"/>
+ <xsl:text>}</xsl:text>
+ <xsl:text>\addcontentsline{toc}{chapter}{</xsl:text>
+ <xsl:copy-of select="title"/>
+ <xsl:text>}</xsl:text>
+ <xsl:copy-of select="$content"/>
+ </xsl:template>
+