summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-12-23 22:34:41 +0000
committerKarl Berry <karl@freefriends.org>2019-12-23 22:34:41 +0000
commit58cf54d56b288c227c9275421f2e6ab8d3468697 (patch)
tree39d03b8d7177fffd8874b9a777492c28b4c3c08f
parentf3c83bf74de3d90b6b29d0e2d746de62dec94fcc (diff)
symbolic footnote mark fixes, tex4ht r645
git-svn-id: svn://tug.org/texlive/trunk@53220 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/tex/generic/tex4ht/footmisc.4ht82
1 files changed, 55 insertions, 27 deletions
diff --git a/Master/texmf-dist/tex/generic/tex4ht/footmisc.4ht b/Master/texmf-dist/tex/generic/tex4ht/footmisc.4ht
index b70293ade02..5cc0deff423 100644
--- a/Master/texmf-dist/tex/generic/tex4ht/footmisc.4ht
+++ b/Master/texmf-dist/tex/generic/tex4ht/footmisc.4ht
@@ -1,30 +1,58 @@
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-% footmisc.4ht 2009-05-21-09:32 %
-% Copyright (C) 2004--2009 Eitan M. Gurari %
-% %
-% This work may be distributed and/or modified under the %
-% conditions of the LaTeX Project Public License, either %
-% version 1.3c of this license or (at your option) any %
-% later version. The latest version of this license is %
-% in %
-% http://www.latex-project.org/lppl.txt %
-% and version 1.3c or later is part of all distributions %
-% of LaTeX version 2005/12/01 or later. %
-% %
-% This work has the LPPL maintenance status "maintained".%
-% %
-% This Current Maintainer of this work %
-% is Eitan M. Gurari. %
-% %
-% If you modify this program your changing its signature %
-% with a directive of the following form will be %
-% appreciated. %
-% \message{signature} %
-% %
-% gurari@cse.ohio-state.edu %
-% http://www.cse.ohio-state.edu/~gurari %
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\immediate\write-1{version 2009-05-21-09:32}
+% footmisc.4ht (2019-12-23-13:36), generated from tex4ht-4ht.tex
+% Copyright 2019 TeX Users Group
+%
+% This work may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either
+% version 1.3c of this license or (at your option) any
+% later version. The latest version of this license is in
+% http://www.latex-project.org/lppl.txt
+% and version 1.3c or later is part of all distributions
+% of LaTeX version 2005/12/01 or later.
+%
+% This work has the LPPL maintenance status "maintained".
+%
+% The Current Maintainer of this work
+% is the TeX4ht Project <http://tug.org/tex4ht>.
+%
+% If you modify this program, changing the
+% version identification would be appreciated.
+\immediate\write-1{version 2019-12-23-13:36}
+
+
+\long\def\@footnotetext#1{\leavevmode
+ \vbox{%\IgnorePar
+ \leftskip0pt {\ht:everypar{}\parindent0pt\leavevmode}%
+ \long\def\:tempc##1{\protected@edef\@currentlabel{\the\csname c@footnote\endcsname}%
+\anc:lbl f{footnote}%
+\Configure{newlabel}{\cur:th\the\csname c@footnote\endcsname}{\protect\p@footmisc@footnote{\the\csname c@footnote\endcsname}}
+\a:footnotetext
+ \o:@makefntext:{\b:footnotetext \csname a:footnotebody\endcsname
+ {##1}\csname b:footnotebody\endcsname}\c:footnotetext
+}%
+\HLet\@makefntext\:tempc
+%
+ \reset@font\footnotesize
+ \color@begingroup
+ \@makefntext{\ignorespaces#1}%
+ \color@endgroup
+ \ht:special{t4ht@[}}\ht:special{t4ht@]}}
+
+% detect if the symbol or symbol* option were used
+% we can detect that by testing of \thefootnote macro
+
+\edef\footmisc:thefootnote{\expandafter\unexpanded\expandafter{\thefootnote}}
+\edef\footmisc:symbol{\unexpanded{\fnsymbol{footnote}}}
+\edef\footmisc:symbolstar{\unexpanded{\@fnsymbol\c@footnote}}
+
+\ifx\footmisc:thefootnote\footmisc:symbol
+ \newcommand\p@footmisc@footnote[1]{\@fnsymbol{#1}}
+\else
+ \ifx\footmisc:thefootnote\footmisc:symbolstar
+ \newcommand\p@footmisc@footnote[1]{\@fnsymbol{#1}}
+ \else
+ \newcommand\p@footmisc@footnote[1]{\p@footnote{#1}}
+ \fi
+\fi
\Hinput{footmisc}
\endinput