5.6 amsmath
\Configure{equation}
{\ifvmode \IgnorePar\fi \EndP
\HCode{<blockquote role="equation">}%
\Configure{gather}
{\HCode{<mtable\Hnewline
class="equation"><mtr><mtd>}\IgnorePar }
{\HCode{</mtd></mtr></mtable>}}
{}
{}
{\ifnum\HCol=2 \IgnorePar
\HCode{</mtd><mtd>}\fi }
{}
}
{\ifvmode \IgnorePar\fi\EndP \HCode{<note role="equation"><para>}}
{\ifvmode \IgnorePar\fi\EndP \HCode{</para></note></blockquote>}\par
\ShowPar}
% Mar 18, 2013 at 9:28 PM, Matteo Gamboz <[email protected]>
% wrote that starred equation caused an forgotten endgroup error, hence
% the following fix. CVR Mar 22, 2013.
\Configure{equation*}
{\ifvmode \IgnorePar\fi \EndP
\HCode{<blockquote role="equation">}%
\Configure{gather}
{\HCode{<mtable\Hnewline
class="equation"><mtr><mtd>}\IgnorePar }
{\HCode{</mtd></mtr></mtable>}}
{}
{}
{}
{}
}
{\ifvmode \IgnorePar\fi\EndP \HCode{</blockquote>}\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}{}{}
-_-_-
\ConfigureEnv{subequations}
{\ifvmode \IgnorePar\fi \EndP
\HCode{<blockquote role="subequations">}%
}
{\ifvmode \IgnorePar\fi\EndP \HCode{</blockquote>}\par
\ShowPar}
{}{}
-_-_-
\Configure{equation}
{\ifmmode\else\par \IgnorePar\fi \EndP
\HCode{<blockquote role="equation">}\IgnorePar
}
{\ifvmode \IgnorePar\fi\EndP\HCode{<note role="equation"><para>}}
{\HCode{</para></note></blockquote>}}
\Configure{equation*}
{\ifmmode\else\par \IgnorePar\fi \EndP
\HCode{<blockquote role="equation-star">}\IgnorePar
}
{\ifmmode\else\par \IgnorePar\fi \EndP
\HCode{</blockquote>}}
-_-_-
\def\:tempc#1#2{%
\ConfigureEnv{#1}
{\par\IgnorePar\EndP\HCode{<equation
role="#1"><mathphrase>}\Picture*[]{}}
{\EndPicture\EndP\HCode{</mathphrase></equation>}\par}
{} {}}
\:tempc{align}{align}
\:tempc{alignat}{alignat}
\:tempc{xalignat}{xalignat}
\:tempc{xxalignat}{xxalignat}
\:tempc{flalign}{flalign}
\:tempc{align*}{align-star}
\:tempc{alignat*}{alignat-star}
\:tempc{xalignat*}{xalignat-star}
\:tempc{flalign*}{flalign-star}
-_-_-