]> pere.pagekite.me Git - text-free-culture-lessig.git/blob - data/dblatex-endnotes.xsl
c0ee541c4b088ae53e9e8e209f6d9886500ea540
[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-0.2\baselineskip }
16
17 % More pretty looking note
18 \def\enoteformat{\rightskip=0pt \leftskip=21pt \parindent=-13pt
19 \leavevmode\llap{\makeenmark}\hspace*{11pt}}
20
21 % Trick to avoid many words sticking out of the right margin of the text.
22 % Need to add it here with the end notes, as only one
23 % latex.begindocument can be active.
24 \sloppy
25
26 \begin{document}
27 </xsl:text>
28
29 </xsl:param>
30 </xsl:stylesheet>