From 0a6fea6796e0da0d5c8690c851f2723e4b385ba7 Mon Sep 17 00:00:00 2001 From: Alexander Bokovoy Date: Tue, 27 Nov 2007 15:47:55 +0000 Subject: Embed db2latex as interim solution before migration to dblatex (This used to be commit 166c61077bc5c6ca238865f71687369ad7c35a07) --- docs/xslt/db2latex-xsl/xsl/footnote.mod.xsl | 174 ++++++++++++++++++++++++++++ 1 file changed, 174 insertions(+) create mode 100644 docs/xslt/db2latex-xsl/xsl/footnote.mod.xsl (limited to 'docs/xslt/db2latex-xsl/xsl/footnote.mod.xsl') diff --git a/docs/xslt/db2latex-xsl/xsl/footnote.mod.xsl b/docs/xslt/db2latex-xsl/xsl/footnote.mod.xsl new file mode 100644 index 0000000000..ed3d927ec8 --- /dev/null +++ b/docs/xslt/db2latex-xsl/xsl/footnote.mod.xsl @@ -0,0 +1,174 @@ + + %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{ + + } + + + -- cgit