3.8 Math

<..latex math..>
 \Configure{equation}
    {}    {\HCode{<title>}}   {\HCode{</title>}}
 \ConfigureEnv{equation}
    {\IgnorePar\EndP
     \HCode{<div rend="equation"><p rend="equation">}}
    {\HCode{</p></div>}\ShowPar\par}
    {}{}
-_-_-

<..configure tei-mml tex4ht..>+
 \Configure{$$}
    {\Configure{@math}{display="block"}\DviMath}
    {\EndDviMath{\csname HCondtrue\endcsname\noindent}}{}
 \Configure{DviMath}
     {\mathmltrue \NoFonts\IgnoreRule\HCode{<!--l.
        \the\inputlineno--><formula notation="mathml"\Hnewline
          \expandafter\:rend \a:@math==//><math
            xmlns="http://www.w3.org/1998/Math/MathML"\Hnewline
            \expandafter\m:rend\a:@math==//>}\a:math
        <.sv dvimath par.>\IgnorePar}
     {\HCode{</math></formula>}\EndIgnoreRule\EndNoFonts
      <.recall dvimath par.>\mathmlfalse}
 \def\:rend#1=#2=#3//{\if !#1!\else rend=#2\fi}
 \def\m:rend#1=#2=#3//{\if !#1!\else display=#2\fi}
-_-_-

<..recall dvimath par..>
 \sv:ignore
-_-_-

<..sv dvimath par..>
 \edef\sv:ignore{\if:nopar
     \noexpand\IgnorePar\else \noexpand\ShowPar\fi}%
-_-_-

<..configure tei-mml amsmath..>
 \ConfigureEnv{gather}
    {\ShowPar\par}   {\ShowPar\par}
    {}{}
-_-_-

<..configure tei-mml amsmath..>+
 \ConfigureEnv{align*}
    {\ifmmode\else \IgnorePar\EndP \HCode{<note rend="align-star">}\fi}
    {\ifmmode\else \HCode{</note>}\par\ShowPar\fi} {}{}
 \ConfigureEnv{alignat*}
    {\ifmmode\else \IgnorePar\EndP \HCode{<note rend="alignat-star">}\fi}
    {\ifmmode\else \HCode{</note>}\par\ShowPar\fi}{}{}
 \ConfigureEnv{alignat}
    {\ifmmode\else \IgnorePar\EndP \HCode{<note rend="alignat">}\fi}
    {\ifmmode\else \HCode{</note>}\par\ShowPar\fi}{}{}
 \ConfigureEnv{align}
    {\ifmmode\else \IgnorePar\EndP \HCode{<note rend="align">}\fi}
    {\ifmmode\else \HCode{</note>}\par\ShowPar\fi}{}{}
 \ConfigureEnv{eqxample}
    {\ifmmode\else \IgnorePar\EndP \HCode{<note rend="eqxample">}\fi}
    {\ifmmode\else \HCode{</note>}\par\ShowPar\fi}{}{}
 \ConfigureEnv{flalign*}
    {\ifmmode\else \IgnorePar\EndP \HCode{<note rend="flalign*">}\fi}
    {\ifmmode\else \HCode{</note>}\par\ShowPar\fi}{}{}
 \ConfigureEnv{flalign}
    {\ifmmode\else \IgnorePar\EndP \HCode{<note rend="flalign">}\fi}
    {\ifmmode\else \HCode{</note>}\par\ShowPar\fi}{}{}
 \ConfigureEnv{gather}
    {\ifmmode\else \IgnorePar\EndP \HCode{<note rend="gather">}\fi}
    {\ifmmode\else \HCode{</note>}\par\ShowPar\fi}{}{}
 \ConfigureEnv{gather*}
    {\ifmmode\else \IgnorePar\EndP \HCode{<note rend="gather-star">}\fi}
    {\ifmmode\else \HCode{</note>}\par\ShowPar\fi}{}{}
 \ConfigureEnv{gathered}
    {\ifmmode\else \IgnorePar\EndP \HCode{<note rend="gathered">}\fi}
    {\ifmmode\else \HCode{</note>}\par\ShowPar\fi}{}{}
 \ConfigureEnv{matrix}
    {\ifmmode\else \IgnorePar\EndP \HCode{<note rend="matrix">}\fi}
    {\ifmmode\else \HCode{</note>}\par\ShowPar\fi}{}{}
 \ConfigureEnv{xalignat*}
    {\ifmmode\else \IgnorePar\EndP \HCode{<note rend="xalignat-star">}\fi}
    {\ifmmode\else \HCode{</note>}\par\ShowPar\fi}{}{}
 \ConfigureEnv{xalignat}
    {\ifmmode\else \IgnorePar\EndP \HCode{<note rend="xalignat">}\fi}
    {\ifmmode\else \HCode{</note>}\par\ShowPar\fi}{}{}
 \ConfigureEnv{xxalignat}
    {\ifmmode\else \IgnorePar\EndP \HCode{<note rend="xxalignat">}\fi}
    {\ifmmode\else \HCode{</note>}\par\ShowPar\fi}{}{}
-_-_-