1 <?xml version='1.0' encoding="iso-8859-1"?>
2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
4 <!-- The TOC links in the titles, and in blue. -->
5 <!-- ensure URLs in the text do not end up light gray too -->
6 <xsl:param name="latex.hyperparam">linktocpage,colorlinks,linkcolor=black,urlcolor=black,pdfstartview=FitH</xsl:param>
8 <xsl:param name="callout.linkends.hot">0</xsl:param>
10 <!-- Put the dblatex logo -->
11 <!-- xsl:param name="doc.publisher.show">1</xsl:param -->
13 <!-- List the examples and equations too, no tables and figures -->
14 <!-- xsl:param name="doc.lot.show">example,tables,figures</xsl:param -->
16 <!-- Only want chapter numbers -->
17 <xsl:param name="doc.section.depth">0</xsl:param>
19 <xsl:param name="latex.class.book">myclass</xsl:param>
20 <xsl:param name="latex.output.revhistory">0</xsl:param>
22 <xsl:param name="imagedata.default.scale">maxwidth=15.5cm,maxheight=12cm</xsl:param>
23 <xsl:param name="draft.mode">no</xsl:param>
24 <xsl:param name="draft.watermark">0</xsl:param>
25 <xsl:param name="doc.collab.show">0</xsl:param>
27 <xsl:param name="insert.xref.page.number">1</xsl:param>
29 <xsl:include href="lulu.xsl" />
30 <!-- xsl:include href="createspace.xsl" /-->
31 <!-- xsl:include href="licentia.xsl" /-->
33 <!-- xsl:include href="origsize.xsl" /-->
35 <!-- fall back to duplex A4 if not creating PDF for a specific size. -->
36 <!-- xsl:param name="paper.type">A4</xsl:param -->
37 <xsl:param name="double.sided">1</xsl:param>
38 <xsl:param name="page.margin.inner">0.8in</xsl:param>
39 <xsl:param name="page.margin.outer">0.55in</xsl:param>
40 <xsl:param name="page.margin.top">0.55in</xsl:param>
41 <xsl:param name="page.margin.bottom">0.55in</xsl:param>
42 <xsl:param name="latex.class.options">a4paper,openright,twoside</xsl:param>
44 <!-- font for XSL/FOP, see also fop-params.xconf -->
45 <!-- The original book used Adobe Caslon, and this free font is pretty similar -->
46 <xsl:param name="body.font.family">Crimson Text</xsl:param>
47 <xsl:param name="sans.font.family">Crimson Text</xsl:param>
48 <xsl:param name="title.font.family">Crimson Text</xsl:param>
49 <xsl:param name="slide.font.family">Crimson Text</xsl:param>
50 <xsl:param name="slide.title.font.family">Crimson Text</xsl:param>
51 <xsl:param name="monospace.font.family">Latin Modern Mono</xsl:param>
53 <!-- transform footnotes to endnotes -->
54 <xsl:param name="footnote.as.endnote" select="1"/>
56 <!-- configure the endnotes package -->
57 <xsl:attribute-set name="endnotes.properties"
58 use-attribute-sets="endnotes.properties.default">
60 Increase footnote/endnote size to be more than 6 pts, to avoid
61 complaint from Lulu about the font being too small to be printed
62 clearly. Needed at least for pocket size books. Probably wise to use
63 the same size as the colophon page (see myclass.cls)
65 make sure \fontsize{x}{y} use y=1.2*x, x >= 6
68 <!--xsl:attribute name="font-size">\fontsize{10}{12}</xsl:attribute-->
69 <xsl:attribute name="font-size">\footnotesize</xsl:attribute>
70 <!--xsl:attribute name="font-size">\normalsize</xsl:attribute-->
73 <!-- the endnotes are grouped by part, chapter, and preface -->
74 <xsl:param name="endnotes.heading.groups" select="'part chapter preface'"/>
75 <xsl:param name="endnotes.heading.style" select="'select:title'"/>
76 <xsl:param name="endnotes.heading.command" select="'\enoteheader*'"/>
78 <xsl:template match="preface" mode="endnotes">
79 <xsl:call-template name="endnotes.add.header"/>
82 <!-- even if grouped, never reset the endnotes counter, so clear the rule -->
83 <xsl:param name="endnotes.counter.resetby"/>
86 <xsl:param name="latex.begindocument">
88 % Trick to avoid many words sticking out of the right margin of the text.
89 % Need to add it here with the end notes, as only one
90 % latex.begindocument can be active.