diff options
Diffstat (limited to 'Master/texmf-dist/tex/generic/tex4ht/html4-math.4ht')
-rw-r--r-- | Master/texmf-dist/tex/generic/tex4ht/html4-math.4ht | 59 |
1 files changed, 52 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/generic/tex4ht/html4-math.4ht b/Master/texmf-dist/tex/generic/tex4ht/html4-math.4ht index 7a85a1e6129..7a32d7cd687 100644 --- a/Master/texmf-dist/tex/generic/tex4ht/html4-math.4ht +++ b/Master/texmf-dist/tex/generic/tex4ht/html4-math.4ht @@ -1,5 +1,5 @@ -% html4-math.4ht (2017-03-30-16:04), generated from tex4ht-html4.tex -% Copyright 2009-2017 TeX Users Group +% html4-math.4ht (2018-12-05-18:11), generated from tex4ht-html4.tex +% Copyright 2009-2018 TeX Users Group % Copyright 1999-2009 Eitan M. Gurari % % This work may be distributed and/or modified under the @@ -17,7 +17,7 @@ % % If you modify this program, changing the % version identification would be appreciated. -\immediate\write-1{version 2017-03-30-16:04} +\immediate\write-1{version 2018-12-05-18:11} \exit:ifnot{accents,% amsfonts,% @@ -314,6 +314,34 @@ ushort} \Css{div.pmatrix {text-align:center;}} \Css{table.pmatrix {width:100\%;}} +\:CheckOption{mathjax}\if:Option +\input{mathjax-latex-4ht.4ht} +\Configure{@HEAD}{\HCode{ +<script type="text/x-mathjax-config"> +MathJax.Hub.Config({ + 'fast-preview': {disabled: true}, + TeX: { + extensions: ["color.js","AMSmath.js"], + equationNumbers: { autoNumber: "AMS" } + }, + extensions: ["tex2jax.js"], + tex2jax: { + \unexpanded{ + inlineMath: [ ["\\\(","\\\)"] ], + displayMath: [ ['$$','$$'], ["\\[","\\]"] ],} + processEscapes: true, + processEnvironments: true + } +}); +</script>\Hnewline +}} +\Configure{MathjaxSource}{https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/latest.js?config=TeX-AMS-MML_HTMLorMML} +\Configure{@HEAD}{\HCode{ <script type="text/javascript" src="\a:MathjaxSource"></script> \Hnewline}} +\Configure{$}{}{}{\expandafter\AltMathOne} +\Configure{()}{\AltlMath}{} +\Configure{[]}{\AltlDisplay}{} +\fi + \NewConfigure{bar-css}{2} \Configure{bar-css} {\HCode{<span class="bar-css">}} @@ -443,6 +471,7 @@ ushort} + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ConfigureHinput{amsmath} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -483,8 +512,10 @@ ushort} \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 - border="0" cellpadding="0" cellspacing="15"><tr><td>}} + \HCode{<div class="center-#1"><table class="#1"\Hnewline + border="0" cellpadding="0" cellspacing="15"><tr><td>} + \Css{div.center-#1{text-align: center;}} + } \def\endm:env{\:xhtml{\IgnorePar\EndP}% \HCode{</td></tr></table></center>}\IgnorePar \ifmmode\else\par\fi} @@ -728,8 +759,10 @@ ushort} {}{}{}{} \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>}} + \HCode{<div class="center-#1"><table class="#1"\Hnewline + border="0" cellpadding="0" cellspacing="15"><tr><td>} + \Css{div.center-#1{text-align: center;}} + } \def\endm:env{\:xhtml{\IgnorePar\EndP}% \HCode{</td></tr></table></center>}\IgnorePar \ifmmode\else\par\fi} @@ -1058,6 +1091,8 @@ ushort} + + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ConfigureHinput{fleqn} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -1085,6 +1120,8 @@ ushort} + + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ConfigureHinput{gauss} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -1462,5 +1499,13 @@ ushort} + + + + + + + + \endinput |