%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% ooffice-mml.4ht 2009-06-11-09:32 %
% Copyright (C) 2001--2009 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 2009-06-11-09:32}
\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"
}
\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
}%
\Configure{DOCTYPE}{\HCode{\Hnewline}
}%
\:CheckOption{-xtpipes} \if:Option
\Log:Note{Use the `-xtpipes' command line option to
avoid xtpipes post processing}
\else
\Configure{DOCTYPE}{%%
\HCode{\Hnewline}
%
\HCode{\Hnewline
\Hnewline
}%
}%
\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}
\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
\Hnewline
\Hnewline}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\endinput\empty\empty\empty\empty\empty\empty
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{latex}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\OOstyles{\Hnewline
\Hnewline
\Hnewline
\Hnewline}
\OOstyles{\Hnewline
\Hnewline
}
\OOstyles{\Hnewline
\Hnewline
}
\let\:VBorder=\empty
\let\:AllColBars=\empty
\let\AllColMargins=\empty
\Configure{VBorder}
{\HAssign\NewGroup = 0
\gHAdvance\Next:TableNo by 1
\global\let\TableNo=\Next:TableNo
%
\let\:VBorder=\empty
\let\:AllColBars=\empty
\let\AllColMargins=\empty
%
}
{\xdef\:VBorder{\:VBorder
\ifnum \NewGroup> 0
\remove:eog < >>\fi}%
\xdef\:AllColBars{\:AllColBars
\ifx\:AllColBars\empty \else ,\fi \ar:cnt}%
\HAssign\NewGroup = 0 }
{\Advance:\NewGroup by 1
\ifnum \NewGroup=1 \xdef\:VBorder{\:VBorder
}%
\fi
\xdef\:VBorder{\:VBorder}%
%
\xdef\AllColMargins{\AllColMargins 1}%
%
}
{\xdef\AllColMargins{\AllColMargins 0}%
}
\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}
%
\:CheckOption{tab-eq}\if:Option
\Configure{equation}
{\IgnorePar\ifvmode\else \HCode{}\fi
\EndP \HCode{}%
\Tabtrue
\Configure{$$}
{\Configure{@math}{}\IgnorePar\EndP
\CenteredFrametrue \DviMath \CenteredFramefalse }
{\EndDviMath\EndP}{}%
%
\IgnorePar}
{\Tabfalse \ifvmode \IgnorePar\fi\EndP \HCode{}}
{\HCode{}\ShowPar\par{\HCondtrue\noindent}%
%
}
\OOstyles{%
\Hnewline
\Hnewline
\Hnewline
\Hnewline
}
\else
\Log:Note{for tab-based layoutof equation environment
use the command line option `tab-eq'}
\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}%
%
}
\fi
\OOstyles{%
\Hnewline
\Hnewline
\Hnewline
}
\OOstyles{%
\Hnewline
\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}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\:CheckOption{tab-eq}\if:Option
\Configure{equation}
{\IgnorePar\ifvmode\else \HCode{}\fi
\EndP \HCode{}%
\Tabtrue
\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 }
{}%
%
\IgnorePar}
{\Tabfalse \ifvmode \IgnorePar\fi\EndP \HCode{}}
{\HCode{}\ShowPar\par{\HCondtrue\noindent}%
%
}
\else
\Log:Note{for tab-based layout of equation environment
use the command line option `tab-eq'}
\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}%
}
\fi
\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\:VBorder=\empty
\let\:AllColBars=\empty
\let\AllColMargins=\empty
\Configure{VBorder}
{\HAssign\NewGroup = 0
\gHAdvance\Next:TableNo by 1
\global\let\TableNo=\Next:TableNo
%
\let\:VBorder=\empty
\let\:AllColBars=\empty
\let\AllColMargins=\empty
%
}
{\xdef\:VBorder{\:VBorder
\ifnum \NewGroup> 0
\remove:eog < >>\fi}%
\xdef\:AllColBars{\:AllColBars
\ifx\:AllColBars\empty \else ,\fi \ar:cnt}%
\HAssign\NewGroup = 0 }
{\Advance:\NewGroup by 1
\ifnum \NewGroup=1 \xdef\:VBorder{\:VBorder
}%
\fi
\xdef\:VBorder{\:VBorder}%
%
\xdef\AllColMargins{\AllColMargins 1}%
%
}
{\xdef\AllColMargins{\AllColMargins 0}%
}
\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