2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
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
11 <xsl:param name="latex.begindocument">
14 \let\footnote=\endnote
15 \def\enoteheading{\mbox{}\par\vskip-0.2\baselineskip }
17 % More pretty looking note
18 \def\enoteformat{\rightskip=0pt \leftskip=21pt \parindent=-13pt
19 \leavevmode\llap{\makeenmark}\hspace*{11pt}}
21 % Increase footnote/endnote size to be more than 6 pts, to avoid
22 % complaint from Lulu about the font being too small to be printed
23 % clearly. Needed at least for pocket size books.
24 % Probably wise to use the same size as the colophon page (see myclass.cls)
26 % Use one of these (adjust numbers, x, x*1.2), 6>= 6
27 \def\enotesize{\normalsize}
28 %\def\enotesize{\fontsize{10}{12}\selectfont}
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.
35 % Hack to get correct chapter numbering with dblatex, as chapter
36 % labels are ignored. No longer needed with dblatex 0.3.7.
37 %\setcounter{chapter}{-1}