From cc2ba7d07f5edbfbddf0767270723f84b14856c2 Mon Sep 17 00:00:00 2001 From: Henrik Giesel Date: Sun, 15 Nov 2020 13:58:51 +0100 Subject: [PATCH] Load require package in Mathjax --- qt/aqt/data/web/js/mathjax.js | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/qt/aqt/data/web/js/mathjax.js b/qt/aqt/data/web/js/mathjax.js index adce72648..c97f7b8a1 100644 --- a/qt/aqt/data/web/js/mathjax.js +++ b/qt/aqt/data/web/js/mathjax.js @@ -3,7 +3,14 @@ window.MathJax = { displayMath: [["\\[", "\\]"]], processRefs: false, processEnvironments: false, - packages: ['base', 'ams', 'noerrors', 'noundefined', 'mhchem'] + packages: [ + 'base', + 'ams', + 'noerrors', + 'noundefined', + 'mhchem', + 'require', + ] }, startup: { typeset: false @@ -17,6 +24,10 @@ window.MathJax = { processHtmlClass: 'tex2jax_process' }, loader: { - load: ['[tex]/noerrors', '[tex]/mhchem'] + load: [ + '[tex]/noerrors', + '[tex]/mhchem', + '[tex]/require', + ] } };