% ooffice-mml.4ht (2021-12-09-13:21), generated from tex4ht-ooffice.tex % Copyright 2009-2021 TeX Users Group % Copyright 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.3c 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.3c or later is part of all distributions % of LaTeX version 2005/12/01 or later. % % This work has the LPPL maintenance status "maintained". % % The Current Maintainer of this work % is the TeX4ht Project . % % If you modify this program, changing the % version identification would be appreciated. \immediate\write-1{version 2021-12-09-13:21} \exit:ifnot{Preamble,% amsmath,% array,% latex,% rlbabel,% tex4ht} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ConfigureHinput{Preamble} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \Configure{mathml}{} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \endinput\empty\empty\empty\empty\empty\empty %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ConfigureHinput{tex4ht} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \Configure{math-xmlns} { xmlns="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 }% \ht:special{t4ht@(}% For some strange reason, spurious space is produced % for inline math. We use TeX4ht specials to remove it. \Configure{DOCTYPE}{\HCode{}}% \:CheckOption{-xtpipes} \if:Option \Log:Note{Use the `-xtpipes' command line option to avoid xtpipes post processing} \else \Configure{DOCTYPE}{%% \HCode{\Hnewline \Hnewline \Hnewline }% }% \fi % \Configure{HTML}{}{\noindent}% \Configure{BODY}{}{}% \ht:special{t4ht@)}% % \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% \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><\a:mathml mo> \string&\#x0332; \else % % \Hnewline \fi} {\ifmathml \else \Hnewline \fi} % {\ifmathml <\a:mathml mtr\Hnewline class="cline"> \else \Hnewline \fi} {\ifmathml <\a:mathml mtd> \else % % \Hnewline \fi } {\ifmathml <\a:mathml mtd><\a:mathml mo> \string&\#x0332; \else % % \Hnewline \fi} {\ifmathml \else \Hnewline \fi} % {\ifmathml <\a:mathml mtr\Hnewline class="vspace" style="font-size:\HBorderspace"> \else % \fi} {\ifmathml <\a:mathml mtd\Hnewline> \else \string&\csname :sharp\endcsname xA0;% \fi} {\ifmathml \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 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@+\string&{35}x00A0{59}}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 mo\Hnewline accent="true">&\#x00AF;% }% \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 mo\Hnewline accent="true">&\#x0332;}% \else \HCode{}\fi \egroup} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \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{}} {} {} {\ifnum\HCol=2 \IgnorePar \HCode{<\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{}} {} {} {\ifnum\HCol=2 \IgnorePar \HCode{<\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{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