<!-- default behaviour, but it didn't work... -->
<!-- -->
<!-- <xsl:param name="paper.type">USletter</xsl:param> -->
- <xsl:param name="page.width">8.5in</xsl:param>
- <xsl:param name="page.height">11in</xsl:param>
+ <xsl:param name="page.width">6in</xsl:param>
+ <xsl:param name="page.height">9in</xsl:param>
<xsl:param name="page.margin.inner">1.5in</xsl:param>
<xsl:param name="page.margin.outer">1.5in</xsl:param>
<!-- do not list figures -->
<xsl:param name="doc.lot.show">example</xsl:param>
+
+ <!-- The TOC links in the titles, and in blue. -->
+ <!-- ensure URLs in the text do not end up light gray too -->
+ <xsl:param name="latex.hyperparam">linktocpage,colorlinks,linkcolor=black,urlcolor=black,pdfstartview=FitH</xsl:param>
+
+ <xsl:param name="latex.begindocument">
+ <xsl:text>
+% Trick to avoid many words sticking out of the right margin of the text.
+% Note, only one latex.begindocument can be active.
+\sloppy
+
+\usepackage{titlesec}
+
+\titleformat{\chapter}[display]
+ {\raggedright\Huge}
+ {}
+ {0pt}
+ {\thechapter.\ }
+
+\titleformat{name=\chapter,numberless}[display]
+ {\raggedright\Huge}
+ {}
+ {0pt}
+ {}
+
+\begin{document}
+ </xsl:text>
+ </xsl:param>
+
<!--
Make final page blank, which is required for PDFs inteneded for
extended distribution with LuLu.
<xsl:param name="content">
<xsl:apply-templates/>
</xsl:param>
- <xsl:text>\vskip 0.5cm \hfill \textit{ </xsl:text>
+ <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:text>}</xsl:text>
+ </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>
<!-- Place title verso page behind the title page the hard way: put
</xsl:call-template>
</xsl:template>
+ <xsl:param name="local.l10n.xml" select="document('')"/>
+ <l:i18n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0">
+ <l:l10n language="nb">
+ <!-- Fix bugs in default nb locale -->
+ <l:dingbat key="startquote" text="«"/>
+ <l:dingbat key="endquote" text="»"/>
+ <l:dingbat key="nestedstartquote" text="‘"/>
+ <l:dingbat key="nestedendquote" text="’"/>
+ <l:gentext key="Copyright" text=""/>
+ </l:l10n>
+ <l:l10n language="nn">
+ <!-- Fix bugs in default nn locale -->
+ <l:dingbat key="startquote" text="«"/>
+ <l:dingbat key="endquote" text="»"/>
+ <l:dingbat key="nestedstartquote" text="‘"/>
+ <l:dingbat key="nestedendquote" text="’"/>
+ <l:gentext key="Copyright" text=""/>
+ </l:l10n>
+ </l:i18n>
+
</xsl:stylesheet>