summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/tex4ht/jsmath.4ht
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/generic/tex4ht/jsmath.4ht')
-rwxr-xr-xMaster/texmf-dist/tex/generic/tex4ht/jsmath.4ht58
1 files changed, 38 insertions, 20 deletions
diff --git a/Master/texmf-dist/tex/generic/tex4ht/jsmath.4ht b/Master/texmf-dist/tex/generic/tex4ht/jsmath.4ht
index 637e24b8ad4..7638880916a 100755
--- a/Master/texmf-dist/tex/generic/tex4ht/jsmath.4ht
+++ b/Master/texmf-dist/tex/generic/tex4ht/jsmath.4ht
@@ -1,6 +1,6 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-% jsmath.4ht 2007-07-14-14:59 %
-% Copyright (C) 2005--2007 Eitan M. Gurari %
+% jsmath.4ht 2008-06-11-11:36 %
+% Copyright (C) 2005--2008 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 2007-07-14-14:59}
+\immediate\write-1{version 2008-06-11-11:36}
\exit:ifnot{amsmath,%
array,%
@@ -38,20 +38,14 @@ tex4ht}
\ConfigureHinput{tex4ht}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\NewConfigure{jsmath}{1}
-\Configure{jsmath}{jsMath/easy/load.js}
-\def\EndLink{\ifmathltx
- \ifmtext \ht:special{t4ht@,}%
-%
- \egroup \HCode{\%\Hnewline\%}\Endmtxt:link
- \HCode{\string\end{ref}\Hnewline}\ht:special{t4ht@,&\#x00A0;}%
-%
- \fi
- \else \expandafter\M:EndLink\fi}
-\def\msp:link#1#2{\ifmmode
- \xdef\msp:LINK{\noexpand\msp:link{#1}{#2}}%
- \aftergroup\msp:LINK\else
- \Link{}{#2}\EndLink
- \fi }
+\ifOption{easy-load}{%
+ \Configure{jsmath}{jsMath/easy/load.js}%
+}{%
+ \Log:Note{The `easy-load' command line option offers
+ an alternative loading approach of
+ jsMath version 3.4 or above}%
+ \Configure{jsmath}{jsMath/jsMath.js}%
+}
\Configure{$}
{\Configure{@math}{span}\DviMath}
{\EndDviMath}{}
@@ -61,6 +55,20 @@ tex4ht}
{\EndDviMath
\ShowPar\par{\csname HCondtrue\endcsname\noindent}}
{\DisplayMathtrue}
+\def\Hbrakets<#1>{\ifmathltx
+ \ifmtext @(#1)\else \string\hbox{@(#1)}\fi
+ \else <#1>\fi}
+\def\EndLink{\ifmathltx
+ \ifmtext \ht:special{t4ht@,}%
+%
+ \egroup \HCode{\%\Hnewline\%}\Endmtxt:link
+ \HCode{\string\end{ref}\Hnewline}\ht:special{t4ht@,&\#x00A0;}%
+%
+ \else \HCode{\Hbrakets</a>}\fi
+ \else \expandafter\M:EndLink\fi}
+\LinkCommand\msp:link{a, href, id, \mml:class="label",,}
+\def\Link{\M:Link}
+\def\EndLink{\M:EndLink}
\Configure{over}
{\Send{GROUP}{0}{\l:brace\space}}
{\HCode{\string\over\space}\Send{EndGROUP}{0}{\r:brace\space}}
@@ -182,6 +190,7 @@ tex4ht}
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{amsmath}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -498,6 +507,8 @@ tex4ht}
+
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{plain}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -531,9 +542,6 @@ tex4ht}
-
-
-
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{array}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -865,5 +873,15 @@ tex4ht}
+
+
+
+
+
+
+
+
+
+
\endinput