diff options
Diffstat (limited to 'Master/texmf-dist/tex/generic/tex4ht/ooffice-mml.4ht')
-rw-r--r-- | Master/texmf-dist/tex/generic/tex4ht/ooffice-mml.4ht | 269 |
1 files changed, 82 insertions, 187 deletions
diff --git a/Master/texmf-dist/tex/generic/tex4ht/ooffice-mml.4ht b/Master/texmf-dist/tex/generic/tex4ht/ooffice-mml.4ht index 97a61a9a840..4a33b423236 100644 --- a/Master/texmf-dist/tex/generic/tex4ht/ooffice-mml.4ht +++ b/Master/texmf-dist/tex/generic/tex4ht/ooffice-mml.4ht @@ -1,5 +1,5 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -% ooffice-mml.4ht 2008-02-20-21:45 % +% ooffice-mml.4ht 2008-06-19-01:44 % % Copyright (C) 2001--2008 Maarten Wisse % % James Naughton % % Eitan M. Gurari % @@ -31,7 +31,7 @@ % gurari@cse.ohio-state.edu % % http://www.cse.ohio-state.edu/~gurari % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -\immediate\write-1{version 2008-02-20-21:45} +\immediate\write-1{version 2008-06-19-01:44} \exit:ifnot{Preamble,% amsmath,% array,% @@ -58,136 +58,7 @@ tex4ht} 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{<!--l. \the\inputlineno-->% -}\IgnoreRule - \gHAdvance\math:obj by 1 -\NextFile{\jobname-m\math:obj -.4om}% -\bgroup - \HCode{<draw:object\Hnewline - draw:style-name="mml-inline" - 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 -/"/> -}% - \:CheckOption{oo1}\if:Option - \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} -}% -\else - \Configure{DOCTYPE}{\HCode{<!DOCTYPE \a:mathml math PUBLIC - "-//W3C//DTD MathML 2.0//\expandafter -\ifx \csname a:dtd-lang\endcsname\relax EN\else - \csname a:dtd-lang\endcsname -\fi -" - "math.dtd">\Hnewline} -}% -\fi -\:CheckOption{-xtpipes} \if:Option - \Log:Note{Use the `-xtpipes' command line option to - avoid xtpipes post processing} -\else - \:CheckOption{oo1}\if:Option - \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} -% - \HCode{<?xtpipes file="oo-math.4xt" ?>\Hnewline -<!-- \jobname-m\math:obj -\space - by TeX4ht from \jobname.tex line \the\inputlineno\space - 2008-02-20-21:45\Hnewline - (http://www.cse.ohio-state.edu/\string ~gurari/TeX4ht/) - -->\Hnewline -}% - }% - \else - \Configure{DOCTYPE}{%% - \HCode{<!DOCTYPE \a:mathml math PUBLIC - "-//W3C//DTD MathML 2.0//\expandafter -\ifx \csname a:dtd-lang\endcsname\relax EN\else - \csname a:dtd-lang\endcsname -\fi -" - "math.dtd">\Hnewline} -% - \HCode{<?xtpipes file="oo-math.4xt" ?>\Hnewline -<!-- \jobname-m\math:obj -\space - by TeX4ht from \jobname.tex line \the\inputlineno\space - 2008-02-20-21:45\Hnewline - (http://www.cse.ohio-state.edu/\string ~gurari/TeX4ht/) - -->\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{<!--tex4ht:inline-->}\fi - \HCode{<text:p text:style-name="display-math">}% - \CenteredFrametrue \DviMath \CenteredFramefalse } - {\EndDviMath\HCode{</text:p>}\ShowPar\par - {\csname HCondtrue\endcsname\noindent}} - {\DisplayMathtrue} - -\else - \HAssign\math:obj=0 +\HAssign\math:obj=0 \Configure{DviMath} {\a:DviMathML \mathmltrue \ifOption{mml-fonts}{}{\NoFonts}% @@ -201,7 +72,7 @@ tex4ht} <draw:frame draw:style-name="mml-display" draw:name="mobj-\math:obj"\Hnewline - text:anchor-type="paragraph" +\ifTab\else text:anchor-type="paragraph" \fi draw:z-index="0" >% <draw:object\Hnewline @@ -242,17 +113,7 @@ tex4ht} manifest:full-path="\jobname-m\math:obj /"/> }% - \:CheckOption{oo1}\if:Option - \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} -}% -\else - \Configure{DOCTYPE}{\HCode{<!DOCTYPE \a:mathml math PUBLIC + \Configure{DOCTYPE}{\HCode{<!DOCTYPE \a:mathml math PUBLIC "-//W3C//DTD MathML 2.0//\expandafter \ifx \csname a:dtd-lang\endcsname\relax EN\else \csname a:dtd-lang\endcsname @@ -260,31 +121,10 @@ tex4ht} " "math.dtd">\Hnewline} }% -\fi \:CheckOption{-xtpipes} \if:Option \Log:Note{Use the `-xtpipes' command line option to avoid xtpipes post processing} \else - \:CheckOption{oo1}\if:Option - \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} -% - \HCode{<?xtpipes file="oo-math.4xt" ?>\Hnewline -<!-- \jobname-m\math:obj -\space - by TeX4ht from \jobname.tex line \the\inputlineno\space - 2008-02-20-21:45\Hnewline - (http://www.cse.ohio-state.edu/\string ~gurari/TeX4ht/) - -->\Hnewline -}% - }% - \else \Configure{DOCTYPE}{%% \HCode{<!DOCTYPE \a:mathml math PUBLIC "-//W3C//DTD MathML 2.0//\expandafter @@ -298,12 +138,11 @@ tex4ht} <!-- \jobname-m\math:obj \space by TeX4ht from \jobname.tex line \the\inputlineno\space - 2008-02-20-21:45\Hnewline + 2008-06-19-01:44\Hnewline (http://www.cse.ohio-state.edu/\string ~gurari/TeX4ht/) -->\Hnewline }% }% - \fi \fi % \Configure{HTML}{}{\noindent}% @@ -336,7 +175,6 @@ tex4ht} {\csname HCondtrue\endcsname\noindent}} {\DisplayMathtrue} -\fi \Configure{halignTD} {}{} {<}{\ifmathml \HCode{ columnalign="left"}\else L\fi} @@ -380,18 +218,7 @@ tex4ht} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ConfigureHinput{latex} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - \:CheckOption{oo1}\if:Option - \OOstyles{\Hnewline - <style:style style:name="mml-inline" - style:family="graphic" - style:parent-style-name="Formula" - >\Hnewline - <style:properties style:vertical-pos="middle" - style:vertical-rel="text"/>\Hnewline - </style:style>\Hnewline} - -\else - \OOstyles{\Hnewline + \OOstyles{\Hnewline <style:style style:name="mml-inline" style:family="graphic" style:parent-style-name="Formula" @@ -418,7 +245,6 @@ tex4ht} </style:style>\Hnewline } -\fi \OOstyles{\Hnewline <style:style style:name="Formula" style:family="graphic"> @@ -481,7 +307,45 @@ tex4ht} \else </tr>% \fi} % -\Configure{equation} +\:CheckOption{tab-eq}\if:Option + \Configure{equation} + {\IgnorePar\ifvmode\else \HCode{<!--tex4ht:inline-->}\fi + \EndP \HCode{<text:p text:style-name="equ-p-tab"><text:tab/>}% + \Tabtrue + \Configure{$$} + {\Configure{@math}{}\IgnorePar\EndP + \CenteredFrametrue \DviMath \CenteredFramefalse } + {\EndDviMath\EndP}{}% +% + \IgnorePar} + {\Tabfalse \ifvmode \IgnorePar\fi\EndP \HCode{<text:tab/>}} + {\HCode{</text:p>}\ShowPar\par{\HCondtrue\noindent}% +% +} +\OOstyles{% +<style:style + style:name="equ-p-tab" + style:family="paragraph" + style:parent-style-name="Standard">\Hnewline + <style:paragraph-properties + fo:text-align="center" + style:justify-single-word="false">\Hnewline + <style:tab-stops> + <style:tab-stop + style:position="7.5cm" + style:type="center"/> + <style:tab-stop + style:position="17cm" + style:type="right"/> + </style:tab-stops>\Hnewline + </style:paragraph-properties> +</style:style>\Hnewline +} + +\else + \Log:Note{for tab-based layoutof equation environment + use the command line option `tab-eq'} + \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 @@ -506,6 +370,8 @@ tex4ht} \ShowPar\par{\HCondtrue\noindent}% % } + +\fi \OOstyles{% <style:style style:name="equ-p" @@ -635,6 +501,31 @@ accent="true">&\#x0332;</\a:mathml mo></\a:mathml munder>}% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ConfigureHinput{amsmath} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \:CheckOption{tab-eq}\if:Option + \Configure{equation} + {\IgnorePar\ifvmode\else \HCode{<!--tex4ht:inline-->}\fi + \EndP \HCode{<text:p text:style-name="equ-p-tab"><text:tab/>}% + \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{<text:tab/>}} + {\HCode{</text:p>}\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{<table:table table:style-name="equation">% @@ -670,6 +561,8 @@ accent="true">&\#x0332;</\a:mathml mo></\a:mathml munder>}% % \ShowPar\par{\HCondtrue\noindent}% } + +\fi \Configure{equation*} {\ifvmode \IgnorePar\fi \EndP \HCode{<text:p text:style-name="display-math">}% @@ -775,6 +668,7 @@ accent="true">&\#x0332;</\a:mathml mo></\a:mathml munder>}% + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ConfigureHinput{array} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -854,11 +748,6 @@ accent="true">&\#x0332;</\a:mathml mo></\a:mathml munder>}% - - - - - %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ConfigureHinput{rlbabel} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -1124,5 +1013,11 @@ accent="true">&\#x0332;</\a:mathml mo></\a:mathml munder>}% + + + + + + \endinput |