]> pere.pagekite.me Git - text-free-culture-lessig.git/blob - data/dblatex-endnotes.xsl
Let pattern drawing fill the width.
[text-free-culture-lessig.git] / data / dblatex-endnotes.xsl
1 <?xml version='1.0'?>
2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
3
4 <!--
5 Trick to get endnote support. Should have a way to insert LaTeX code
6 outside xetex font values. As it is missing, reuse the
7 latex.begindocument value (aka \begin{document} to get a code fragment
8 in front of it.
9 -->
10 <xsl:param name="footnote.as.endnote" select="1"/>
11
12 <xsl:attribute-set name="endnotes.properties"
13 use-attribute-sets="endnotes.properties.default">
14 <!--
15 Increase footnote/endnote size to be more than 6 pts, to avoid
16 complaint from Lulu about the font being too small to be printed
17 clearly. Needed at least for pocket size books. Probably wise to use
18 the same size as the colophon page (see myclass.cls)
19
20 for \fontsize{x}{y}, use y=1.2*x, x >= 6
21 -->
22
23 <!--xsl:attribute name="font-size">\fontsize{10}{12}</xsl:attribute-->
24 <xsl:attribute name="font-size">\footnotesize</xsl:attribute>
25 <!--xsl:attribute name="font-size">\normalsize</xsl:attribute-->
26 </xsl:attribute-set>
27
28 <xsl:param name="latex.begindocument">
29 <xsl:text>
30 % Trick to avoid many words sticking out of the right margin of the text.
31 % Need to add it here with the end notes, as only one
32 % latex.begindocument can be active.
33 \sloppy
34
35 \begin{document}
36 </xsl:text>
37 </xsl:param>
38
39 </xsl:stylesheet>