<!--[if lt IE 7]><style type="text/css">body{behavior:url("/wiki/skins/vector/csshover.min.htc")}</style><![endif]--><script type="text/javascript" |
src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"> | |
MathJax.Hub.Config({config:["TeX-AMS-MML_HTMLorMML.js"],jax:["input/ | |
TeX","input/MathML","output/HTML-CSS"],extensions: | |
["tex2jax.js","mml2jax.js","MathMenu.js","MathZoom.js"],tex2jax: |
{displayMath: [['$$','$$']], inlineMath: [['$','$']]},TeX: |
{extensions: | |
["AMSmath.js","AMSsymbols.js","noErrors.js","noUndefined.js"]}}); |
</script></head> |
I'm wondering particularly if there isn't a linebreak between "input/" and the following "TeX" (as there is in the message here). That would cause a javascript compilation error like what I suggest above. Did you look at the error console for your browser to see if there are any error messages?
Did you use "View source" in your browser to see if the configuration block is actually being sent as part of the page source? And if so, are there any unwanted linebreaks there?
Your configuration actually includes more than is needed, since the combined configuration file takes care of most of what you have. So you should be able to get away with
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js">
MathJax.Hub.Config({
config:["TeX-AMS-MML_HTMLorMML.js"],
tex2jax: {displayMath: [['$$','$$']], inlineMath: [['$','$']]}
});
</script>
Also, the recommended approach is to use a separate configuration block (since your version is no longer valid in HTML5):
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
config:["TeX-AMS-MML_HTMLorMML.js"],
tex2jax: {displayMath: [['$$','$$']], inlineMath: [['$','$']]}
});
</script>
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
See if using one of these helps, and check the error console for messages.
Davide
$out->addHeadItem( 'mathjax','<script type="text/x-mathjax-
config">MathJax.Hub.Config({tex2jax:{displayMath:[["$$","$
$"]],inlineMath:[["$","$"]]}});</script><script type="text/javascript"
src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML
"></script>');
should work fine.
I had considered suggesting using ?config= instead of the config
array, as you have here, but didn't want to complicate things further,
since you were already using a custom configuration anyway.
Davide