%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% tei-mml.4ht                          2001-12-14-23:53 %
% Copyright (C) 2000--2001      Eitan M. Gurari         %
%                               Sebastian Rahtz         %
%                                                       %
% This program can redistributed and/or modified under  %
% the terms of the LaTeX Project Public License         %
% Distributed from CTAN archives in directory           %
% macros/latex/base/lppl.txt; either version 1 of the   %
% License, or (at your option) any later version.       %
%                                                       %
% However, you are allowed to modify this program       %
% without changing its name, if you modify its          %
% signature. Changes to the signature can be introduced %
% with a directive of the form                          %
%            \message{signature}                        %
%                                                       %
%                             gurari@cis.ohio-state.edu %
%       sebastian.rahtz@computing-services.oxford.ac.uk %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\immediate\write-1{version 2001-12-14-23:53}

\exit:ifnot{amsmath,% 
latex,% 
tex4ht}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
                \ConfigureHinput{tex4ht}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    \Configure{DOCTYPE}
   {\HCode{<?xml version="1.0"?>\Hnewline
      <!DOCTYPE TEI.2 [\Hnewline<!ELEMENT formula (math)>\Hnewline
%
<!ENTITY \% TEI.dtd PUBLIC\Hnewline
    "-//TEI//DTD TEI Lite XML ver. 1.3//EN"\Hnewline
    "teixlite.dtd">
\Hnewline \%TEI.dtd; \Hnewline
%
}\immediate\write16{--- file \jobname.ent ---}\HCode{%
<!ENTITY \% ENT-\jobname.ent SYSTEM "\jobname.ent">
       \Hnewline \%ENT-\jobname.ent; \Hnewline
%
%
<!ENTITY \% mathml.dtd PUBLIC
    "-//W3C//DTD MathML 2.0//EN"\Hnewline\space\space
    "mathml2.dtd">
    \Hnewline \%mathml.dtd;\Hnewline
%
]>\Hnewline}}
\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
       \edef\sv:ignore{\if:nopar
    \noexpand\IgnorePar\else \noexpand\ShowPar\fi}%
\IgnorePar}
    {\HCode{</math></formula>}\EndIgnoreRule\EndNoFonts
     \sv:ignore
\mathmlfalse}
\def\:rend#1=#2=#3//{\if !#1!\else rend=#2\fi}
\def\m:rend#1=#2=#3//{\if !#1!\else display=#2\fi}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  
\endinput\empty\empty\empty\empty\empty\empty
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
                \ConfigureHinput{latex}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    \Configure{newline}
  {\ifmtext \HCode{</mtext><mtext class="newline">}%
   \else \HCode{<!--br role="newline" /-->}\fi}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  
\endinput\empty\empty\empty\empty\empty\empty
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

















%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
                \ConfigureHinput{amsmath}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    \ConfigureEnv{gather}
   {\ShowPar\par}   {\ShowPar\par}
   {}{}
\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}{}{}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  
\endinput\empty\empty\empty\empty\empty\empty
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


































































































































































































\endinput

