[tex4ht-commits] [SCM] tex4ht updated: r675 - trunk/lit
michal_h21 at gnu.org.ua
michal_h21 at gnu.org.ua
Wed Mar 4 13:06:53 CET 2020
Author: michal_h21
Date: 2020-03-04 14:06:53 +0200 (Wed, 04 Mar 2020)
New Revision: 675
Modified:
trunk/lit/tex4ht-html4.tex
Log:
Updated MathJax configuration
Modified: trunk/lit/tex4ht-html4.tex
===================================================================
--- trunk/lit/tex4ht-html4.tex 2020-03-04 08:06:47 UTC (rev 674)
+++ trunk/lit/tex4ht-html4.tex 2020-03-04 12:06:53 UTC (rev 675)
@@ -8546,22 +8546,21 @@
\: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://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml-full.js}
More information about the tex4ht-commits
mailing list.