| 1 |
% manyfoot-hooks.4ht (2024-12-06-14:38), generated from tex4ht-4ht.tex |
| 2 |
% Copyright 2024 TeX Users Group |
| 3 |
% |
| 4 |
% This work may be distributed and/or modified under the |
| 5 |
% conditions of the LaTeX Project Public License, either |
| 6 |
% version 1.3c of this license or (at your option) any |
| 7 |
% later version. The latest version of this license is in |
| 8 |
% http://www.latex-project.org/lppl.txt |
| 9 |
% and version 1.3c or later is part of all distributions |
| 10 |
% of LaTeX version 2005/12/01 or later. |
| 11 |
% |
| 12 |
% This work has the LPPL maintenance status "maintained". |
| 13 |
% |
| 14 |
% The Current Maintainer of this work |
| 15 |
% is the TeX4ht Project <http://tug.org/tex4ht>. |
| 16 |
% |
| 17 |
% If you modify this program, changing the |
| 18 |
% version identification would be appreciated. |
| 19 |
\immediate\write-1{version 2024-12-06-14:38} |
| 20 |
|
| 21 |
|
| 22 |
\:AtEndOfPackage{% |
| 23 |
\let\o:MFL@declare:\MFL@declare |
| 24 |
|
| 25 |
\def\manyfoot:declarefn#1{% |
| 26 |
\expandafter\renewcommand\csname footnote#1\endcsname[1]{% |
| 27 |
% save original footnote counters |
| 28 |
\let\:origthefootnote\thefootnote% |
| 29 |
\let\:origmpfn\@mpfn% |
| 30 |
\let\:origminipageNum\minipageNum% |
| 31 |
% \minipageNum is used in footnote links. we add the current suffix to produce unique links |
| 32 |
% if different footnote types use the same number |
| 33 |
\edef\minipageNum{\minipageNum #1}% |
| 34 |
\renewcommand\thefootnote{\csname thefootnote#1\endcsname}% |
| 35 |
% declare which counter should be used |
| 36 |
\def\@mpfn{footnote#1}% |
| 37 |
\footnote{##1}% |
| 38 |
\let\thefootnote\:origthefootnote% |
| 39 |
\let\@mpfn\:origmpfn% |
| 40 |
\let\minipageNum\:origminipageNum% |
| 41 |
}% |
| 42 |
} |
| 43 |
|
| 44 |
\def\MFL@declare#1#2[#3]{% |
| 45 |
\o:MFL@declare:{#1}{#2}[#3]% |
| 46 |
\manyfoot:declarefn{#2}% |
| 47 |
}% |
| 48 |
|
| 49 |
|
| 50 |
} |
| 51 |
|
| 52 |
\endinput |
| 53 |
|