Hello,
I am working in a learning management system (LMS). They have their own call to MathJax as well as their own in-line configuration that loads on each page. However, many of their settings are not useful to me. I can counteract them by putting my own in-line configuration* that puts the settings back to what I want. The problem with this is that I have to do this on every page, and they sometimes change their configuration, so I have to go through every page and make updates.
*To give a little bit of information, if I use an in-line configuration without a call to MathJax, it uses the version of MathJax that is called by the LMS. If, however, I put in my own call to MathJax, it uses the version I chose instead. If I put my own in-line configuration in the head of my file, it works in IE, but nowhere else. If I put my own in-line configuration in the body of my file, it works in Chrome, FF, and Safari, but not IE. This means I have an in-line configuration in both the head and the body on every single page that I use MathJax on (perhaps not the best solution, but it works for whatever reason and I have't been able to find a different solution).
I’d think I'd like to keep my configuration outside of the individual pages so that I only have to change it in one place, instead of on each page. However, when I pull the configuration out into a local js file, it works outside of the LMS, but when I put it in the LMS, the in-line configuration for the LMS seems to overwrite my configuration (or it doesn’t work for some other reason). I have tried a couple of different options: I tried using a local config file with the CDN and giving the full URL(http://docs.mathjax.org/en/latest/configuration.html#using-a-local-configuration-file-with-the-cdn); and I tried a relative path to the config file as discussed recently on the user group (https://groups.google.com/forum/#!topic/mathjax-users/cbRwI58nqeg). As I said, I got both of these working outside of the LMS, but as soon as I put them into the LMS, their in-line configuration takes over. Unfortunately, because I’m working in an LMS I can’t provide a useful “working” example.
Is there any thing different I can do so that the poor choices that the LMS is making don’t negatively affect me?
Thanks,
Rachael
--
You received this message because you are subscribed to the Google Groups "MathJax Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mathjax-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thanks for your response. I didn’t have high hopes.
I think my question was mostly a). I really don’t have a lot of control. I believe that my configuration comes after the LMS’s configuration. If I put my configuration in-line on my page, it overwrites the LMS’s configuration. However, if I pull my configuration out into a file, then it seems that the LMS’s configuration takes precedence.
I think I have b) figured out.
My workflow up to now has been to wait until the LMS changes their configuration and then go and undo the weird things they do (for example, make the math font 130%) in my inline configuration for each file. I was hoping to be proactive and either negate the LMS’s configuration so I don’t have to worry about changes , or keep my configuration in a separate file so I only have to change my configuration in one place, but it sounds like this isn’t possible – or at least not easy, so I will just continue to do things the way I have been.
<script>var MathJax = {tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']],displayMath: [ [ '$$', '$$'], [ '\\[', '\\]'] ],processEnvironments: true,processEscapes: true},"HTML-CSS": {scale: 100},AuthorInit: function () {MathJax.Hub.Startup.ConfigBlocks = function () {}}};</script><script src="https://cdn.mathjax.org/mathjax/2.6-latest/MathJax.js?config=TeX-AMS_HTML"></script>