summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/tex4ht/html-jsmath.4ht
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/generic/tex4ht/html-jsmath.4ht')
-rwxr-xr-xMaster/texmf-dist/tex/generic/tex4ht/html-jsmath.4ht504
1 files changed, 504 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/generic/tex4ht/html-jsmath.4ht b/Master/texmf-dist/tex/generic/tex4ht/html-jsmath.4ht
new file mode 100755
index 00000000000..ea380e03c1b
--- /dev/null
+++ b/Master/texmf-dist/tex/generic/tex4ht/html-jsmath.4ht
@@ -0,0 +1,504 @@
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% html-jsmath.4ht 2006-10-27-20:19 %
+% Copyright (C) 2005--2006 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} %
+% %
+% gurari@cse.ohio-state.edu %
+% http://www.cse.ohio-state.edu/~gurari %
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\immediate\write-1{version 2006-10-27-20:19}
+
+\exit:ifnot{amsmath,%
+tex4ht}
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ \ConfigureHinput{tex4ht}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ \Configure{VERSION}{}
+\Configure{DviMath}
+ {\a:DviJsmath \mathltxtrue
+ \ifOption{mml-fonts}{}{\NoFonts}%
+ \IgnoreRule \HCode{<!--l.
+ \the\inputlineno-->}\ifx \a:@math\empty\else
+ \Tg<\a:@math\space class="math"\Hnewline >\fi
+ \a:math
+ \edef\sv:ignore{\if:nopar
+ \noexpand\IgnorePar\else \noexpand\ShowPar\fi}%
+\IgnorePar}
+ {\ifx \a:@math\empty\else \Tg</\a:@math>\fi \EndIgnoreRule
+ \ifOption{mml-fonts}{}{\EndNoFonts}%
+ \mathltxfalse \b:DviJsmath \sv:ignore
+}
+\NewConfigure{DviJsmath}{2}
+\Configure{@BODY}
+ {\ifvmode \IgnorePar\fi \EndP\HCode{
+%
+<script
+ type="text/javascript"
+ src="\a:jsmath"></script>\Hnewline
+<noscript> \Hnewline
+<div style="color:\#CC0000; text-align:center"> \Hnewline
+<b>Warning: <a href="http://www.math.union.edu/locate/jsMath">jsMath</a> \Hnewline
+requires JavaScript to process the mathematics on this page.<br /> \Hnewline
+If your browser supports JavaScript, be sure it is enabled.</b> \Hnewline
+</div> \Hnewline
+<hr /> \Hnewline
+</noscript>\Hnewline
+%
+}\par\ShowPar}
+ \Configure{@/BODY}{
+ \par\IgnorePar\EndP
+ \HCode{
+ <script type="text/javascript" >\Hnewline
+ jsMath.Process();\Hnewline
+ </script>
+ }\par}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\endinput\empty\empty\empty\empty\empty\empty
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ \ConfigureHinput{amsmath}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ \ifx \mathdisplay@@pop\:UnDef
+ \ifx \emdf@La\:UnDef
+
+ \else
+
+ \fi
+\else
+ \Configure{equation}
+ {\ifvmode \IgnorePar\fi\EndP
+ \HCode{<table class="equation"><tr><td>}%
+ \Configure{gather}
+ {\HCode{\string\begin\l:brace array\r:brace
+ \l:brace lp{10mm}r\r:brace}\IgnorePar
+ }
+ {\HCode{\string\end\l:brace array\r:brace}}
+ {}
+ {}
+ {\ifnum\HCol=2 \IgnorePar
+ \HCode{\string&}\fi }
+ {}
+%
+ \csname a:equation\string$\string$\endcsname
+%
+ }
+ {\ifvmode \IgnorePar\fi\EndP
+ \HCode{</td><td class="eq-no">}%
+ }
+ {\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{\string\begin\l:brace array\r:brace
+ \l:brace lp{10mm}r\r:brace}\IgnorePar
+ }
+ {\HCode{\string\end\l:brace array\r:brace}}
+ {}
+ {}
+ {\ifnum\HCol=2 \IgnorePar
+ \HCode{\string&}\fi }
+ {}
+%
+ \csname a:equation\string$\string$\endcsname
+%
+ }
+ {\ifvmode \IgnorePar\fi\EndP \HCode{</td></tr></table>}%
+ \ShowPar\IgnoreIndent\par}
+
+\fi
+\Configure{equation$$}
+ {\Configure{$$}
+ {\IgnorePar \Configure{@math}{div}\EndP\DviMath}
+ {\EndDviMath\EndP}
+ {\DisplayMathtrue}%
+ }
+\Configure{boxed}
+ {\ifmathltx \HCode{\string\class\l:brace boxed\r:brace\l:brace}%
+ \else \HCode{<span class="boxed">}\IgnorePar\fi}
+ {\ifmathltx \HCode{\r:brace}%
+ \else \HCode{</span>}\fi}
+\Css{.boxed{border: 1px solid black; padding-left:2px;
+ padding-right:2px;}}
+\Configure{boxed}
+ {\ifmathltx \HCode{\string\class\l:brace boxed\r:brace\l:brace}%
+ \else \HCode{<span class="boxed">}\IgnorePar\fi}
+ {\ifmathltx \HCode{\r:brace}%
+ \else \HCode{</span>}\fi}
+\Css{.boxed{border: 1px solid black; padding-left:2px;
+ padding-right:2px;}}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\endinput\empty\empty\empty\empty\empty\empty
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+\endinput
+