1.2 The equation Environment

  1.2.1 LaTeX
  1.2.2 AmsMath

1.2.1 LaTeX

<..mathltx latex..>
 \let\A:equation=\a:equation
 \let\B:equation=\b:equation
 \let\C:equation=\c:equation
 \Configure{equation}
   {\A:equation<.math display in equation.>}
   {\B:equation}{\C:equation}
-_-_-

<..configure html-mltx latex..>
 \Configure{equation}
   {\IgnorePar<.inline end-par comment.>\EndP
    \HCode{<table class="equation"><tr><td>}\IgnorePar
      <.math display in equation.>}
   {\ifvmode \IgnorePar\fi\EndP\HCode{</td><td class="eq-no">}}
   {\HCode{</td></tr></table>}<.try inline par.>}
 \Css{.equation td{text-align:center; vertical-align:middle; }}
 \Css{td.eq-no{ width:5\%; }}
 \Css{table.equation { width:100\%; }   }
-_-_-

<..math display in equation..>
 \csname a:equation\string$\string$\endcsname
-_-_-

<..mathltx latex..>+
 \NewConfigure{equation$$}{1}
 \Configure{equation$$}
   {\Configure{$$}
      {\Configure{@math}{div}\IgnorePar\EndP\DviMath}
      {\EndDviMath\EndP}
      {\DisplayMathtrue}%
   }
-_-_-

<..block display..>
 display="block"
-_-_-

<..inline display..>
 display="inline"
-_-_-

1.2.2 AmsMath

<..amsmath mathltx..>
 \Configure{equation}
   {\Configure{gather}
      {\HCode{<mtable\Hnewline
         \mml:class="equation"><mtr><mtd>}\IgnorePar }
      {\HCode{</mtd></mtr></mtable>}}
      {}
      {}
      {\ifnum\HCol=2 \IgnorePar
          \HCode{</mtd><mtd>}\fi }
      {}
   }{}{}
 \Configure{equation*}
   {\Configure{gather*}
      {\HCode{<mtable\Hnewline
         \mml:class="equation-star"><mtr><mtd>}\IgnorePar }
      {\HCode{</mtd></mtr></mtable>}}
      {}
      {}
      {\ifnum\HCol=2 \IgnorePar
          \HCode{</mtd><mtd>}\fi }
      {}
   }{}
 \Css{.equation-star td{text-align:center; }}
 \Css{table.equation-star { width:100\%; }}
-_-_-

<..amsmath html-mltx pre 2000..>
 \Configure{equation}
   {\ifvmode \IgnorePar\fi \EndP
    \HCode{<table class="equation"><tr><td>}%
    <.amsmath equation pre 2000.>%
    \IgnorePar
   }
   {\ifvmode \IgnorePar\fi\EndP \HCode{</td><td class="eq-no">}}
   {\ifvmode \IgnorePar\fi\EndP \HCode{</td></tr></table>}%
    \IgnoreIndent\par}
 \Configure{equation*}
   {\ifvmode \IgnorePar\fi \EndP
    \HCode{<table class="equation-star"><tr><td>}%
    <.amsmath equation pre 2000.>%
    \IgnorePar
   }
   {\ifvmode \IgnorePar\fi\EndP \HCode{</td></tr></table>}%
    \IgnoreIndent\par}
-_-_-

<..amsmath html-mltx jan 2000..>
 \Configure{equation}
   {\ifvmode \IgnorePar\fi \EndP
    \HCode{<table class="EQUATION"><tr><td>}%
    <.amsmath equation jan 2000.>%
    \IgnorePar
   }
   {\ifvmode \IgnorePar\fi\EndP
    \HCode{</td><td class="eq-no">}%
   }
   {\ifvmode \IgnorePar\fi\EndP
    \HCode{</td></tr></table>}%
    \IgnoreIndent\par}
 \Configure{equation*}
   {\ifvmode \IgnorePar\fi \EndP
    \HCode{<table class="EQUATION"><tr><td>}%
    <.amsmath equation jan 2000.>%
    \IgnorePar
   }
   {\ifvmode \IgnorePar\fi\EndP
    \HCode{</td></tr></table>}%
    \IgnoreIndent\par}
-_-_-

<..amsmath html-mltx july 2000..>
 \Configure{equation}
   {\ifvmode \IgnorePar\fi\EndP
    \HCode{<table class="equation"><tr><td>}%
    <.amsmath equation july 2000.>%
    <.math display in amsmath equation.>%
   }
   {\ifvmode \IgnorePar\fi\EndP
    \HCode{</td><td class="eq-no">}%
    }
   {\ifvmode \IgnorePar\fi\EndP \HCode{</td></tr></table>}%
    \ShowPar\IgnoreIndent\par}
 \Configure{equation*}
   {\ifvmode \IgnorePar\fi\EndP
    \HCode{<table class="equation-star"><tr><td>}%
    <.amsmath equation july 2000.>%
    <.math display in amsmath equation.>%
   }
   {\ifvmode \IgnorePar\fi\EndP \HCode{</td></tr></table>}%
    \ShowPar\IgnoreIndent\par}
-_-_-

<..math display in amsmath equation..>
 \csname a:equation\string$\string$\endcsname
-_-_-

<..configure html-mltx amsmath..>
 \Configure{equation$$}
   {\Configure{$$}
    {\IgnorePar \Configure{@math}{div}\EndP\DviMath
     \HCode{\string\begin{equation}}}
    {\HCode{\string\end{equation}}\EndDviMath\EndP}
    {\DisplayMathtrue}%
   }
-_-_-

<..amsmath equation jan 2000..>
 <.amsmath equation july 2000.>%
-_-_-

<..amsmath equation july 2000..>
 \Configure{gather}
      {}
      {}
      {}
      {}
      {}
      {}%
-_-_-

<..amsmath equation pre 2000..>
 \Configure{$$}{}{}{}%
 \Configure{gather}
   {\Configure{$$}
     {\Configure{@math}{\mml:class="equation"}\IgnorePar\EndP\DviMath}
     {\EndDviMath\EndP}%
     {}%
    \IgnorePar
   }{}{}{}{}{}
-_-_-