Skip to content

Commit

Permalink
Merge pull request #41 from robertodr/feature_mathjax-all
Browse files Browse the repository at this point in the history
Workaround for MathJax and Autoload-all
  • Loading branch information
bast committed Jan 12, 2017
2 parents 757da65 + 45ca92c commit f78533c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cicero/static/js/mathjax-setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,11 @@ MathJax.Hub.Queue(function() {
}).parent().addClass('has-jax');
});

MathJax.Hub.Register.StartupHook("TeX autoload-all Ready", function () {
var MACROS = MathJax.InputJax.TeX.Definitions.macros;
MACROS.color = "Color";
delete MACROS.colorbox;
delete MACROS.fcolorbox;
});

MathJax.Hub.Configured();

0 comments on commit f78533c

Please sign in to comment.