Skip to content

Commit 45ca92c

Browse files
committed
Workaround for MathJax and Autoload-all
This preserves the original definition of the \color macro as prescribed here: http://docs.mathjax.org/en/latest/tex.html#autoload-all
1 parent 757da65 commit 45ca92c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

cicero/static/js/mathjax-setup.js

+7
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,11 @@ MathJax.Hub.Queue(function() {
1919
}).parent().addClass('has-jax');
2020
});
2121

22+
MathJax.Hub.Register.StartupHook("TeX autoload-all Ready", function () {
23+
var MACROS = MathJax.InputJax.TeX.Definitions.macros;
24+
MACROS.color = "Color";
25+
delete MACROS.colorbox;
26+
delete MACROS.fcolorbox;
27+
});
28+
2229
MathJax.Hub.Configured();

0 commit comments

Comments
 (0)