\SaveEndP\global\setbox\fn:box=\vtop\bgroup\ShowPar
\ifvoid\fn:box\else \csname unvbox\endcsname\fn:box\fi
-_-_-
\EndP\egroup\RecallEndP
-_-_-
\ifvoid \fn:box \else
\expandafter \ifx \csname fn:box\body:level\endcsname\relax
\csname newbox\expandafter\endcsname
\csname fn:box\body:level\endcsname
\fi
\global\expandafter\setbox\csname fn:box\body:level\endcsname=
\vbox{\csname unvbox\endcsname\fn:box}%
\fi
\gHAdvance\body:level by 1
-_-_-
\gHAdvance\body:level by -1
\expandafter \ifx \csname fn:box\body:level\endcsname\relax \else
\global\setbox\fn:box=
\vbox{\expandafter\ifvoid \csname fn:box\body:level\endcsname \else
\csname unvbox\expandafter\endcsname
\csname fn:box\body:level\endcsname\fi}%
\fi
-_-_-
\ifvmode \IgnorePar\fi\EndP
\ifvoid \fn:box\else
\HCode{<div class="footnotes">}\box\fn:box\HCode{</div>}
\IgnorePar\EndP
\fi
-_-_-
\Css{div.footnotes{border-top:solid 1px black;
border-bottom:solid 1px black;
padding-bottom:1ex;
padding-top:0.5ex;
margin-right:15\%; margin-top:2ex;
font-style:italic; font-size:85\%;}}
\Css{div.footnotes p{margin-top:0; margin-bottom:0; text-indent:0;}}
\ifx \fn:box\:UnDef \csname newbox\endcsname\fn:box \fi
\HAssign\body:level=0
-_-_-
\ifTag{<.footnote id.>}
{\expandafter\ifx\csname (<.footnote id.>)\endcsname\def
\:warning{Multiple footnote texts for mark \FNnum}%
\else \csname a:footnote-text\endcsname\fi
}
{}% -_-_-
\ifTag{<.footnote id.>}
{\expandafter\ifx\csname (<.footnote id.>)\endcsname\def
\:warning{Multiple footnote texts for mark \FNnum}%
\else \csname a:footnote-text\endcsname\fi
}
{}% -_-_-
\def\close:fn{\HPage{}\Link{}{hide-fn}\EndLink\EndHPage{}%
\gdef\close:fn{\rightline{\Link{hide-fn}{}@\EndLink}}\close:fn}
-_-_-
fn\FNnum x\minipageNum
-_-_-
\csname a:footnote-mark\endcsname
-_-_-
\csname b:footnote-mark\endcsname
-_-_-
\csname a:thank-mark\endcsname
-_-_-
\csname b:thank-mark\endcsname
-_-_-
\NewConfigure{footnote-mark}{2}
\NewConfigure{thank-mark}{2}
\Configure{footnote-mark}
{\HCode{<span class="footnote-mark">}}
{\HCode{</span>}}
\Configure{thank-mark}
{\HCode{<span class="thank-mark">}}
{\HCode{</span>}}
\Css{span.thank-mark{ vertical-align: super }}
-_-_-
\NewConfigure{footnote-text}{2}
-_-_-
\Configure{footnote-text}
{\HPage{}\HCode{<div class="footnote-text">}\par}
{\ifvmode \IgnorePar\fi \EndP
\HCode{</div>}\EndHPage{}}
-_-_-
% \Css{span.footnote-mark{ vertical-align: super }}
\Css{span.footnote-mark sup.textsuperscript,
span.footnote-mark a sup.textsuperscript{ font-size:80\%; }}
-_-_-
3.11.4 AMS
\Css{span.footnote-mark{ vertical-align: super; font-size:80\%; }}
% \Css{span.footnote-mark sup.textsuperscript,
% span.footnote-mark a sup.textsuperscript{ font-size:80\%; }}
-_-_-
% \Css{span.footnote-mark{ vertical-align: super }}
\Css{span.footnote-mark sup.textsuperscript,
span.footnote-mark a sup.textsuperscript{ font-size:80\%; }}
-_-_-
\HCode{<sup>}\Link{fn\FNnum}{fn\FNnum-bk}%
\ifx \FNmark\empty +\else \FNmark\fi\EndLink
\HCode{</sup>}%
-_-_-
<.open inline footnote box.>%
\HCode{<sup>}\Link{fn\FNnum-bk}{fn\FNnum}%
\ifx \FNmark\empty +\else \FNmark\fi
\EndLink\space\HCode{</sup>}% -_-_-
\Configure{vfootnote}
{\HPageButton[fn\FNnum]{\FNmark}}
{\BeginHPage[fn\FNnum]{ }}
{\EndHPage{}}
-_-_-
\expandafter\def\csname c:mouseover-footnote:\endcsname{%
\def\:tempb{footnote}\csname c:mouseover-?:\endcsname}
\Configure{mouseover-footnote} {tex4ht.body,FULLHTML}
-_-_-
An alternative css-based approach:
\Configure{tableofcontents}
{\IgnorePar\EndP\HCode{<div class="tableofcontents">}\IgnorePar}
{}
{\IgnorePar\EndP\HCode{</div>}\ShowPar}
{\HCode{<br />}} {}
\ConfigureToc{section}
{\HCode{<div class="sectionToc" \a:LRdir><span class="mark">}}
{ \HCode{</span>}}
{}
{\HCode{</div>}}
\ConfigureToc{subsection}
{\HCode{<div class="subsectionToc" \a:LRdir><span class="mark">}}
{ \HCode{</span>}}
{}
{\HCode{</div>}}
\ConfigureToc{subsubsection}
{\HCode{<div class="subsubsectionToc" \a:LRdir><span class="mark">}}
{ \HCode{</span>}}
{}
{\HCode{</div>}}
\ConfigureToc{likesection}
{}
{\HCode{<div class="likesectionToc" \a:LRdir>}}
{}
{\HCode{</div>}}
\ConfigureToc{likesubsection}
{}
{\HCode{<div class="likesubsectionToc" \a:LRdir>}}
{}
{\HCode{</div>}}
\ConfigureToc{likesubsubsection}
{}
{\HCode{<div class="likesubsubsectionToc" \a:LRdir>}}
{}
{\HCode{</div>}}
\Css{div.sectionToc { margin-left: 1em; text-indent: -1em; }}
\Css{div.sectionToc span.mark { text-align:right; width: 1em;
padding-right:0.25em; }}
\Css{div.subsectionToc { margin-left:2.5em; text-indent: -2.5em; }}
\Css{div.subsectionToc span.mark { text-align:right; width: 2.5em;
padding-right:0.25em; }}
\Css{div.likesubsectionToc { margin-left: 2.5em; text-indent: -1.5em; }}
\Css{div.subsubsectionToc { margin-left: 4.5em; text-indent: -4.5em; }}
\Css{div.subsubsectionToc span.mark { text-align:right; width: 4.5em;
padding-right:0.25em; }}
\Css{div.likesubsubsectionToc { margin-left: 4.5em; text-indent: -2em; }}
\Configure{textsuperscript}
{\HCode{<sup class="textsuperscript">}\bgroup \small}
{\egroup \HCode{</sup>}}
-_-_-