[tex4ht-commits] [SCM] tex4ht updated: r674 - trunk/lit

michal_h21 at gnu.org.ua michal_h21 at gnu.org.ua
Wed Mar 4 09:06:47 CET 2020


Author: michal_h21
Date: 2020-03-04 10:06:47 +0200 (Wed, 04 Mar 2020)
New Revision: 674

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-html4.tex
   trunk/lit/tex4ht-jats.tex
   trunk/lit/tex4ht-mathml.tex
Log:
Use MathJax 3

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2020-03-03 16:01:21 UTC (rev 673)
+++ trunk/lit/ChangeLog	2020-03-04 08:06:47 UTC (rev 674)
@@ -1,3 +1,9 @@
+2020-03-04 Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-html4.tex (html4-math.4ht),
+	tex4ht-mathml.tex (html-mml.4ht): use MathJax 3
+	https://tug.org/pipermail/tex4ht/2020q1/002455.html
+
 2020-03-03 Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-jats.tex (jats.4ht),

Modified: trunk/lit/tex4ht-html4.tex
===================================================================
--- trunk/lit/tex4ht-html4.tex	2020-03-03 16:01:21 UTC (rev 673)
+++ trunk/lit/tex4ht-html4.tex	2020-03-04 08:06:47 UTC (rev 674)
@@ -8564,8 +8564,8 @@
 });                  
 </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

Modified: trunk/lit/tex4ht-jats.tex
===================================================================
--- trunk/lit/tex4ht-jats.tex	2020-03-03 16:01:21 UTC (rev 673)
+++ trunk/lit/tex4ht-jats.tex	2020-03-04 08:06:47 UTC (rev 674)
@@ -45,6 +45,7 @@
 \Configure{DOCTYPE}{\HCode{<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.1d1 20130915//EN" "JATS-journalpublishing1.dtd">\Hnewline}}
 \Configure{HTML}{\HCode{<article  \html:xmlns>\Hnewline}}{\HCode{\Hnewline</article>}}
 \Configure{@HEAD}{}
+\Configure{@/HTML}{}
 \edef\html:xmlns{}
 \NewConfigure{xmlns}[2]{\edef\html:xmlns{\html:xmlns xmlns:#1="#2"\Hnewline}}
 \Configure{HEAD}{\HCode{<front>}}{\HCode{</front>}}

Modified: trunk/lit/tex4ht-mathml.tex
===================================================================
--- trunk/lit/tex4ht-mathml.tex	2020-03-03 16:01:21 UTC (rev 673)
+++ trunk/lit/tex4ht-mathml.tex	2020-03-04 08:06:47 UTC (rev 674)
@@ -1819,8 +1819,8 @@
 
 \<configure html-mml latex\><<<
 \: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
 >>>
 



More information about the tex4ht-commits mailing list.