Reputation: 43569
I have hundreds of equations on a page. I run
MathJax.Hub.Config({
tex2jax: {
inlineMath: [['$', '$'], ['\\(', '\\)']]
}
});
But I see Processing math: 100%
and Typesetting math: 100%
. Any way to stop it with a button or something?
Upvotes: 0
Views: 560
Reputation: 966
1) If you want to turn off preprocessor previews and the fast previews. Try setting your configuration to this -
MathJax.Hub.Config({
"fast-preview": {disabled:true},
tex2jax: {
preview: "none",
inlineMath: [["$","$"],["\\(","\\)"]]
}
});
2) If you add below script to your page BEFORE the <script>
that loads MathJax.js then the processing messages will not be shown (but other messages like file and font loading will still be shown).
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
showProcessingMessages: false
});
</script>
If you want to eliminate ALL messages, then use -
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
messageStyle: "none"
});
</script>
3) There isn't a predefined way, but you could override the Message.File() method and cause the file messages to have a visibility time of 0 (so they will be removed immediately). Here's an example:
<script type="text/x-mathjax-config">
MathJax.Message.File = function (file) {
var root = MathJax.Ajax.config.root;
if (file.substr(0,root.length) === root) {file = "[MathJax]"+file.substr(root.length)}
return this.Set("Loading "+file,null,0);
}
</script>
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML"> </script>
This still means that the messages will be saved in the log, but they won't show up on the screen.
4) Hiding content until typesetting is complete
Hope either of above all solutions does the trick and satisfy what you want. Thanks
Upvotes: 7