%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% docbook-mml.4ht 2007-01-03-22:30 %
% Copyright (C) 2000--2007 Eitan M. Gurari %
% %
% This work may be distributed and/or modified under the %
% conditions of the LaTeX Project Public License, either %
% version 1.3 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.3 or later is part of all distributions %
% of LaTeX version 2003/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 2007-01-03-22:30}
\exit:ifnot{amsart,%
amsbook,%
amsmath,%
amsproc,%
array,%
article,%
book,%
latex,%
plain,%
report,%
scrbook,%
tex4ht}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{tex4ht}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\LinkCommand\mtxt:link{mtext,xreflabel,id, class="label" ,,\empty}
\LinkCommand\msp:link{mstyle,xreflabel,id, class="label" ,,\empty}
\Odef\M:Link[#1]#2#3{%
\global\let\M:EndLink=\empty
\if ]#3]\else \Anchor{}{#3}\EndAnchor
\gdef\M:EndLink{\HCode{}}\fi
\if ]#1#2]\else
\EndLink\DBLink[#1]{#2}{}\global\let\M:EndLink=\EndDBLink\fi
}
\let\do:M:Link=\M:Link
\def\M:Link{\Protect\p:M:Link}
\def\p:M:Link{\futurelet\:next\choose:M:Link}
\def\choose:M:Link{\ifx -\:next \expandafter\minus:M:Link
\else\expandafter\do:M:Link\fi}
\def\minus:M:Link#1{\do:M:Link}
\Configure{$$}
{\Configure{@math}{display="block"}\DviMath}
{\EndDviMath{\csname HCondtrue\endcsname\noindent}}
{}
\Configure{@math}{display="block"} \let\math:mode=\a:@math
\Configure{DviMath}
{\a:DviMathML \mathmltrue \mml:htfsym \IgnoreRule
\HCode{} \EndIgnoreRule\ext:htfsym
\mathmlfalse \b:DviMathML \sv:ignore
}
\Configure{DviMathML}
{\HCode{<\ifx \math:mode\a:@math \else inline\fi
equation \Hnewline \expandafter\:rend \a:@math==//>}}
{\HCode{\ifx \math:mode\a:@math \else inline\fi equation>}}
\def\:rend#1=#2=#3//{\if !#1!\else role=#2\fi}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\endinput\empty\empty\empty\empty\empty\empty
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{latex}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\refLink#1#2#3\EndLink{%
\ifvmode
\ifmathml\else
\HCode{}
\fi
\Link{#1}{#2}\expandafter\ifx \csname RefArg\endcsname\relax\else \Tg\fi\EndLink
\ifmathml\else #3\HCode{}\par\fi
\else
\Link{#1}{#2}\expandafter\ifx \csname RefArg\endcsname\relax\else \Tg\fi\EndLink
\fi
}
\Configure{newline}
{\ifmtext \HCode{}%
\else \HCode{}\fi}
\Configure{equation}
{\IgnorePar\EndP\HCode{}}
{\HCode{}}
{\IgnorePar\HCode{}\ShowPar\par}
\Configure{halignTB}
{\ifmathml \HCode{<\:MT table }\fi \halignTBL}
{\ifmathml \HCode{>}\fi}
\Configure{halignTD} {}{}
{<}{\ifmathml \HCode{ \a:mathml columnalign="left"}\else
\HCode{ align="left" }\fi}
{-}{\ifmathml \HCode{ \a:mathml columnalign="center"}\else
\HCode{ align="center" }\fi}
{>}{\ifmathml \HCode{ \a:mathml columnalign="right"}\else
\HCode{ align="right" }\fi}
{^}{\ifmathml \HCode{ \a:mathml rowalign="top"}\else
\HCode{ valign="top" }\fi}
{=}{\ifmathml \HCode{ \a:mathml rowalign="baseline"}\else
\HCode{ valign="baseline" }\fi}
{|}{\ifmathml \HCode{ \a:mathml rowalign="center"}\else
\HCode{ valign="middle" }\fi}
{_}{\ifmathml \HCode{ \a:mathml rowalign="bottom"}\else
\HCode{ valign="bottom" }\fi}
{p}{\ifmathml \HCode{ \a:mathml columnalign="left"}\else
\HCode{ align="left"}\fi}
{}
\Configure{overline}
{\bgroup\ifmathml \HCode{<\a:mathml mover accent="false"\Hnewline
\mml:class="mml-overline"><\a:mathml mrow>}%
\else
\HCode{}\fi}
{\ifmathml \HCode{\a:mathml mrow><\a:mathml mo\Hnewline
accent="true">&\#x00AF;\a:mathml mo>%
\a:mathml mover>}%
\else \HCode{}\fi\egroup}
\Configure{underline}
{\bgroup
\ifmathml \HCode{<\a:mathml munder \a:mathml accentunder="false"\Hnewline
\mml:class="mml-underline"><\a:mathml mrow>}%
%
\else \expandafter\everymath
\expandafter{\expandafter\everymath
\expandafter{\the\everymath}}%
\let\o::@underline:\o:@@underline:
\def\o:@@underline:{\let\o:@@underline:\o::@underline:}%
\HCode{}\fi}
{\ifmathml \HCode{\a:mathml mrow><\a:mathml mo\Hnewline
accent="true">&\#x0332;\a:mathml mo>\a:mathml munder>}%
\else \HCode{}\fi \egroup}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\endinput\empty\empty\empty\empty\empty\empty
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{book}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\Configure{VERSION}
{\HCode{\Hnewline}}
\Configure{DOCTYPE}
{\HCode{\Hnewline
\Hnewline
\Hnewline
\Hnewline
\Hnewline
\Hnewline
\Hnewline
\Hnewline
\Hnewline
\Hnewline
%
%
\Hnewline \%docbook.dtd; \Hnewline
%
\Hnewline \%mathml.dtd;\Hnewline
%
] >\Hnewline }}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\endinput\empty\empty\empty\empty\empty\empty
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{report}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\Configure{VERSION}
{\HCode{\Hnewline}}
\Configure{DOCTYPE}
{\HCode{\Hnewline
\Hnewline
\Hnewline
\Hnewline
\Hnewline
\Hnewline
\Hnewline
\Hnewline
\Hnewline
\Hnewline
%
%
\Hnewline \%docbook.dtd; \Hnewline
%
\Hnewline \%mathml.dtd;\Hnewline
%
] >\Hnewline }}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\endinput\empty\empty\empty\empty\empty\empty
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{article}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\Configure{VERSION}
{\HCode{\Hnewline}}
\Configure{DOCTYPE}
{\HCode{\Hnewline
\Hnewline
\Hnewline
\Hnewline
\Hnewline
\Hnewline
\Hnewline
\Hnewline
\Hnewline
\Hnewline
%
%
\Hnewline \%docbook.dtd; \Hnewline
%
\Hnewline \%mathml.dtd;\Hnewline
%
] >\Hnewline }}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\endinput\empty\empty\empty\empty\empty\empty
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{amsart}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\:CheckOption{css} \if:Option
\:CheckOption{dtd} \if:Option
\Configure{VERSION}
{\HCode{\Hnewline}}
\Configure{DOCTYPE}
{\HCode{ }}
\Configure{XML-STYLESHEET}
{\HCode{
\Hnewline}}
\else
\Configure{VERSION}
{\HCode{\Hnewline}}
\Configure{DOCTYPE}
{\HCode{
}}
\Configure{XML-STYLESHEET}
{\HCode{
\Hnewline}}
\fi
\else
\Configure{VERSION}
{\HCode{\Hnewline}}
\Configure{DOCTYPE}
{\HCode{\Hnewline
\Hnewline
\Hnewline
\Hnewline
\Hnewline
\Hnewline
\Hnewline
\Hnewline
\Hnewline
\Hnewline
%
%
\Hnewline \%docbook.dtd; \Hnewline
%
\Hnewline \%mathml.dtd;\Hnewline
%
] >\Hnewline }}
\fi
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\endinput\empty\empty\empty\empty\empty\empty
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{amsbook}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\:CheckOption{css} \if:Option
\:CheckOption{dtd} \if:Option
\Configure{VERSION}
{\HCode{\Hnewline}}
\Configure{DOCTYPE}
{\HCode{ }}
\Configure{XML-STYLESHEET}
{\HCode{
\Hnewline}}
\else
\Configure{VERSION}
{\HCode{\Hnewline}}
\Configure{DOCTYPE}
{\HCode{
}}
\Configure{XML-STYLESHEET}
{\HCode{
\Hnewline}}
\fi
\else
\Configure{VERSION}
{\HCode{\Hnewline}}
\Configure{DOCTYPE}
{\HCode{\Hnewline
\Hnewline
\Hnewline
\Hnewline
\Hnewline
\Hnewline
\Hnewline
\Hnewline
\Hnewline
\Hnewline
%
%
\Hnewline \%docbook.dtd; \Hnewline
%
\Hnewline \%mathml.dtd;\Hnewline
%
] >\Hnewline }}
\fi
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\endinput\empty\empty\empty\empty\empty\empty
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{amsproc}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\:CheckOption{css} \if:Option
\:CheckOption{dtd} \if:Option
\Configure{VERSION}
{\HCode{\Hnewline}}
\Configure{DOCTYPE}
{\HCode{ }}
\Configure{XML-STYLESHEET}
{\HCode{
\Hnewline}}
\else
\Configure{VERSION}
{\HCode{\Hnewline}}
\Configure{DOCTYPE}
{\HCode{
}}
\Configure{XML-STYLESHEET}
{\HCode{
\Hnewline}}
\fi
\else
\Configure{VERSION}
{\HCode{\Hnewline}}
\Configure{DOCTYPE}
{\HCode{\Hnewline
\Hnewline
\Hnewline
\Hnewline
\Hnewline
\Hnewline
\Hnewline
\Hnewline
\Hnewline
\Hnewline
%
%
\Hnewline \%docbook.dtd; \Hnewline
%
\Hnewline \%mathml.dtd;\Hnewline
%
] >\Hnewline }}
\fi
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\endinput\empty\empty\empty\empty\empty\empty
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{amsmath}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\Configure{equation}
{\ifvmode \IgnorePar\fi \EndP
\HCode{}%
\Configure{gather}
{\HCode{}\IgnorePar }
{\HCode{}}
{}
{}
{\ifnum\HCol=2 \IgnorePar
\HCode{}\fi }
{}
}
{\ifvmode \IgnorePar\fi\EndP \HCode{}}
{\ifvmode \IgnorePar\fi\EndP \HCode{
}\par
\ShowPar}
\ConfigureEnv{align*}
{\ifmmode\else \ifvmode\else \IgnorePar\fi \EndP\fi}
{\ifmmode\else \par\ShowPar\fi} {}{}
\ConfigureEnv{alignat*}
{\ifmmode\else \ifvmode\else \IgnorePar\fi \EndP\fi}
{\ifmmode\else \par\ShowPar\fi}{}{}
\ConfigureEnv{alignat}
{\ifmmode\else \ifvmode\else \IgnorePar\fi \EndP\fi}
{\ifmmode\else \par\ShowPar\fi}{}{}
\ConfigureEnv{align}
{\ifmmode\else \ifvmode\else \IgnorePar\fi \EndP\fi}
{\ifmmode\else \par\ShowPar\fi}{}{}
\ConfigureEnv{eqxample}
{\ifmmode\else \ifvmode\else \IgnorePar\fi \EndP\fi}
{\ifmmode\else \par\ShowPar\fi}{}{}
\ConfigureEnv{flalign*}
{\ifmmode\else \ifvmode\else \IgnorePar\fi \EndP\fi}
{\ifmmode\else \par\ShowPar\fi}{}{}
\ConfigureEnv{flalign}
{\ifmmode\else \ifvmode\else \IgnorePar\fi \EndP\fi}
{\ifmmode\else \par\ShowPar\fi}{}{}
\ConfigureEnv{gather}
{\ifmmode\else \ifvmode\else \IgnorePar\fi \EndP\fi}
{\ifmmode\else \par\ShowPar\fi}{}{}
\ConfigureEnv{gather*}
{\ifmmode\else \ifvmode\else \IgnorePar\fi \EndP\fi}
{\ifmmode\else \par\ShowPar\fi}{}{}
\ConfigureEnv{gathered}
{\ifmmode\else \ifvmode\else \IgnorePar\fi \EndP\fi}
{\ifmmode\else \par\ShowPar\fi}{}{}
\ConfigureEnv{matrix}
{\ifmmode\else \ifvmode\else \IgnorePar\fi \EndP\fi}
{\ifmmode\else \par\ShowPar\fi}{}{}
\ConfigureEnv{xalignat*}
{\ifmmode\else \ifvmode\else \IgnorePar\fi \EndP\fi}
{\ifmmode\else \par\ShowPar\fi}{}{}
\ConfigureEnv{xalignat}
{\ifmmode\else \ifvmode\else \IgnorePar\fi \EndP\fi}
{\ifmmode\else \par\ShowPar\fi}{}{}
\ConfigureEnv{xxalignat}
{\ifmmode\else \ifvmode\else \IgnorePar\fi \EndP\fi}
{\ifmmode\else \par\ShowPar\fi}{}{}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\endinput\empty\empty\empty\empty\empty\empty
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{plain}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\Configure{VERSION}
{\HCode{\Hnewline}}
\Configure{DOCTYPE}
{\HCode{\Hnewline
\Hnewline
\Hnewline
\Hnewline
\Hnewline
\Hnewline
\Hnewline
\Hnewline
\Hnewline
\Hnewline
%
%
\Hnewline \%docbook.dtd; \Hnewline
%
\Hnewline \%mathml.dtd;\Hnewline
%
] >\Hnewline }}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\endinput\empty\empty\empty\empty\empty\empty
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{array}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\Configure{halignTB}
{\ifmathml \HCode{<\:MT table }\fi \halignTBL}
{\ifmathml \HCode{>}\fi}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\endinput\empty\empty\empty\empty\empty\empty
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{scrbook}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\Configure{VERSION}
{\HCode{\Hnewline}}
\Configure{DOCTYPE}
{\HCode{\Hnewline
\Hnewline
\Hnewline
\Hnewline
\Hnewline
\Hnewline
\Hnewline
\Hnewline
\Hnewline
\Hnewline
%
%
\Hnewline \%docbook.dtd; \Hnewline
%
\Hnewline \%mathml.dtd;\Hnewline
%
] >\Hnewline }}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\endinput\empty\empty\empty\empty\empty\empty
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\endinput