summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/tex4ht/ooffice-mml.4ht
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-01-12 23:46:03 +0000
committerKarl Berry <karl@freefriends.org>2006-01-12 23:46:03 +0000
commit873660d1a83ece926fe7206288dda9c36b349c1b (patch)
treea48f77125c309a355b5d0eb58d6b24446abe9d62 /Master/texmf-dist/tex/generic/tex4ht/ooffice-mml.4ht
parent2939242967231097459df0fc3150fabc2f639111 (diff)
generic 1
git-svn-id: svn://tug.org/texlive/trunk@613 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/generic/tex4ht/ooffice-mml.4ht')
-rw-r--r--Master/texmf-dist/tex/generic/tex4ht/ooffice-mml.4ht760
1 files changed, 760 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/generic/tex4ht/ooffice-mml.4ht b/Master/texmf-dist/tex/generic/tex4ht/ooffice-mml.4ht
new file mode 100644
index 00000000000..73627fb2a0d
--- /dev/null
+++ b/Master/texmf-dist/tex/generic/tex4ht/ooffice-mml.4ht
@@ -0,0 +1,760 @@
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% ooffice-mml.4ht 2005-10-22-10:51 %
+% Copyright (C) 2001--2005 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 2005-10-22-10:51}
+ \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"
+ }
+\HAssign\math:obj=0
+\Configure{DviMath}
+ {\a:DviMathML \mathmltrue
+ \ifOption{mml-fonts}{}{\NoFonts}%
+ \HCode{<!--l. \the\inputlineno-->%
+}\IgnoreRule
+ \gHAdvance\math:obj by 1
+\NextFile{\jobname-m\math:obj
+.4om}%
+\bgroup
+ \HCode{<draw:object\Hnewline
+ draw:style-name="f1"
+ draw:name="mobj-\math:obj"
+ draw:z-index="0"
+ text:anchor-type="as-char"
+ xlink:href="\#./\jobname-m\math:obj
+" \Hnewline
+ xlink:type="simple"
+ xlink:show="embed"
+ xlink:actuate="onLoad" />%
+}%
+ \OOmanifest{<manifest:file-entry
+ manifest:media-type="text/xml"
+ manifest:full-path="\jobname-m\math:obj
+/content.xml"/>\Hnewline
+<manifest:file-entry
+ manifest:media-type="text/xml"
+ manifest:full-path="\jobname-m\math:obj
+/settings.xml"/>\Hnewline
+<manifest:file-entry
+ manifest:media-type="application/vnd.sun.xml.math"
+ manifest:full-path="\jobname-m\math:obj
+/"/>
+}%
+ \Configure{DOCTYPE}
+ {\HCode{<!DOCTYPE \a:mathml math PUBLIC
+ "-//OpenOffice.org//DTD Modified W3C MathML 1.01//\expandafter
+\ifx \csname a:dtd-lang\endcsname\relax EN\else
+ \csname a:dtd-lang\endcsname
+\fi
+"
+ "math.dtd">\Hnewline}}%
+\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>\a:math
+ }
+ {\Tg</\a:mathml math>%
+ \EndHPage{}\sv:ignore
+\egroup
+\EndIgnoreRule
+ \ifOption{mml-fonts}{}{\EndNoFonts}%
+ \mathmlfalse \b:DviMathML }
+\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}}
+ {}
+\Configure{$$}
+ {\Configure{@math}{\a:mathml display="block"}\IgnorePar
+ \ifvmode\EndP
+ \else\EndP \HCode{<!--tex4ht:inline-->}\fi
+ \HCode{<text:p text:style-name="display-math">}\DviMath}
+ {\EndDviMath\HCode{</text:p>}\ShowPar\par
+ {\csname HCondtrue\endcsname\noindent}}
+ {\DisplayMathtrue}
+\NewConfigureOO{display-math}
+\ConfigureOO{display-math}
+ {<style:style style:name="display-math"
+ style:family="paragraph"
+ style:parent-style-name="Text body">\Hnewline
+ <style:properties
+ fo:text-align="center"
+ style:auto-text-indent="false"
+ style:justify-single-word="false"/>\Hnewline
+ </style:style>\Hnewline}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\endinput\empty\empty\empty\empty\empty\empty
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+
+
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ \ConfigureHinput{latex}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ \OOstyles{\Hnewline
+ <style:style style:name="f1"
+ style:family="graphics"
+ style:parent-style-name="Formula"
+ >\Hnewline
+ <style:properties style:vertical-pos="middle"
+ style:vertical-rel="text"/>\Hnewline
+ </style:style>\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 <table:table-row \Hnewline table:style-name="hline-row">%
+\fi}
+{\ifmathml <\a:mathml mtd><math:mo> \string&\#x0332; </math:mo></\a:mathml mtd>
+
+ \else <table:table-cell table:style-name="hline-cell"
+ table:value-type="string">%
+ <text:p text:style-name="hline-p-hr" />%
+ </table:table-cell>\Hnewline
+\fi}
+{\ifmathml </\a:mathml mtr>
+ \else </table:table-row>\Hnewline
+\fi}
+%
+ {\ifmathml <\a:mathml mtr\Hnewline class="cline">
+ \else <table:table-row \Hnewline table:style-name="cline-row">\Hnewline
+\fi}
+{\ifmathml <\a:mathml mtd></\a:mathml mtd>
+ \else <table:table-cell table:style-name="cline-cell">%
+ <text:p text:style-name="cline-p" />%
+ </table:table-cell>\Hnewline
+\fi }
+{\ifmathml <\a:mathml mtd><math:mo> \string&\#x0332; </math:mo></\a:mathml mtd>
+
+ \else <table:table-cell table:style-name="cline-cell">%
+ <text:p text:style-name="cline-p-hr" />%
+ </table:table-cell>\Hnewline
+\fi}
+{\ifmathml </\a:mathml mtr>
+ \else </table:table-row>\Hnewline
+\fi}
+%
+ {\ifmathml <\a:mathml mtr\Hnewline class="vspace" style="font-size:\HBorderspace">
+ \else <tr\Hnewline class="vspace" style="font-size:\HBorderspace">%
+\fi}
+{\ifmathml <\a:mathml mtd\Hnewline></\a:mathml mtd>
+ \else <td\Hnewline>\string&nbsp;</td>%
+\fi}
+{\ifmathml </\a:mathml mtr>
+ \else </tr>%
+\fi}
+%
+\Configure{equation}
+ {\IgnorePar\ifvmode\else \HCode{<!--tex4ht:inline-->}\fi
+ \EndP \HCode{<table:table table:style-name="equation">%
+ <table:table-column table:style-name="equ-col" />\Hnewline
+ <table:table-column table:style-name="equ-num-col" />\Hnewline
+ <table:table-row>%
+ <table:table-cell table:style-name="equ-cell">%
+ <text:p text:style-name="equ-p">}%
+%
+ \Configure{$$}
+ {\Configure{@math}{}\IgnorePar\EndP\DviMath}
+ {\EndDviMath\EndP}{}%
+%
+ \IgnorePar}
+ {\ifvmode \IgnorePar\fi\EndP
+ \HCode{</text:p></table:table-cell>\Hnewline
+ <table:table-cell table:style-name="equ-num-cell">%
+ <text:p text:style-name="equ-num-p">}%
+}
+ {\HCode{</text:p></table:table-cell>\Hnewline
+ </table:table-row></table:table>}%
+\ShowPar\par{\HCondtrue\noindent}%
+%
+}
+\OOstyles{%
+<style:style
+ style:name="equ-p"
+ style:family="paragraph"
+ style:parent-style-name="Standard">\Hnewline
+ <style:properties
+ fo:text-align="center"
+ style:justify-single-word="false"/>\Hnewline
+</style:style>\Hnewline
+}
+\OOstyles{%
+<style:style
+ style:name="equ-num-p"
+ style:family="paragraph"
+ style:parent-style-name="Standard">\Hnewline
+ <style:properties
+ fo:text-align="end"
+ style:justify-single-word="false"/>\Hnewline
+</style:style>\Hnewline
+}
+\OOstyles{%
+<style:style style:name="equation"
+ style:family="table">\Hnewline
+ <style:properties
+ 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
+</style:style>\Hnewline
+}
+\Configure{[]}
+ {\Configure{@math}{\a:mathml display="block"}\IgnorePar
+ \ifvmode\EndP
+ \else\EndP \HCode{<!--tex4ht:inline-->}\fi
+ \HCode{<text:p text:style-name="display-math">}\DviMath$$\DisplayMathtrue}
+ {$$\EndDviMath\HCode{</text:p>}\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{<text:line-break/>}\fi}
+\def\:nbsp{\ifmtext \leavevmode\special{t4ht@+\string&{35}x00A0{59}}x%
+\else\ifmathml
+ \Tg<\a:mathml mspace />\else \ht:special{t4ht@+<text{58}s/>}%
+\fi\fi}
+\Configure{overline}
+ {\bgroup\ifmathml \HCode{<\a:mathml mover accent="false"\Hnewline
+\mml:class="mml-overline"><\a:mathml mrow>}%
+\else
+ \HCode{<text:span text:style-name="overline">}\fi}
+ {\ifmathml \HCode{</\a:mathml mrow><\a:mathml mo\Hnewline
+ accent="true">&\#x00AF;</\a:mathml mo>%
+</\a:mathml mover>}%
+\else \HCode{</text:span>}\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{<text:span text:style-name="underline">}\fi}
+ {\ifmathml \HCode{</\a:mathml mrow><\a:mathml mo\Hnewline
+accent="true">&\#x0332;</\a:mathml mo></\a:mathml munder>}%
+\else \HCode{</text:span>}\fi \egroup}
+\Configure{left}
+ {}
+ {\HCode{<\a:mathml mrow><\a:mathml mo>\expandafter
+ \ifx \csname \string#1:lr del\endcsname\relax #1\else
+ \csname \string#1:lr del\endcsname\fi
+ </\a:mathml mo\space><\a:mathml mrow>}}
+\Configure{right}
+ {\HCode{</\a:mathml mrow><\a:mathml mo>\expandafter
+ \ifx \csname \string#1:lr del\endcsname\relax #1\else
+ \csname \string#1:lr del\endcsname\fi
+ </\a:mathml mo>}}
+ {\HCode{</\a:mathml mrow>}}
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\endinput\empty\empty\empty\empty\empty\empty
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ \ConfigureHinput{amsmath}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ \Configure{equation}
+ {\ifvmode \IgnorePar\fi\EndP
+ \HCode{<table:table table:style-name="equation">%
+ <table:table-column table:style-name="equ-col" />\Hnewline
+ <table:table-column table:style-name="equ-num-col" />\Hnewline
+ <table:table-row>%
+ <table:table-cell table:style-name="equ-cell">%
+ <text:p text:style-name="equ-p">}%
+%
+ \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\DviMath}
+ {\EndDviMath\EndP}{}%
+%
+ }
+ {\ifvmode \IgnorePar\fi\EndP \HCode{</text:p></table:table-cell>\Hnewline
+ <table:table-cell table:style-name="equ-num-cell">%
+ <text:p text:style-name="equ-num-p">}%
+}
+ {\ifvmode \IgnorePar\fi\EndP \HCode{</text:p></table:table-cell>\Hnewline
+ </table:table-row></table:table>}%
+%
+ \ShowPar\par{\HCondtrue\noindent}%
+}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\endinput\empty\empty\empty\empty\empty\empty
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+
+
+
+
+
+
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ \ConfigureHinput{plain}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ \Configure{left}
+ {}
+ {\HCode{<\a:mathml mrow><\a:mathml mo>\expandafter
+ \ifx \csname \string#1:lr del\endcsname\relax #1\else
+ \csname \string#1:lr del\endcsname\fi
+ </\a:mathml mo\space><\a:mathml mrow>}}
+\Configure{right}
+ {\HCode{</\a:mathml mrow><\a:mathml mo>\expandafter
+ \ifx \csname \string#1:lr del\endcsname\relax #1\else
+ \csname \string#1:lr del\endcsname\fi
+ </\a:mathml mo>}}
+ {\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{<!--tex4ht:inline-->}\fi
+ \HCode{<text:p text:style-name="display-math">}\DviMath$$\DisplayMathtrue}
+ {$$\EndDviMath\HCode{</text:p>}\ShowPar\par
+ {\csname HCondtrue\endcsname\noindent}}
+ {}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\endinput\empty\empty\empty\empty\empty\empty
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+\endinput
+