summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/tex4ht/html-mml.4ht
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/generic/tex4ht/html-mml.4ht')
-rw-r--r--Master/texmf-dist/tex/generic/tex4ht/html-mml.4ht157
1 files changed, 131 insertions, 26 deletions
diff --git a/Master/texmf-dist/tex/generic/tex4ht/html-mml.4ht b/Master/texmf-dist/tex/generic/tex4ht/html-mml.4ht
index bacfcfb2717..be9209a2da8 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 2005-10-22-00:14 %
-% Copyright (C) 1999--2005 Eitan M. Gurari %
+% html-mml.4ht 2006-11-15-14:28 %
+% Copyright (C) 1999--2006 Eitan M. Gurari %
% %
% This work may be distributed and/or modified under the %
% conditions of the LaTeX Project Public License, either %
@@ -24,7 +24,7 @@
% gurari@cse.ohio-state.edu %
% http://www.cse.ohio-state.edu/~gurari %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\immediate\write-1{version 2005-10-22-00:14}
+\immediate\write-1{version 2006-11-15-14:28}
\exit:ifnot{amsmath,%
array,%
@@ -38,15 +38,21 @@ tex4ht}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{tex4ht}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- \def\mathml:DOCTYPE{PUBLIC
+ \:CheckOption{frames} \if:Option
+ \Configure{frames-altDOCTYPE}{\Configure{DOCTYPE}{\HCode
+ {<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 plus MathML 2.0//\expandafter
\ifx \csname a:dtd-lang\endcsname\relax EN\else
\csname a:dtd-lang\endcsname
\fi
"\Hnewline
"http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd"
+%
+ >\Hnewline
+}}
}
-\def\:temp{xhtml}
+ \else
+ \def\:temp{xhtml}
\ifx \:DTD\:temp
\Configure{DOCTYPE}{\HCode
{<!DOCTYPE html PUBLIC
@@ -61,23 +67,25 @@ tex4ht}
}}
\fi
+
+\fi
\Configure{halignTD} {}{}
{<}{\ifmathml \HCode{ \a:mathml columnalign="left"}\else
- \HCode{ align="left" style="white-space:nowrap;"}\fi}
+ \HCode{ style="text-align:left; white-space:nowrap;"}\fi}
{-}{\ifmathml \HCode{ \a:mathml columnalign="center"}\else
- \HCode{ align="center" style="white-space:nowrap;"}\fi}
+ \HCode{ style="text-align:center; white-space:nowrap;"}\fi}
{>}{\ifmathml \HCode{ \a:mathml columnalign="right"}\else
- \HCode{ align="right" style="white-space:nowrap;"}\fi}
+ \HCode{ style="text-align:right; white-space:nowrap;"}\fi}
{^}{\ifmathml \HCode{ \a:mathml rowalign="top"}\else
- \HCode{ valign="top" style="white-space:nowrap;"}\fi}
+ \HCode{ style="vertical-align:top; white-space:nowrap;"}\fi}
{=}{\ifmathml \HCode{ \a:mathml rowalign="baseline"}\else
- \HCode{ valign="baseline" style="white-space:nowrap;"}\fi}
+ \HCode{ style="vertical-align:baseline; white-space:nowrap;"}\fi}
{|}{\ifmathml \HCode{ \a:mathml rowalign="center"}\else
- \HCode{ valign="middle" style="white-space:nowrap;"}\fi}
+ \HCode{ style="vertical-align:middle; white-space:nowrap;"}\fi}
{_}{\ifmathml \HCode{ \a:mathml rowalign="bottom"}\else
- \HCode{ valign="bottom" style="white-space:nowrap;"}\fi}
+ \HCode{ style="vertical-align:bottom; white-space:nowrap;"}\fi}
{p}{\ifmathml \HCode{ \a:mathml columnalign="left"}\else
- \HCode{ align="left"}\fi}
+ \HCode{ style="text-align:left;"}\fi}
{}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -183,39 +191,48 @@ tex4ht}
\R:HA\r:HA\D:HA\d:HA
\:CheckOption{fonts} \if:Option
\Configure{texttt}
- {\ifmathml \Configure{@mtext}{\mml:class="texttt" mathvariant="monospace" }%
+ {\ifmathml \Configure{@mtext}{\mml:class="texttt"
+ mathvariant="monospace" }%
\else \HCode{<span class="texttt">}\fi}
{\ifmathml\else \HCode{</span>}\fi}
\Configure{textit}
- {\ifmathml \Configure{@mtext}{\mml:class="textit" mathvariant="italic" }%
+ {\ifmathml \Configure{@mtext}{\mml:class="textit"
+ mathvariant="italic" }%
\else \HCode{<span class="textit">}\fi}
{\ifmathml\else \HCode{</span>}\fi}
\Configure{textrm}
- {\ifmathml \Configure{@mtext}{ \mml:class="textrm" mathvariant="normal" }%
+ {\ifmathml \Configure{@mtext}{ \mml:class="textrm"
+ mathvariant="normal" }%
\else \HCode{<span class="textrm">}\fi}
{\ifmathml\else \HCode{</span>}\fi}
\Configure{textup}
- {\ifmathml \Configure{@mtext}{ \mml:class="textup" mathvariant="normal" }%
+ {\ifmathml \Configure{@mtext}{ \mml:class="textup"
+ mathvariant="normal" }%
\else \HCode{<span class="textup">}\fi}
{\ifmathml\else \HCode{</span>}\fi}
\Configure{textsl}
- {\ifmathml \Configure{@mtext}{ \mml:class="textst" mathvariant="italic" }%
+ {\ifmathml \Configure{@mtext}{ \mml:class="textst"
+ mathvariant="italic" }%
\else \HCode{<span class="textsl">}\fi}
{\ifmathml\else \HCode{</span>}\fi}
\Configure{textsf}
- {\ifmathml \Configure{@mtext}{ \mml:class="textsf" mathvariant="sans-serif" }%
+ {\ifmathml \Configure{@mtext}{ \mml:class="textsf"
+ mathvariant="sans-serif" }%
\else \HCode{<span class="textsf">}\fi}
{\ifmathml\else \HCode{</span>}\fi}
\Configure{textbf}
- {\ifmathml \Configure{@mtext}{ \mml:class="textbf" mathvariant="bold" }%
+ {\ifmathml \Configure{@mtext}{ \mml:class="textbf"
+ mathvariant="bold" }%
\else \HCode{<span class="textbf">}\fi}
{\ifmathml\else \HCode{</span>}\fi}
\Configure{textsc}
- {\ifmathml \Configure{@mtext}{ \mml:class="textsc" mathvariant="normal" }%
+ {\ifmathml \Configure{@mtext}{ \mml:class="textsc"
+ mathvariant="normal" }%
\else \HCode{<span class="textsc">}\fi}
{\ifmathml\else \HCode{</span>}\fi}
\Configure{emph}
- {\ifmathml \Configure{@mtext}{ \mml:class="emph" mathvariant="italic" }%
+ {\ifmathml \Configure{@mtext}{ \mml:class="emph"
+ mathvariant="italic" }%
\else \HCode{<span class="emph">}\fi}
{\ifmathml\else \HCode{</span>}\fi}
\fi
@@ -392,6 +409,22 @@ accent="true">&\#x0332;</\a:mathml mo></\a:mathml munder>}%
{\ifvmode \IgnorePar\fi\EndP \HCode{</td><td class="eq-no">}}
{\ifvmode \IgnorePar\fi\EndP \HCode{</td></tr></table>}%
\IgnoreIndent\par}
+\Configure{equation*}
+ {\ifvmode \IgnorePar\fi \EndP
+ \HCode{<table class="equation-star"><tr><td>}%
+ \Configure{$$}{}{}{}%
+\Configure{gather}
+ {\Configure{$$}
+ {\Configure{@math}{\mml:class="equation"}\IgnorePar\EndP\DviMath}
+ {\EndDviMath\EndP}%
+ {}%
+ \IgnorePar
+ }{}{}{}{}{}
+%
+ \IgnorePar
+ }
+ {\ifvmode \IgnorePar\fi\EndP \HCode{</td></tr></table>}%
+ \IgnoreIndent\par}
\else
\Configure{equation}
@@ -423,6 +456,32 @@ accent="true">&\#x0332;</\a:mathml mo></\a:mathml munder>}%
{\ifvmode \IgnorePar\fi\EndP
\HCode{</td></tr></table>}%
\IgnoreIndent\par}
+\Configure{equation*}
+ {\ifvmode \IgnorePar\fi \EndP
+ \HCode{<table class="equation-star"><tr><td>}%
+ \Configure{gather}
+ {\HCode{<\a:mathml mtable\Hnewline
+ \mml:class="equation"><\a:mathml mtr><\a:mathml mtd>}\IgnorePar
+ \Configure{$$}
+ {\Configure{@math}{\a:mathml display="block"
+%
+ \mml:class="equation"}\IgnorePar\EndP\DviMath}
+ {\EndDviMath\EndP}
+ {\DisplayMathtrue}%
+}
+ {\HCode{</\a:mathml mtd></\a:mathml mtr></\a:mathml mtable>}}
+ {}
+ {}
+ {\ifnum\HCol=2 \IgnorePar
+ \HCode{</\a:mathml mtd><\a:mathml mtd>}\fi }
+ {}
+%
+%
+ \IgnorePar
+ }
+ {\ifvmode \IgnorePar\fi\EndP
+ \HCode{</td></tr></table>}%
+ \IgnoreIndent\par}
\fi
\else
@@ -459,6 +518,36 @@ accent="true">&\#x0332;</\a:mathml mo></\a:mathml munder>}%
}
{\ifvmode \IgnorePar\fi\EndP \HCode{</td></tr></table>}%
\ShowPar\IgnoreIndent\par}
+\Configure{equation*}
+ {\ifvmode \IgnorePar\fi\EndP
+ \HCode{<table class="equation-star"><tr><td>}%
+ \Configure{gather}
+ {\HCode{<\a:mathml mtable\Hnewline
+ \mml:class="equation"><\a:mathml mtr><\a:mathml mtd>}\IgnorePar
+ \Configure{$$}
+ {\Configure{@math}{\a:mathml display="block"
+%
+ \mml:class="equation"}\IgnorePar\EndP\DviMath}
+ {\EndDviMath\EndP}
+ {\DisplayMathtrue}%
+}
+ {\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}{\a:mathml display="block"
+%
+ \mml:class="equation"}\IgnorePar\EndP\DviMath}
+ {\EndDviMath\EndP}
+ {\DisplayMathtrue}%
+%
+ }
+ {\ifvmode \IgnorePar\fi\EndP \HCode{</td></tr></table>}%
+ \ShowPar\IgnoreIndent\par}
\fi
\Configure{@begin}
@@ -487,6 +576,7 @@ accent="true">&\#x0332;</\a:mathml mo></\a:mathml munder>}%
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{plain}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -530,6 +620,10 @@ accent="true">&\#x0332;</\a:mathml mo></\a:mathml munder>}%
+
+
+
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{array}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -616,9 +710,6 @@ accent="true">&\#x0332;</\a:mathml mo></\a:mathml munder>}%
-
-
-
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{rlbabel}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -666,7 +757,6 @@ accent="true">&\#x0332;</\a:mathml mo></\a:mathml munder>}%
-
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{frenchb}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -893,5 +983,20 @@ accent="true">&\#x0332;</\a:mathml mo></\a:mathml munder>}%
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\endinput