summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/tex4ht/html4-math.4ht
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/generic/tex4ht/html4-math.4ht')
-rw-r--r--Master/texmf-dist/tex/generic/tex4ht/html4-math.4ht178
1 files changed, 101 insertions, 77 deletions
diff --git a/Master/texmf-dist/tex/generic/tex4ht/html4-math.4ht b/Master/texmf-dist/tex/generic/tex4ht/html4-math.4ht
index ad995b505e3..f750976dc88 100644
--- a/Master/texmf-dist/tex/generic/tex4ht/html4-math.4ht
+++ b/Master/texmf-dist/tex/generic/tex4ht/html4-math.4ht
@@ -1,6 +1,6 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-% html4-math.4ht 2005-10-22-16:24 %
-% Copyright (C) 1999--2005 Eitan M. Gurari %
+% html4-math.4ht 2006-12-04-10:05 %
+% 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-16:24}
+\immediate\write-1{version 2006-12-04-10:05}
\exit:ifnot{amsfonts,%
amsmath,%
@@ -71,8 +71,6 @@ th4}
\Configure{PicMath}{}{}{}{ class="math" }
\Css{img.math{vertical-align:middle;}}
-\NewConfigure{@neq}{1}
-\Configure{@neq}{align="middle"}
\NewConfigure{@buildrelover}{1}
\Configure{@buildrelover}{align="middle"}
\NewConfigure{@doteq}{1}
@@ -118,43 +116,28 @@ th4}
}
\Configure{@TITLE}{\Configure{()}{$}{$}}
\:CheckOption{pic-equation}\if:Option
-% \ConfigureEnv{equation}
-% {\relax\ifmmode\else\par\fi\:xhtml{\IgnorePar\EndP}%
-% \HCode{<center class="equation"><table class="equation"\Hnewline
-% border="0" cellpadding="0" cellspacing="15"><tr><td>}}
-% {\:xhtml{\IgnorePar\EndP}%
-% \HCode{</td></tr></table></center>}\IgnorePar
-% \ifmmode\else\par\fi}
-% {}{}
\Configure{equation}
{\:xhtml{\ifvmode \IgnorePar\fi\EndP}%
- \HCode{<\tbl:XV{equation}><tr><td>}\IgnorePar
+ \HCode{<table\Hnewline class="equation"><tr><td>}\IgnorePar
\Configure{$$}{\PicDisplay}{\EndPicDisplay}
{\everymath{}\everydisplay{}}
}
- {\ifvmode \IgnorePar\fi\HCode{</td><td width="5\%">}}
+ {\ifvmode \IgnorePar\fi\HCode{</td><td class="equation-label">}}
{\end:TTT \ShowPar \par{\HCondtrue\noindent}%
}
\else
-% \ConfigureEnv{equation}
-% {\relax\ifmmode\else\par\fi\:xhtml{\IgnorePar\EndP}%
-% \HCode{<center class="equation"><table class="equation"\Hnewline
-% border="0" cellpadding="0" cellspacing="15"><tr><td>}%
-% }
-% {\:xhtml{\IgnorePar\EndP}%
-% \HCode{</td></tr></table></center>}\IgnorePar
-% \ifmmode\else\par\fi}
-% {}{}
\Configure{equation}
{\ifmmode\else\par \IgnorePar\fi \EndP
- \HCode{<\tbl:XV{equation}><tr><td>}\IgnorePar
+ \HCode{<table\Hnewline class="equation"><tr><td>}\IgnorePar
}
- {\ifvmode \IgnorePar\fi\EndP\HCode{</td><td width="5\%">}}
+ {\ifvmode \IgnorePar\fi\EndP\HCode{</td><td class="equation-label">}}
{\end:TTT\ifmmode\else \ShowPar \par{\HCondtrue\noindent}%
\fi}
\fi
+\Css{table.equation {width:100\%;}}
\Css{.equation td{text-align:center; }}
\Css{td.equation { margin-top:1em; margin-bottom:1em; } }
+\Css{td.equation-label { width:5\%; text-align:center; }}
\NewConfigure{@root}{1}
\Configure{@root}{align="middle" }
@@ -174,13 +157,13 @@ th4}
\Configure{eqnarray}{\HCode{<table\Hnewline
class="eqnarray\ifx \@seqncr\@eqncr\else-star\fi ">}}
{\HCode{</table>}}
- {\HCode{<tr valign="middle"
+ {\HCode{<tr style="vertical-align:middle;"
class="eqnarray\ifx \@seqncr\@eqncr\else-star\fi">}}
{\HCode{</tr>}}
{\HCode{\ifnum \HCol=4 <td\Hnewline width="10"
class="eqnarray4"></td>\fi
- <td\Hnewline align="\ifcase\HCol \or right\or center\or
- left\else right\fi" style="white-space:nowrap;"\Hnewline
+ <td\Hnewline style="text-align:\ifcase\HCol \or right\or center\or
+ left\else right\fi ; white-space:nowrap;"\Hnewline
class="eqnarray\HCol">}}
{\EndP\HCode{</td>}}
\Css{td.eqnarray4 { width:5\%; white-space: normal; }}
@@ -225,7 +208,7 @@ th4}
\special{t4ht*=>&gt;}%
\HCode{\the\tmp:toks}%
\special{t4ht*=}%
-]{ align="middle"}$#1$\EndPicture$}
+]{ style="text-align:middle"}$#1$\EndPicture$}
\def\Alt:Display#1$${\tmp:toks{$$#1$$}%
\Picture*[\special{t4ht*=&&amp;}%
\special{t4ht*="&quot;}%
@@ -241,7 +224,7 @@ th4}
\special{t4ht*=>&gt;}%
\HCode{\the\tmp:toks}%
\special{t4ht*=}%
-]{ align="middle"}$#1$\EndPicture}
+]{ style="text-align:middle"}$#1$\EndPicture}
\def\Alt:lDisplay#1\]{\tmp:toks{\[#1\]}%
\Picture*[\special{t4ht*=&&amp;}%
\special{t4ht*="&quot;}%
@@ -287,14 +270,17 @@ th4}
{\ifvmode
\def\end:pmatrix{\IgnorePar\HCode{</div>}\end:TTT}%
\:xhtml{\IgnorePar\EndP}\HCode
- {<\tbl:XV{pmatrix}><tr><td><div class="pmatrix"\Hnewline>}%
+ {<table\Hnewline class="pmatrix"><tr><td><div
+ class="pmatrix"\Hnewline>}%
\else \HCode{<span class="pmatrix">}%
\def \end:pmatrix{\HCode{</span>}}%
\fi}
{\end:pmatrix}
\Css{div.pmatrix {text-align:center;}}
+\Css{table.pmatrix {width:100\%;}}
\Configure{mathellipsis} {\ht:special{t4ht@+\string&{35}x2026{59}}x}
+\Configure{hbar} {\ht:special{t4ht@+\string&{35}x210F{59}}x}
\:CheckOption{pic-array} \if:Option
\ConfigureEnv{array}
@@ -322,13 +308,15 @@ th4}
{\ifvmode
\def\end:pmatrix{\IgnorePar\HCode{</div>}\end:TTT}%
\:xhtml{\IgnorePar\EndP}\HCode
- {<\tbl:XV{pmatrix}><tr><td><div class="pmatrix"\Hnewline>}%
+ {<table\Hnewline class="pmatrix"><tr><td><div
+ class="pmatrix"\Hnewline>}%
\else \HCode{<span class="pmatrix">}%
\def \end:pmatrix{\HCode{</span>}}%
\fi}
{\end:pmatrix}
\Css{span.pmatrix img{vertical-align:middle;}}
\Css{div.pmatrix {text-align:center;}}
+\Css{table.pmatrix {width:100\%;}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -348,30 +336,30 @@ th4}
\else
\Configure{QATOP}
- {\Picture+{ align="middle"}\bgroup} {}
+ {\Picture+{ style="text-align:middle"}\bgroup} {}
{} {\egroup\EndPicture}
\Configure{QDATOP}
- {\Picture+{ align="middle"}\bgroup} {}
+ {\Picture+{ style="text-align:middle"}\bgroup} {}
{} {\egroup\EndPicture}
\Configure{QTATOP}
- {\Picture+{ align="middle"}\bgroup} {}
+ {\Picture+{ style="text-align:middle"}\bgroup} {}
{} {\egroup\EndPicture}
\ifx \@msidraft\:Undef
\Configure{dfrac}
- {\Picture+{ align="middle"}\bgroup} {}
+ {\Picture+{ style="text-align:middle"}\bgroup} {}
{} {\egroup\EndPicture}
\Configure{tfrac}
- {\Picture+{ align="middle"}\bgroup} {}
+ {\Picture+{ style="text-align:middle"}\bgroup} {}
{} {\egroup\EndPicture}
\Configure{binom}
- {\Picture+{ align="middle"}\bgroup} {}
+ {\Picture+{ style="text-align:middle"}\bgroup} {}
{} {\egroup\EndPicture}
\Configure{tbinom}
- {\Picture+{ align="middle"}\bgroup} {}
+ {\Picture+{ style="text-align:middle"}\bgroup} {}
{} {\egroup\EndPicture}
\Configure{dbinom}
- {\Picture+{ align="middle"}\bgroup} {}
+ {\Picture+{ style="text-align:middle"}\bgroup} {}
{} {\egroup\EndPicture}
\fi \fi
@@ -411,7 +399,7 @@ th4}
\Configure{longmapsto} {\pic:sym{longmapsto}}
\Configure{mapsto} {\pic:sym{mapsto}}
\Configure{models} {\pic:sym{models}}
-\Configure{neq} {\pic:sym{neq}}
+\Configure{neq} {\ht:special{t4ht@+\string&{35}x2260{59}}x}
\Configure{notin} {\pic:sym{notin}}
\Configure{vdots} {\pic:sym{vdots}}
\Configure{angle} {\pic:sym{angle}}
@@ -458,12 +446,27 @@ th4}
\Configure{doteq} {\pic:sym{tsint}}
\Configure{equation}
{\ifmmode\else\par \IgnorePar\fi \EndP
- \HCode{<\tbl:XV{equation}><tr><td>}\IgnorePar
+ \HCode{<table\Hnewline class="equation"><tr><td>}\IgnorePar
+ }
+ {\ifvmode \IgnorePar\fi\EndP\HCode{</td><td class="equation-label">}}
+ {\end:TTT\ifmmode\else \ShowPar \par{\HCondtrue\noindent}%
+\fi}
+\Configure{equation*}
+ {\ifmmode\else\par \IgnorePar\fi \EndP
+ \HCode{<table\Hnewline class="equation-star"><tr><td>}\IgnorePar
}
- {\ifvmode \IgnorePar\fi\EndP\HCode{</td><td width="5\%">}}
{\end:TTT\ifmmode\else \ShowPar \par{\HCondtrue\noindent}%
\fi}
\Css{.equation td{text-align:center; }}
+\Css{.equation-star td{text-align:center; }}
+\Css{table.equation-star { width:100\%; }}
+\Css{table.equation { width:100\%; }}
+\Configure{equation*}
+ {\ifmmode\else\par \IgnorePar\fi \EndP
+ \HCode{<table\Hnewline class="equation-star"><tr><td>}\IgnorePar
+ }
+ {\end:TTT\ifmmode\else \ShowPar \par{\HCondtrue\noindent}%
+\fi}
\Configure{substack}{\Picture+{}}{\EndPicture}
\def\m:env#1{\relax\ifmmode\else\par\fi\:xhtml{\IgnorePar\EndP}%
\HCode{<center class="#1"><table class="#1"\Hnewline
@@ -494,7 +497,7 @@ th4}
table.flalign, table.align-star, table.alignat-star,
table.xalignat-star, table.flalign-star
{width:100\%; white-space: nowrap;}}
-\Css{td.align-label { width:5\%; }}
+\Css{td.align-label { width:5\%; text-align:center; }}
\Css{td.align-odd { text-align:right; padding-right:0.3em;}}
\Css{td.align-even { text-align:left; padding-right:0.6em;}}
@@ -511,8 +514,8 @@ th4}
\Configure{split}
{\HCode{<table\Hnewline class="split"><tr><td>}}
{\ifvmode \IgnorePar\fi \HCode{</td></tr></table>}}
- {\HCode{<br\Hnewline class="split-tr"\xml:empty>}} {}
- {\HCode{<br\Hnewline class="split-td"\xml:empty>}} {}
+ {\HCode{<br\Hnewline class="split-tr" />}} {}
+ {\HCode{<br\Hnewline class="split-td" />}} {}
\Configure{smallmatrix}
{\:xhtml{\IgnorePar\EndP}%
\HCode{<table\Hnewline class="smallmatrix">}} {\HCode{</table>}}
@@ -525,10 +528,10 @@ th4}
\Configure{equations}{*}{}
\ConfigureEnv{multline}
{\:xhtml{\IgnorePar\EndP}%
- \HCode{<\tbl:XV{multline}><tr><td>}\Picture*{}\ExtractHLabel
+ \HCode{<table\Hnewline class="multline"><tr><td>}\Picture*{}\ExtractHLabel
}
{\EndPicture \ifx \:HLabel\:Undef \else
- \HCode{</td><td width="5\%">}\PutHLabel
+ \HCode{</td><td class="equation-label">}\PutHLabel
\global\let\:HLabel\:Undef
\fi
\end:TTT}
@@ -536,7 +539,7 @@ th4}
{}{}
\ConfigureEnv{multline*}
{\:xhtml{\IgnorePar\EndP}%
- \HCode{<\tbl:XV{multline-star}><tr><td>}\Picture*{}%
+ \HCode{<table\Hnewline class="multline-star"><tr><td>}\Picture*{}%
}
{\EndPicture \end:TTT}
{}{}
@@ -556,24 +559,26 @@ th4}
}}}
\def\PutHLabel{\:HLabel}
+\Css{table.multline, table.multline-star {width:100\%;}}
\ConfigureEnv{gather}
{\:xhtml{\IgnorePar\EndP}%
- \HCode{<\tbl:XV{gather}><tr><td
+ \HCode{<table\Hnewline class="gather"><tr><td
class="gather1">}\Picture*{}\ExtractHLabel
}
{\EndPicture \ifx \:HLabel\:Undef \else
- \HCode{</td><td width="5\%">}\PutHLabel
+ \HCode{</td><td class="equation-label">}\PutHLabel
\global\let\:HLabel\:Undef
\fi
\end:TTT}
{}{}
\ConfigureEnv{gather*}
{\:xhtml{\IgnorePar\EndP}%
- \HCode{<\tbl:XV{gather-star}><tr><td>}\Picture*{}%
+ \HCode{<table\Hnewline class="gather-star"><tr><td>}\Picture*{}%
}
{\EndPicture \end:TTT}
{}{}
\Css{td.gather-star, td.gather1 {text-align:center; }}
+\Css{table.gather, table.gather-star {width:100\%;}}
\Configure{overbrace} {}{\Picture+{}}{\EndPicture}
\Configure{underbrace} {}{\Picture+{}}{\EndPicture}
@@ -586,14 +591,15 @@ th4}
{\Picture+{}\bgroup} {}{}{}{}{\egroup\EndPicture}
\Configure{intertext}
{\IgnorePar \ifinalign@
- \HCode{</td></tr><tr><td colspan="\HCol"
+ \HCode{\ifnum \HRow>0 </td></tr>\fi<tr><td
+ colspan="\ifnum \HRow>0 \HCol\else 15\fi"
class="intertext">}%
\else \ifingather@
\HCode{<tr><td colspan="\HCol" class="intertext">}%
\fi\fi
}
{\ifvmode \IgnorePar \fi \EndP\ifinalign@
- \HCode{</td></tr><tr><td>}%
+ \HCode{</td></tr>\ifnum \HRow>0 <tr><td>\fi}%
\else \ifingather@
\HCode{</td></tr>}%
\fi\fi
@@ -701,7 +707,7 @@ th4}
{\bgroup\m:env{gathered}\Picture+{}}
{\EndPicture\endm:env\egroup}
{}{}{}{}
-\Configure{linebreak}{\HCode{<br\xml:empty>}}
+\Configure{linebreak}{\HCode{<br />}}
\def\m:env#1{\relax\ifmmode\else\par\fi\:xhtml{\IgnorePar\EndP}%
\HCode{<center class="#1"><table class="#1"\Hnewline
border="0" cellpadding="0" cellspacing="15"><tr><td>}}
@@ -754,13 +760,13 @@ th4}
{\bgroup\m:env{gather}\Picture+{}}
{\EndPicture\endm:env\egroup}
{}{} {}{}
-\Configure{frac}{\Picture+{ align="middle"}}{\EndPicture}
-\Configure{dfrac}{\Picture+{ align="middle"}}{\EndPicture}
-\Configure{tfrac}{\Picture+{ align="middle"}}{\EndPicture}
-\Configure{binom}{\Picture+{ align="middle"}}{\EndPicture}
-\Configure{dbinom}{\Picture+{ align="middle"}}{\EndPicture}
-\Configure{tbinom}{\Picture+{ align="middle"}}{\EndPicture}
-\Configure{boxed}{\Picture+{ align="middle"}}{\EndPicture}
+\Configure{frac}{\Picture+{ style="text-align:middle"}}{\EndPicture}
+\Configure{dfrac}{\Picture+{ style="text-align:middle"}}{\EndPicture}
+\Configure{tfrac}{\Picture+{ style="text-align:middle"}}{\EndPicture}
+\Configure{binom}{\Picture+{ style="text-align:middle"}}{\EndPicture}
+\Configure{dbinom}{\Picture+{ style="text-align:middle"}}{\EndPicture}
+\Configure{tbinom}{\Picture+{ style="text-align:middle"}}{\EndPicture}
+\Configure{boxed}{\Picture+{ style="text-align:middle"}}{\EndPicture}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -771,6 +777,7 @@ th4}
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{plain}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -793,7 +800,7 @@ th4}
\special{t4ht*=>&gt;}%
\HCode{\the\tmp:toks}%
\special{t4ht*=}%
-]{ align="middle"}$#1$\EndPicture$}
+]{ style="text-align:middle"}$#1$\EndPicture$}
\def\Alt:Display#1$${\tmp:toks{$$#1$$}%
\Picture*[\special{t4ht*=&&amp;}%
\special{t4ht*="&quot;}%
@@ -809,7 +816,7 @@ th4}
\special{t4ht*=>&gt;}%
\HCode{\the\tmp:toks}%
\special{t4ht*=}%
-]{ align="middle"}$#1$\EndPicture}
+]{ style="text-align:middle"}$#1$\EndPicture}
\def\Alt:lDisplay#1\]{\tmp:toks{\[#1\]}%
\Picture*[\special{t4ht*=&&amp;}%
\special{t4ht*="&quot;}%
@@ -855,12 +862,14 @@ th4}
{\ifvmode
\def\end:pmatrix{\IgnorePar\HCode{</div>}\end:TTT}%
\:xhtml{\IgnorePar\EndP}\HCode
- {<\tbl:XV{pmatrix}><tr><td><div class="pmatrix"\Hnewline>}%
+ {<table\Hnewline class="pmatrix"><tr><td><div
+ class="pmatrix"\Hnewline>}%
\else \HCode{<span class="pmatrix">}%
\def \end:pmatrix{\HCode{</span>}}%
\fi}
{\end:pmatrix}
\Css{div.pmatrix {text-align:center;}}
+\Css{table.pmatrix {width:100\%;}}
\Configure{Longrightarrow} {\pic:sym{Longrightarrow}}
\Configure{bowtie} {\pic:sym{bowtie}}
@@ -872,7 +881,7 @@ th4}
\Configure{longmapsto} {\pic:sym{longmapsto}}
\Configure{mapsto} {\pic:sym{mapsto}}
\Configure{models} {\pic:sym{models}}
-\Configure{neq} {\pic:sym{neq}}
+\Configure{neq} {\ht:special{t4ht@+\string&{35}x2260{59}}x}
\Configure{notin} {\pic:sym{notin}}
\Configure{vdots} {\pic:sym{vdots}}
\Configure{angle} {\pic:sym{angle}}
@@ -916,6 +925,10 @@ th4}
+
+
+
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{array}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -970,12 +983,6 @@ th4}
-
-
-
-
-
-
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{eplain}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -1017,15 +1024,16 @@ th4}
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{fleqn}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\Configure{equation}
{\:xhtml{\IgnorePar\EndP}%
- \HCode{<\tbl:XV{equation}><tr><td>}\IgnorePar
+ \HCode{<table\Hnewline class="equation"><tr><td>}\IgnorePar
\Configure{$}{\PicMath}{\EndPicMath}{}%
}
- {\IgnorePar\HCode{</td><td width="5\%">}}
+ {\IgnorePar\HCode{</td><td class="equation-label">}}
{\end:TTT\IgnorePar\par}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -1044,6 +1052,8 @@ th4}
+
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{rlbabel}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -1219,6 +1229,22 @@ th4}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{th4}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -1295,7 +1321,5 @@ th4}
-
-
\endinput