<.0,32,4 plain,latex.>
<.32,4 plain,latex.>
<.32 plain,latex.>
<.32 picmath th4,latex.>
<.0,32,4 latex.>
<.32,4 latex.>
<.32 latex.>
<.latex footnotes.>
% \:CheckOption{javahelp} \if:Option
% \input javahelp.4ht
% \else
% \Log:Note{for a JavaHelp output format,
% use the command line option ‘javahelp’}
% \fi -_-_-
\Configure{obeylines}
{} {} {\hbox{\HCode{<br\xml:empty>}}}
-_-_-
Typically, \obeylines appears in a separate line before the content. The
following option is introduced to avoid an extra leading empty line.
\Configure{obeylines}
{\def\Line:Break{\def\Line:Break{\hbox{\HCode{<br\xml:empty>}}}}} {}
{\Line:Break}
-_-_-
If we redefine the following we get LaTeX in hypertext, and protection within titles.
Without this definition we get LATEX.
\def\:temp{TeX}
\HLet\TeX=\:temp
-_-_-
\Configure{centercr}{\ht:special{t4ht=<br\xml:empty>}}
{\everypar{\everypar{\HCode{<p>}}}}
-_-_-
\def\start:env#1{\IgnorePar\HCode{<\tbl:XV{#1}><tr><td\Hnewline>}}
\def\tbl:XV#1{table \Hnewline border="0" width="100\%"}
\def\end:env{\IgnorePar \end:TTT\ShowPar}
-_-_-
cellpadding=”0” cellspacing=”15”
\Configure{eqnarray}{\HCode{<table\Hnewline>}}{\HCode{</table>}}
{\HCode{<tr valign="middle">}}{\HCode{</tr>}}
{\HCode{\ifnum \HCol=4 <td\Hnewline width="10"></td>\fi
<td\Hnewline <.no wrap.> align="\ifcase\HCol \or right\or center\or
left\else right\fi" \Hnewline>}}{\HCode{</td>}}
\ConfigureEnv{eqnarray}{\HCode{<div align="center">}}
{\HCode{</div>}}{}{}
\ConfigureEnv{eqnarray*}{\HCode{<div align="center">}}
{\HCode{</div>}}{}{} -_-_-
\:CheckOption{pic-tabbing’} \if:Option
\edef\:temp{\LikeRef{<.tabbing tag.>.}}%
\def\:tempa{.}\ifx \:temp\:tempa
\ConfigureEnv{tabbing}{\Picture*{}}{\EndPicture}{}{}
\fi
\fi -_-_-
\Configure{tabbing}[1.5]{\IgnorePar\leavevmode \ht:special{t4ht=<table
\Hnewline\:zbsp{tabbing}><tr \Hnewline valign="bottom">}}
{\ht:special{t4ht=</tr></table>}}
{\gt:tab \ht:special{t4ht=<td \:tempa\Hnewline>}}
{\ht:special{t4ht=</td>}}
-_-_-
\Configure{[]}
{\PicDisplay$$\everymath{}\everydisplay{}}
{$$\EndPicDisplay}
\Configure{()}{\protect\PicMath$}{$\protect\EndPicMath}
-_-_-
\ifx\bf\:UnDef
\def\bf{\normalfont\bfseries}
\fi
\ConfigureList{trivlist}%
{\HCode{<dl>}} {\HCode{</dl>}\ShowPar}
{\HCode{<dt>}\bgroup \bf}{\egroup\HCode{<dd\Hnewline>}}
\ConfigureList{list}%
{\HCode{<dl>}} {\HCode{</dl>}\ShowPar}
{\HCode{<dt>}\bgroup \bf}{\egroup\HCode{<dd\Hnewline>}}
-_-_-
\EndP\HCode{<ol
class="enumerate\expandafter\the\csname @enumdepth\endcsname"
>}<.save end:itm.>\global\let\end:itm=\empty -_-_-
\end:itm \gdef\end:itm{\EndP\Tg</li>}\DeleteMark
-_-_-
\HCode{<li class="enumerate">}\AnchorLabel
-_-_-
\ConfigureEnv{itemize}
{\ifvmode \IgnorePar\fi \EndP}{<.try env inline par.>}
{}{}
\ConfigureList{itemize}%
{\EndP\HCode{<ul class="itemize\expandafter\the
\csname @itemdepth\endcsname">}%
<.save end:itm.>\global\let\end:itm=\empty}
{<.recall end:itm.>\ifvmode \IgnorePar\fi
\EndP\HCode{</li></ul>}\ShowPar}
{\end:itm \global\def\end:itm{\EndP\Tg</li>}\DeleteMark}
{\HCode{<li class="itemize">}} -_-_-
\PopMacro\end:itm \global\let\end:itm \end:itm
-_-_-
\NewConfigure{enumerate}[1]{\c:enu #1<.par del.>}
\def\c:enu#1#2#3#4#5<.par del.>{%
\def\OLStyle{\ifcase \@enumdepth \or
type="#1"\or type="#2"\or type="#3"\or type="#4"\else\fi #5}} -_-_-
\Configure{enumerate}{1aiA}
-_-_-
\Configure{tableofcontents}
{\IgnorePar\EndP\HCode{<div class="tableofcontents">}\IgnorePar}
{}
{\IgnorePar\EndP\HCode{</div>}\ShowPar}
{\HCode{<br\xml:empty>}} {}
-_-_-
\Configure{newtheorem}
{\HCode{<div class="newtheorem"><b class="head">}}
{\HCode{</b>}}
{\HCode{</div>}}
-_-_-
\Configure{verbatim}{\:nbsp}{\a:sp}
\Configure{verb}{\HCode{<code>}}{\HCode{</code>}}
-_-_-
\def\env:verb#1{\ifvmode \IgnorePar \fi\EndP
\HCode{<\tbl:XV{#1}><tr><td\Hnewline
>}\HCode{<pre>}\EndNoFonts}
-_-_-
\Configure{marginpar}
{\HCode{<table \Hnewline align="right"><tr><td \Hnewline><u><small>}}
{\HCode{</small></u></td></tr></table>}}
-_-_-
\Configure{equation}
{\:xhtml{\IgnorePar\EndP}%
\HCode{<\tbl:XV{equation}><tr><td><div align="center">}\IgnorePar
\Configure{$$}{\PicDisplay}{\EndPicDisplay}
{\everymath{}\everydisplay{}}
}
{\IgnorePar\HCode{</div></td><td width="5\%">}}
{\end:TTT\IgnorePar\par}
-_-_-
\ConfigureEnv{picture}
{\ifvmode \IgnorePar\leavevmode\HCode{<p align="center">}\fi}
{}{}{}
-_-_-
\Configure{float}{}
{\ifvmode \IgnorePar\fi \EndP
\HCode{<hr\xml:empty><div align="center"\Hnewline><table><tr><td\Hnewline>}}
{\ifvmode \IgnorePar\fi \EndP
\HCode{</td></tr></table></div><hr\xml:empty>}\csname par\endcsname}
-_-_-
\Configure{newline}{\HCode{<br\xml:empty>}}
-_-_-