summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/tex4ht/html-jsmath.4ht
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2008-05-10 00:31:48 +0000
committerKarl Berry <karl@freefriends.org>2008-05-10 00:31:48 +0000
commit3affd633834494c279f96078e95831935ea51ca7 (patch)
treed18cbef6ade390df34099bff78c593f00e9d7971 /Master/texmf-dist/tex/generic/tex4ht/html-jsmath.4ht
parent78d169458ffb8d121d56a1345471b5dbe3f17a2a (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-jsmath.4ht')
-rwxr-xr-xMaster/texmf-dist/tex/generic/tex4ht/html-jsmath.4ht56
1 files changed, 40 insertions, 16 deletions
diff --git a/Master/texmf-dist/tex/generic/tex4ht/html-jsmath.4ht b/Master/texmf-dist/tex/generic/tex4ht/html-jsmath.4ht
index ea380e03c1b..4f54235dda6 100755
--- a/Master/texmf-dist/tex/generic/tex4ht/html-jsmath.4ht
+++ b/Master/texmf-dist/tex/generic/tex4ht/html-jsmath.4ht
@@ -1,6 +1,6 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-% html-jsmath.4ht 2006-10-27-20:19 %
-% Copyright (C) 2005--2006 Eitan M. Gurari %
+% html-jsmath.4ht 2007-07-14-14:59 %
+% Copyright (C) 2005--2007 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 2006-10-27-20:19}
+\immediate\write-1{version 2007-07-14-14:59}
\exit:ifnot{amsmath,%
tex4ht}
@@ -46,16 +46,19 @@ tex4ht}
\IgnorePar}
{\ifx \a:@math\empty\else \Tg</\a:@math>\fi \EndIgnoreRule
\ifOption{mml-fonts}{}{\EndNoFonts}%
- \mathltxfalse \b:DviJsmath \sv:ignore
+ \mathltxfalse \After:Math \b:DviJsmath \sv:ignore
}
\NewConfigure{DviJsmath}{2}
-\Configure{@BODY}
- {\ifvmode \IgnorePar\fi \EndP\HCode{
-%
-<script
+\Configure{@HEAD}{\HCode{<script
type="text/javascript"
src="\a:jsmath"></script>\Hnewline
-<noscript> \Hnewline
+<script type="text/javascript">jsMath.Macro('firstOfOne','\#1',1)
+</script>\Hnewline}
+}
+\Configure{@BODY}
+ {\ifvmode \IgnorePar\fi \EndP\HCode{%
+ %
+ <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
@@ -64,14 +67,15 @@ If your browser supports JavaScript, be sure it is enabled.</b> \Hnewline
<hr /> \Hnewline
</noscript>\Hnewline
%
-}\par\ShowPar}
- \Configure{@/BODY}{
+ }\par\ShowPar}
+\Configure{@/BODY}{
\par\IgnorePar\EndP
\HCode{
<script type="text/javascript" >\Hnewline
jsMath.Process();\Hnewline
</script>
}\par}
+\Configure{!BODY}{ class="tex2math_ignore" }
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -105,9 +109,6 @@ If your browser supports JavaScript, be sure it is enabled.</b> \Hnewline
-
-
-
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{amsmath}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -129,7 +130,7 @@ If your browser supports JavaScript, be sure it is enabled.</b> \Hnewline
{}
{}
{\ifnum\HCol=2 \IgnorePar
- \HCode{\string&}\fi }
+ \HCode{\a:math:amp}\fi }
{}
%
\csname a:equation\string$\string$\endcsname
@@ -151,7 +152,7 @@ If your browser supports JavaScript, be sure it is enabled.</b> \Hnewline
{}
{}
{\ifnum\HCol=2 \IgnorePar
- \HCode{\string&}\fi }
+ \HCode{\a:math:amp}\fi }
{}
%
\csname a:equation\string$\string$\endcsname
@@ -500,5 +501,28 @@ If your browser supports JavaScript, be sure it is enabled.</b> \Hnewline
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\endinput