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

michal_h21 at gnu.org.ua michal_h21 at gnu.org.ua
Tue Dec 4 22:41:47 CET 2018


Author: michal_h21
Date: 2018-12-04 23:41:47 +0200 (Tue, 04 Dec 2018)
New Revision: 457

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-4ht.tex
   trunk/lit/tex4ht-html4.tex
   trunk/lit/tex4ht-mathml.tex
Log:
Use MathJax also for MathML output

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2018-12-04 20:40:30 UTC (rev 456)
+++ trunk/lit/ChangeLog	2018-12-04 21:41:47 UTC (rev 457)
@@ -3,6 +3,8 @@
 	* tex4ht-html4.tex (html4-math.4ht): added "mathjax" option.
 	* tex4ht-mathjax.tex (mathjax-latex-4ht.4ht): new literate source holding
 	definitions for keeping of LaTeX commands in math commands and environments.
+	* tex4ht-mathml.tex (html-mml.4ht): use "mathjax" option also for MathML
+	output.
 	* tex4ht-html4.tex (html4.4ht): use \def instead of \newcommand for
 	\AddFontFace, it causes compilation error.
 

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2018-12-04 20:40:30 UTC (rev 456)
+++ trunk/lit/tex4ht-4ht.tex	2018-12-04 21:41:47 UTC (rev 457)
@@ -33629,6 +33629,12 @@
 \<empty base for sub/sup\><<<
 {\HCode{}}>>>
 
+\Section{MathJax}
+
+\<latex math\><<<
+\NewConfigure{MathjaxSource}{1}
+>>>
+
 \Section{Space Characters}
 
 We have the definition \`'\def~{\penalty \@M \ }' in TeX,

Modified: trunk/lit/tex4ht-html4.tex
===================================================================
--- trunk/lit/tex4ht-html4.tex	2018-12-04 20:40:30 UTC (rev 456)
+++ trunk/lit/tex4ht-html4.tex	2018-12-04 21:41:47 UTC (rev 457)
@@ -8552,7 +8552,8 @@
 });                  
 </script>\Hnewline
 }}
-\Configure{@HEAD}{\HCode{ <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/latest.js?config=TeX-AMS-MML_HTMLorMML"></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}{}

Modified: trunk/lit/tex4ht-mathml.tex
===================================================================
--- trunk/lit/tex4ht-mathml.tex	2018-12-04 20:40:30 UTC (rev 456)
+++ trunk/lit/tex4ht-mathml.tex	2018-12-04 21:41:47 UTC (rev 457)
@@ -1805,6 +1805,14 @@
 unicode maps already seem to assume raised representation for the
 primes.
 
+
+\<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}}
+\fi
+>>>
+
 %%%%%%%%%%%%%%%%%%%%%%%%%%
 \subsection{plain.sty}
 %%%%%%%%%%%%%%%%%%%%%%%%%%



More information about the tex4ht-commits mailing list