Yes, I saw the link and I read the documentation but it didn’t change anything. I have tried adding MathJax.startup.getComponents();
at the end of the script (which is supposed to regenerate every object, taking into account the configuration), but it still doesn’t work.
However, I don’t think it’s an issue of Mathjax not taking into account configuration. Here is the minimal code that leads to this issue:
<script>
MathJax = {};
</script>
I am not a JavaScripte programmer, so I be wrong, but I think that I am overwriting MathJax
, which seems to be a critical variable… (nonetheless this is the way it is supposed to be configured). To patch that, I tried instead of setting the configuration by setting attributes instead of overwriting the whole object:
<script>
MathJax.tex.macros = {
d: "\\mathrm d",
// ...
};
</script>
This allows the page to be rendered, but it stills doesn’t define macros (I get the same result as in the beginning).
Hence, I tried what was told in the documentation
<script>
MathJax.tex.macros.options = { /* ... */ };
</script>
which is supposed to work for certain fields. Oc, it didn’t work. So I tried the hard way, telling MathJax to reload every object
<script>
MathJax.tex.macros = { /* ... */ };
MathJax.startup.getComponents();
</script>
Didn’t work…
At this point, I just tried every possible combination of the aforementioned “solutions”.
This one worked…
<script>
MathJax.config.tex.macros = { /* ... */ };
MathJax.startup.getComponents();
</script>
that took some time and the answer was in the first post you sent me, I feel like an idiot. An idiot that took way too much time trying to read the doc and too few reading what an other user did. Hope it helps anyone else that has the same problem.