%xsldoc.ent; ]> $Id: footnote.mod.xsl,v 1.10 2004/01/02 06:45:25 j-devenish Exp $ &ramon; &james; 20002001200220032004 Ramon Casellas &rev_2003_05; Footnotes <filename>footnote.mod.xsl</filename> Process footnote elements Format a footnote. &no_var; Applies templates within a &LaTeX; footnote command. Note that this may not work within some tables. Also, indexterms may fail. &essential_preamble; &test_book; &test_links; &test_tables; \begingroup\catcode`\#=12\footnote{ }\endgroup\docbooktolatexmakefootnoteref{ } Essential preamble for footnote.mod.xsl support Defines docbooktolatexusefootnoteref and docbooktolatexmakefootnoteref. These functions help to integrate footnote/@id cross-references with &LaTeX;. &preamble; s % Blame j-devenish (at) users.sourceforge.net % In any other LaTeX context, this would probably go into a style file. \newcommand{\docbooktolatexusefootnoteref}[1]{\@ifundefined{@fn@label@#1}% {\hbox{\@textsuperscript{\normalfont ?}}% \@latex@warning{Footnote label `#1' was not defined}}% {\@nameuse{@fn@label@#1}}} \newcommand{\docbooktolatexmakefootnoteref}[1]{% \protected@write\@auxout{}% {\global\string\@namedef{@fn@label@#1}{\@makefnmark}}% \@namedef{@fn@label@#1}{\hbox{\@textsuperscript{\normalfont ?}}}% } ]]> Process ulink elements within footnotes Format a ulink. &no_var; Footnotes are tricky and require special handling for a number of link-type commands. This template exists in this file so that all the footnote-generating templates are close to each other. However, it is actually a part of the ulink template in xref.mod.xsl \begingroup\catcode`\#=12\footnote{ }\endgroup\docbooktolatexmakefootnoteref{ } Process footnote elements Make a link to a footnote. &no_var; &essential_preamble; \docbooktolatexusefootnoteref{ }