%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% ooffice-mml.4ht 2007-01-08-11:02 %
% Copyright (C) 2001--2007 Maarten Wisse %
% James Naughton %
% 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} %
% %
% Maarten.Wisse@urz.uni-heidelberg.de %
% http://home.wanadoo.nl/pmwisse %
% %
% james.naughton@st-edmund-hall.oxford.ac.uk %
% %
% gurari@cse.ohio-state.edu %
% http://www.cse.ohio-state.edu/~gurari %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\immediate\write-1{version 2007-01-08-11:02}
\exit:ifnot{Preamble,%
amsmath,%
array,%
latex,%
plain,%
rlbabel,%
tex4ht}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{Preamble}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\Configure{mathml}{math:}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\endinput\empty\empty\empty\empty\empty\empty
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{tex4ht}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\Configure{math-xmlns}
{
xmlns:math="http://www.w3.org/1998/Math/MathML"\Hnewline
xmlns:xlink="http://www.w3.org/1999/xlink"
}
\:CheckOption{oo1}\if:Option
\HAssign\math:obj=0
\Configure{DviMath}
{\a:DviMathML \mathmltrue
\ifOption{mml-fonts}{}{\NoFonts}%
\HCode{%
}\IgnoreRule
\gHAdvance\math:obj by 1
\NextFile{\jobname-m\math:obj
.4om}%
\bgroup
\HCode{%
}%
\OOmanifest{\Hnewline
\Hnewline
}%
\:CheckOption{oo1}\if:Option
\Configure{DOCTYPE}{\HCode{\Hnewline}
}%
\else
\Configure{DOCTYPE}{\HCode{\Hnewline}
}%
\fi
\:CheckOption{-xttl} \if:Option
\Log:Note{Use the `-xttl' command line option to
avoid xttl post processing}
\else
\:CheckOption{oo1}\if:Option
\Configure{DOCTYPE}{%
\HCode{\Hnewline}
%
\HCode{\Hnewline
\Hnewline
}%
}%
\else
\Configure{DOCTYPE}{%%
\HCode{\Hnewline}
%
\HCode{\Hnewline
\Hnewline
}%
}%
\fi
\fi
%
\Configure{HTML}{}{\noindent}%
\Configure{BODY}{}{}%
%
\edef\sv:ignore{\if:nopar
\noexpand\IgnorePar\else \noexpand\ShowPar\fi}%
\IgnorePar
\HPage{}%
\Tg<\a:mathml math\Hnewline
\csname a:math-xmlns\endcsname \Hnewline
>\a:math
}
{\Tg\a:mathml math>%
\EndHPage{}\sv:ignore
\egroup
\EndIgnoreRule
\ifOption{mml-fonts}{}{\EndNoFonts}%
\mathmlfalse \b:DviMathML }
\Configure{$$}
{\Configure{@math}{% \a:mathml display="block"
}\IgnorePar
\ifvmode\EndP
\else\EndP \HCode{}\fi
\HCode{}%
\CenteredFrametrue \DviMath \CenteredFramefalse }
{\EndDviMath\HCode{}\ShowPar\par
{\csname HCondtrue\endcsname\noindent}}
{\DisplayMathtrue}
\else
\HAssign\math:obj=0
\Configure{DviMath}
{\a:DviMathML \mathmltrue
\ifOption{mml-fonts}{}{\NoFonts}%
\HCode{%
}\IgnoreRule
\gHAdvance\math:obj by 1
\NextFile{\jobname-m\math:obj
.4om}%
\bgroup
\HCode{\ifCenteredFrame
%
%
%
\else
%
%
%
\fi
}%
\OOmanifest{\Hnewline
\Hnewline
}%
\:CheckOption{oo1}\if:Option
\Configure{DOCTYPE}{\HCode{\Hnewline}
}%
\else
\Configure{DOCTYPE}{\HCode{\Hnewline}
}%
\fi
\:CheckOption{-xttl} \if:Option
\Log:Note{Use the `-xttl' command line option to
avoid xttl post processing}
\else
\:CheckOption{oo1}\if:Option
\Configure{DOCTYPE}{%
\HCode{\Hnewline}
%
\HCode{\Hnewline
\Hnewline
}%
}%
\else
\Configure{DOCTYPE}{%%
\HCode{\Hnewline}
%
\HCode{\Hnewline
\Hnewline
}%
}%
\fi
\fi
%
\Configure{HTML}{}{\noindent}%
\Configure{BODY}{}{}%
%
\edef\sv:ignore{\if:nopar
\noexpand\IgnorePar\else \noexpand\ShowPar\fi}%
\IgnorePar
\HPage{}%
\Tg<\a:mathml math\Hnewline
\csname a:math-xmlns\endcsname \Hnewline
>\a:math
}
{\Tg\a:mathml math>%
\EndHPage{}\sv:ignore
\egroup
\EndIgnoreRule
\ifOption{mml-fonts}{}{\EndNoFonts}%
\mathmlfalse \b:DviMathML }
\Configure{$$}
{\Configure{@math}{% \a:mathml display="block"
}\IgnorePar
\ifvmode\EndP
\else\EndP \HCode{}\fi
\HCode{}%
\CenteredFrametrue \DviMath \CenteredFramefalse }
{\EndDviMath
\HCode{}
\ShowPar\par
{\csname HCondtrue\endcsname\noindent}}
{\DisplayMathtrue}
\fi
\Configure{halignTD} {}{}
{<}{\ifmathml \HCode{ columnalign="left"}\else
L\fi}
{-}{\ifmathml \HCode{ columnalign="center"}\else
C\fi}
{>}{\ifmathml \HCode{ columnalign="right"}\else
R\fi}
{^}{\ifmathml \HCode{ rowalign="top"}\else
T\fi}
{=}{\ifmathml \HCode{ rowalign="baseline"}\else
N\fi}
{|}{\ifmathml \HCode{ rowalign="center"}\else
M\fi}
{_}{\ifmathml \HCode{ rowalign="bottom"}\else
B\fi}
{p}{\ifmathml \HCode{ columnalign="left"}\else
\fi}
{m}{\ifmathml\else m\fi} %{\HCode{valign-middle align-left}}
{b}{\ifmathml\else n\fi} %{\HCode{valign-baseline align-left}}
{}
\NewConfigureOO{display-math}
\ConfigureOO{display-math}
{\Hnewline
<\style:par:properties
fo:text-align="center"
style:auto-text-indent="false"
style:justify-single-word="false"/>\Hnewline
\Hnewline}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\endinput\empty\empty\empty\empty\empty\empty
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{latex}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\:CheckOption{oo1}\if:Option
\OOstyles{\Hnewline
\Hnewline
\Hnewline
\Hnewline}
\else
\OOstyles{\Hnewline
\Hnewline
\Hnewline
\Hnewline}
\OOstyles{\Hnewline
\Hnewline
}
\fi
\OOstyles{\Hnewline
\Hnewline
}
\let\AllColMargins\empty
\ConfigureEnv{array}
{\PushStack\Col:Marg\AllColMargins
\bgroup\Configure{$}{}{}{}}
{\egroup \PopStack\Col:Marg\AllColMargins}
{}{}
\Configure{HBorder}
{\ifmathml <\a:mathml mtr\Hnewline class="hline">
\else %
\fi}
{\ifmathml <\a:mathml mtd> \string&\#x0332; \a:mathml mtd>
\else %
%
\Hnewline
\fi}
{\ifmathml \a:mathml mtr>
\else \Hnewline
\fi}
%
{\ifmathml <\a:mathml mtr\Hnewline class="cline">
\else \Hnewline
\fi}
{\ifmathml <\a:mathml mtd>\a:mathml mtd>
\else %
%
\Hnewline
\fi }
{\ifmathml <\a:mathml mtd> \string&\#x0332; \a:mathml mtd>
\else %
%
\Hnewline
\fi}
{\ifmathml \a:mathml mtr>
\else \Hnewline
\fi}
%
{\ifmathml <\a:mathml mtr\Hnewline class="vspace" style="font-size:\HBorderspace">
\else
%
\fi}
{\ifmathml <\a:mathml mtd\Hnewline>\a:mathml mtd>
\else \string | %
\fi}
{\ifmathml \a:mathml mtr>
\else
%
\fi}
%
\Configure{equation}
{\IgnorePar\ifvmode\else \HCode{}\fi
\EndP \HCode{%
\Hnewline
\Hnewline
%
%
}%
%
\Configure{$$}
{\Configure{@math}{}\IgnorePar\EndP
\CenteredFrametrue \DviMath \CenteredFramefalse }
{\EndDviMath\EndP}{}%
%
\IgnorePar}
{\ifvmode \IgnorePar\fi\EndP
\HCode{\Hnewline
%
}%
}
{\HCode{\Hnewline
}%
\ShowPar\par{\HCondtrue\noindent}%
%
}
\OOstyles{%
\Hnewline
<\style:par:properties
fo:text-align="center"
style:justify-single-word="false"/>\Hnewline
\Hnewline
}
\OOstyles{%
\Hnewline
<\style:par:properties
fo:text-align="end"
style:justify-single-word="false"/>\Hnewline
\Hnewline
}
\OOstyles{%
\Hnewline
<\style:tableproperties
style:rel-width="88\%"
fo:margin-left="1cm"
fo:margin-right="0cm"
fo:margin-top="0.3cm"
fo:margin-bottom="0.3cm"
table:align="margins"/>\Hnewline
\Hnewline
}
\Configure{[]}
{\Configure{@math}{% \a:mathml display="block"
}\IgnorePar
\ifvmode\EndP
\else\EndP \HCode{}\fi
\HCode{}%
\CenteredFrametrue \DviMath \CenteredFramefalse
$$\DisplayMathtrue}
{$$\EndDviMath\HCode{}\ShowPar\par
{\csname HCondtrue\endcsname\noindent}}
{}
\Configure{newline}
{\ifmtext \ht:special{t4ht@,}%
\HCode{\a:mathml mtext><\a:mathml
mtext class="newline">}%
\ht:special{t4ht@,&\#x00A0;}%
%
\else \HCode{}\fi}
\def\:nbsp{\ifmtext \leavevmode\special{t4ht@+\string&{35}x00A0{59}}x%
\else\ifmathml
\Tg<\a:mathml mspace />\else \ht:special{t4ht@+}x%
\fi\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}
\Configure{left}
{}
{\HCode{<\a:mathml mrow>\expandafter
\ifx \csname \string#1:lr del\endcsname\relax
<\a:mathml mo form="prefix" >#1\a:mathml mo\space>\else
\expandafter\ifx \csname \string#1:lr del\endcsname\empty \else
<\a:mathml mo form="prefix" >\csname
\string#1:lr del\endcsname\a:mathml mo>\fi
\fi<\a:mathml mrow>}}
\Configure{right}
{\HCode{\a:mathml mrow>\expandafter
\ifx \csname \string#1:lr del\endcsname\relax
<\a:mathml mo form="postfix" >#1\a:mathml mo>\else
\expandafter\ifx \csname \string#1:lr del\endcsname\empty \else
<\a:mathml mo form="postfix" >\csname
\string#1:lr del\endcsname\a:mathml mo>\fi
\fi
}}
{\HCode{\a:mathml mrow>}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\endinput\empty\empty\empty\empty\empty\empty
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{amsmath}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\Configure{equation}
{\ifvmode \IgnorePar\fi\EndP
\HCode{%
\Hnewline
\Hnewline
%
%
}%
%
\Configure{gather}
{\HCode{<\a:mathml mtable\Hnewline
class="equation"><\a:mathml mtr><\a:mathml mtd>}\IgnorePar
}
{\HCode{\a:mathml mtd>\a:mathml mtr>\a:mathml mtable>}}
{}
{}
{\ifnum\HCol=2 \IgnorePar
\HCode{\a:mathml mtd><\a:mathml mtd>}\fi }
{}%
%
\Configure{$$}
{\Configure{@math}{}\IgnorePar\EndP
\CenteredFrametrue \DviMath \CenteredFramefalse }
{\EndDviMath\EndP}{}%
%
}
{\ifvmode \IgnorePar\fi\EndP \HCode{\Hnewline
%
}%
}
{\ifvmode \IgnorePar\fi\EndP \HCode{\Hnewline
}%
%
\ShowPar\par{\HCondtrue\noindent}%
}
\Configure{equation*}
{\ifvmode \IgnorePar\fi \EndP
\HCode{}%
%
\Configure{$$}
{\Configure{@math}{}\IgnorePar\EndP
\CenteredFrametrue \DviMath \CenteredFramefalse }
{\EndDviMath\EndP}{}%
%
\IgnorePar
}
{\ifvmode \IgnorePar\fi\EndP
\HCode{}%
%
\IgnoreIndent\par}
\ConfigureEnv{align}
{\ifmathml\else
\ifvmode \IgnorePar\fi \EndP
\IgnorePar
\HCode{}%
\fi
}
{\ifmathml\else
\ifvmode \IgnorePar\fi\EndP
\HCode{}%
\IgnoreIndent\par
\fi
}
{} {}
\ConfigureEnv{align*}
{\ifmathml\else
\ifvmode \IgnorePar\fi \EndP
\IgnorePar
\HCode{}%
\fi
}
{\ifmathml\else
\ifvmode \IgnorePar\fi\EndP
\HCode{}%
\IgnoreIndent\par
\fi
}
{} {}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\endinput\empty\empty\empty\empty\empty\empty
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{plain}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\Configure{left}
{}
{\HCode{<\a:mathml mrow>\expandafter
\ifx \csname \string#1:lr del\endcsname\relax
<\a:mathml mo form="prefix" >#1\a:mathml mo\space>\else
\expandafter\ifx \csname \string#1:lr del\endcsname\empty \else
<\a:mathml mo form="prefix" >\csname
\string#1:lr del\endcsname\a:mathml mo>\fi
\fi<\a:mathml mrow>}}
\Configure{right}
{\HCode{\a:mathml mrow>\expandafter
\ifx \csname \string#1:lr del\endcsname\relax
<\a:mathml mo form="postfix" >#1\a:mathml mo>\else
\expandafter\ifx \csname \string#1:lr del\endcsname\empty \else
<\a:mathml mo form="postfix" >\csname
\string#1:lr del\endcsname\a:mathml mo>\fi
\fi
}}
{\HCode{\a:mathml mrow>}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\endinput\empty\empty\empty\empty\empty\empty
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{array}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\let\AllColMargins\empty
\ConfigureEnv{array}
{\PushStack\Col:Marg\AllColMargins
\bgroup\Configure{$}{}{}{}}
{\egroup \PopStack\Col:Marg\AllColMargins}
{}{}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\endinput\empty\empty\empty\empty\empty\empty
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{rlbabel}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\Configure{[]}
{\Configure{@math}{% \a:mathml display="block"
}\IgnorePar
\ifvmode\EndP
\else\EndP \HCode{}\fi
\HCode{}%
\CenteredFrametrue \DviMath \CenteredFramefalse
$$\DisplayMathtrue}
{$$\EndDviMath\HCode{}\ShowPar\par
{\csname HCondtrue\endcsname\noindent}}
{}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\endinput\empty\empty\empty\empty\empty\empty
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\endinput