diff options
author | Karl Berry <karl@freefriends.org> | 2008-05-10 00:31:48 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2008-05-10 00:31:48 +0000 |
commit | 3affd633834494c279f96078e95831935ea51ca7 (patch) | |
tree | d18cbef6ade390df34099bff78c593f00e9d7971 /Master/texmf-dist/tex/generic/tex4ht/html-mml.4ht | |
parent | 78d169458ffb8d121d56a1345471b5dbe3f17a2a (diff) |
tex4ht-1.0.2008_05_07_2048
git-svn-id: svn://tug.org/texlive/trunk@8000 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/generic/tex4ht/html-mml.4ht')
-rw-r--r-- | Master/texmf-dist/tex/generic/tex4ht/html-mml.4ht | 118 |
1 files changed, 104 insertions, 14 deletions
diff --git a/Master/texmf-dist/tex/generic/tex4ht/html-mml.4ht b/Master/texmf-dist/tex/generic/tex4ht/html-mml.4ht index e7f8a68c2fc..a1c6f81b87b 100644 --- a/Master/texmf-dist/tex/generic/tex4ht/html-mml.4ht +++ b/Master/texmf-dist/tex/generic/tex4ht/html-mml.4ht @@ -1,6 +1,6 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -% html-mml.4ht 2006-12-05-22:22 % -% Copyright (C) 1999--2006 Eitan M. Gurari % +% html-mml.4ht 2007-12-02-18:44 % +% Copyright (C) 1999--2007 Eitan M. Gurari % % % % This work may be distributed and/or modified under the % % conditions of the LaTeX Project Public License, either % @@ -24,10 +24,11 @@ % gurari@cse.ohio-state.edu % % http://www.cse.ohio-state.edu/~gurari % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -\immediate\write-1{version 2006-12-05-22:22} +\immediate\write-1{version 2007-12-02-18:44} \exit:ifnot{amsmath,% array,% +color,% frenchb,% latex,% plain,% @@ -69,6 +70,23 @@ tex4ht} \fi \fi +\Configure{DviMath} + {\a:DviMathML \mathmltrue + \ifOption{mml-fonts}{\Configure{htf}{0}{+}{<mstyle\Hnewline + class="}{\%s}{-\%s}{x-x-\%d}{}{">}{</mstyle>}% +}{\NoFonts}% + \IgnoreRule \HCode{<!--l. + \the\inputlineno-->}\Tg<\a:mathml math\Hnewline + \csname a:math-xmlns\endcsname \Hnewline \a:@math>\a:math + \edef\sv:ignore{\if:nopar + \noexpand\IgnorePar\else \noexpand\ShowPar\fi}% +\IgnorePar} + {\Tg</\a:mathml math>\EndIgnoreRule + \ifOption{mml-fonts}{\Configure{htf}{0}{+}{<span\Hnewline + class="}{\%s}{-\%s}{x-x-\%d}{}{">}{</span>}% +}{\EndNoFonts}% + \mathmlfalse \b:DviMathML \sv:ignore +} \Configure{halignTD} {}{} {<}{\ifmathml \HCode{ \a:mathml columnalign="left"}\else \HCode{ style="text-align:left; white-space:nowrap;"}\fi} @@ -105,7 +123,8 @@ tex4ht} \EndP \HCode{<table class="equation"><tr><td>}\IgnorePar \Configure{$$} - {\Configure{@math}{\a:mathml display="block" + {\Configure{@math}{%\a:mathml + display="block" % \mml:class="equation"}\IgnorePar\EndP\DviMath} {\EndDviMath\EndP} @@ -153,7 +172,7 @@ tex4ht} mtext \mml:class="newline">}% \ht:special{t4ht@,&\#x00A0;}% % - \else \Tg<br class="newline" />\fi} + \else \Tg<br\Hnewline class="newline" />\fi} \Configure{mathml[]} {\edef\MathPar{\ifvmode par-\fi}\IgnorePar\endgraf\EndP \HCode{<div class="\MathPar math-display">}} @@ -242,6 +261,11 @@ tex4ht} \Css{math .textsf { font-family: sans-serif; }} \Css{math .textbf { font-weight: bold; }} \Configure{multicolumn} + {\let\sv:VBorder\VBorder + \let\VBorder\empty + \Configure{VBorder}{}{}{}{}% + } + {\let\VBorder\sv:VBorder} {\ifmmode \HCode{<\a:mathml mrow\Hnewline \mml:class="multicolumn}% {\Configure{halignTD} {}{} {<}{\HCode{-left}} @@ -384,9 +408,6 @@ accent="true">&\#x0332;</\a:mathml mo></\a:mathml munder>}% - - - %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ConfigureHinput{amsmath} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -434,7 +455,8 @@ accent="true">&\#x0332;</\a:mathml mo></\a:mathml munder>}% {\HCode{<\a:mathml mtable\Hnewline \mml:class="equation"><\a:mathml mtr><\a:mathml mtd>}\IgnorePar \Configure{$$} - {\Configure{@math}{\a:mathml display="block" + {\Configure{@math}{%\a:mathml + display="block" % \mml:class="equation"}\IgnorePar\EndP\DviMath} {\EndDviMath\EndP} @@ -463,7 +485,8 @@ accent="true">&\#x0332;</\a:mathml mo></\a:mathml munder>}% {\HCode{<\a:mathml mtable\Hnewline \mml:class="equation"><\a:mathml mtr><\a:mathml mtd>}\IgnorePar \Configure{$$} - {\Configure{@math}{\a:mathml display="block" + {\Configure{@math}{%\a:mathml + display="block" % \mml:class="equation"}\IgnorePar\EndP\DviMath} {\EndDviMath\EndP} @@ -492,7 +515,8 @@ accent="true">&\#x0332;</\a:mathml mo></\a:mathml munder>}% {\HCode{<\a:mathml mtable\Hnewline \mml:class="equation"><\a:mathml mtr><\a:mathml mtd>}\IgnorePar \Configure{$$} - {\Configure{@math}{\a:mathml display="block" + {\Configure{@math}{%\a:mathml + display="block" % \mml:class="equation"}\IgnorePar\EndP\DviMath} {\EndDviMath\EndP} @@ -506,7 +530,8 @@ accent="true">&\#x0332;</\a:mathml mo></\a:mathml munder>}% {} % \Configure{$$} - {\Configure{@math}{\a:mathml display="block" + {\Configure{@math}{%\a:mathml + display="block" % \mml:class="equation"}\IgnorePar\EndP\DviMath} {\EndDviMath\EndP} @@ -525,7 +550,8 @@ accent="true">&\#x0332;</\a:mathml mo></\a:mathml munder>}% {\HCode{<\a:mathml mtable\Hnewline \mml:class="equation"><\a:mathml mtr><\a:mathml mtd>}\IgnorePar \Configure{$$} - {\Configure{@math}{\a:mathml display="block" + {\Configure{@math}{%\a:mathml + display="block" % \mml:class="equation"}\IgnorePar\EndP\DviMath} {\EndDviMath\EndP} @@ -539,7 +565,8 @@ accent="true">&\#x0332;</\a:mathml mo></\a:mathml munder>}% {} % \Configure{$$} - {\Configure{@math}{\a:mathml display="block" + {\Configure{@math}{%\a:mathml + display="block" % \mml:class="equation"}\IgnorePar\EndP\DviMath} {\EndDviMath\EndP} @@ -624,6 +651,9 @@ accent="true">&\#x0332;</\a:mathml mo></\a:mathml munder>}% + + + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ConfigureHinput{array} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -633,6 +663,11 @@ accent="true">&\#x0332;</\a:mathml mo></\a:mathml munder>}% {\egroup \PopStack\Col:Marg\AllColMargins} {}{} \Configure{multicolumn} + {\let\sv:VBorder\VBorder + \let\VBorder\empty + \Configure{VBorder}{}{}{}{}% + } + {\let\VBorder\sv:VBorder} {\ifmmode \HCode{<\a:mathml mrow\Hnewline \mml:class="multicolumn}% {\Configure{halignTD} {}{} {<}{\HCode{-left}} @@ -674,6 +709,44 @@ accent="true">&\#x0332;</\a:mathml mo></\a:mathml munder>}% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \ConfigureHinput{color} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \Configure{textcolor} + {\gHAdvance\textcolorN by 1 + \Configure{color}% + {\Configure{SetHColor} + {\Css{.textcolor\textcolorN{color:\HColor}}}}% + \HCode{<\ifmathml mstyle\else span\fi + \space id="textcolor\textcolorN">}}% + {\HCode{</\ifmathml mstyle\else span\fi>}} +\Configure{textcolor} + {\ifmathml + \Configure{color}% + {\Configure{SetHColor} + {\HCode{<mstyle mathcolor="\HColor">}}}% + \else + \gHAdvance\textcolorN by 1 + \Configure{color}% + {\Configure{SetHColor} + {\Css{\#textcolor\textcolorN{color:\HColor}}}}% + \HCode{<span id="textcolor\textcolorN">}% + \fi + }% + {\HCode{</\ifmathml mstyle\else span\fi>}} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\endinput\empty\empty\empty\empty\empty\empty +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + + + + + + + @@ -998,5 +1071,22 @@ accent="true">&\#x0332;</\a:mathml mo></\a:mathml munder>}% + + + + + + + + + + + + + + + + + \endinput |