texlive[54136] Master/texmf-dist/tex/generic/tex4ht: mathjax3, tex4ht

commits+karl at tug.org commits+karl at tug.org
Sat Mar 7 00:08:04 CET 2020


Revision: 54136
          http://tug.org/svn/texlive?view=revision&revision=54136
Author:   karl
Date:     2020-03-07 00:08:04 +0100 (Sat, 07 Mar 2020)
Log Message:
-----------
mathjax3, tex4ht r674

Revision Links:
--------------
    http://tug.org/svn/texlive?view=revision&revision=674

Modified Paths:
--------------
    trunk/Master/texmf-dist/tex/generic/tex4ht/html-mml.4ht
    trunk/Master/texmf-dist/tex/generic/tex4ht/html4-math.4ht

Modified: trunk/Master/texmf-dist/tex/generic/tex4ht/html-mml.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/html-mml.4ht	2020-03-06 22:42:17 UTC (rev 54135)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/html-mml.4ht	2020-03-06 23:08:04 UTC (rev 54136)
@@ -1,4 +1,4 @@
-% html-mml.4ht (2018-12-05-15:46), generated from tex4ht-mathml.tex
+% html-mml.4ht (2020-03-06-15:07), generated from tex4ht-mathml.tex
 % Copyright 2009-2018 TeX Users Group
 % Copyright 1999-2009 Eitan M. Gurari
 %
@@ -17,7 +17,7 @@
 %
 % If you modify this program, changing the
 % version identification would be appreciated.
-\immediate\write-1{version 2018-12-05-15:46}
+\immediate\write-1{version 2020-03-06-15:07}
 
 \exit:ifnot{amsmath,% 
 array,% 
@@ -286,8 +286,8 @@
 \Css{math .textsf { font-family: sans-serif; }}
 \Css{math .textbf { font-weight: bold; }}
 \:CheckOption{mathjax}\if:Option
-\Configure{MathjaxSource}{https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/latest.js?config=MML_HTMLorMML}
-\Configure{@HEAD}{\HCode{ <script type="text/javascript" src="\a:MathjaxSource"></script> \Hnewline}}
+\Configure{MathjaxSource}{https://cdn.jsdelivr.net/npm/mathjax@3/es5/mml-chtml.js}
+\Configure{@HEAD}{\HCode{ <script type="text/javascript" id="MathJax-script" async="async" src="\a:MathjaxSource"></script> \Hnewline}}
 \fi
 \Configure{multicolumn}
    {\let\sv:VBorder\VBorder
@@ -481,6 +481,7 @@
 
 
 
+
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
                 \ConfigureHinput{amsmath}
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -677,6 +678,8 @@
 
 
 
+
+
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
                 \ConfigureHinput{plain}
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -729,8 +732,6 @@
 
 
 
-
-
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
                 \ConfigureHinput{array}
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -822,6 +823,8 @@
 
 
 
+
+
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
                 \ConfigureHinput{color}
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -898,6 +901,12 @@
 
 
 
+
+
+
+
+
+
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
                 \ConfigureHinput{rlbabel}
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -945,6 +954,7 @@
 
 
 
+
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
                 \ConfigureHinput{frenchb}
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -1014,6 +1024,14 @@
 
 
 
+
+
+
+
+
+
+
+
 
 
 

Modified: trunk/Master/texmf-dist/tex/generic/tex4ht/html4-math.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/html4-math.4ht	2020-03-06 22:42:17 UTC (rev 54135)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/html4-math.4ht	2020-03-06 23:08:04 UTC (rev 54136)
@@ -1,4 +1,4 @@
-% html4-math.4ht (2019-12-16-15:21), generated from tex4ht-html4.tex
+% html4-math.4ht (2020-03-06-15:07), generated from tex4ht-html4.tex
 % Copyright 2009-2019 TeX Users Group
 % Copyright 1999-2009 Eitan M. Gurari
 %
@@ -17,7 +17,7 @@
 %
 % If you modify this program, changing the
 % version identification would be appreciated.
-\immediate\write-1{version 2019-12-16-15:21}
+\immediate\write-1{version 2020-03-06-15:07}
 
 \exit:ifnot{accents,% 
 amsfonts,% 
@@ -317,26 +317,25 @@
 \: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: [ ["\\\(","\\\)"] ],
+<script>
+window.MathJax = {
+    tex: {
+      tags: "ams",
+      \detokenize{%
+      inlineMath: [ ["\\\(","\\\)"] ],
       displayMath: [ ['$$','$$'], ["\\[","\\]"] ],}
       processEscapes: true,
-      processEnvironments: true
-    }
-});
+      processEnvironments: true,
+      packages: ['base', 'color', 'ams']
+  },
+  loader: {
+    load: ['[tex]/color', '[tex]/ams']
+  }
+};
 </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{MathjaxSource}{https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml-full.js}
+\Configure{@HEAD}{\HCode{ <script type="text/javascript" async="async" id="MathJax-script" src="\a:MathjaxSource"></script> \Hnewline}}
 \def\:HandleMathjaxCatcodes{\edef\:RestoreMathjaxCatcodes{\catcode`\noexpand \&=\the\catcode`\&}\catcode`\&=11}
 \Configure{$}{\:HandleMathjaxCatcodes}{\:RestoreMathjaxCatcodes}{\expandafter\AltMathOne}
 % for some reason, it is necessary to specify the catcode change directly in the configuration



More information about the tex-live-commits mailing list.