]> pere.pagekite.me Git - text-free-culture-lessig.git/blob - data/dblatex-endnotes.xsl
Increase endnote font size to make lulu happy. Should be reduced a bit.
[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
11 <xsl:param name="latex.begindocument">
12 <xsl:text>
13 \usepackage{endnotes}
14 \let\footnote=\endnote
15 \def\enoteheading{\mbox{}\par\vskip-\baselineskip }
16
17 % Increase footnote/endnote size to be more than 6 pts, to avoid
18 % complaint from Lulu about the font being too small to be printed
19 % clearly. Needed at least for pocket size books.
20 % Probably wise to use the same size as the colophon page (see myclass.cls)
21
22 % Use one of these (adjust numbers, x, x*1.2), 6>= 6
23 \def\enotesize{\normalsize}
24 %\def\enotesize{\fontsize{10}{12}\selectfont}
25
26 % Trick to avoid many words sticking out of the right margin of the text.
27 % Need to add it here with the end notes, as only one
28 % latex.begindocument can be active.
29 \sloppy
30
31 % Hack to get correct chapter numbering with dblatex, as chapter
32 % labels are ignored.
33 \setcounter{chapter}{-1}
34
35 \begin{document}
36 </xsl:text>
37
38 </xsl:param>
39 </xsl:stylesheet>