Hello,
I would like to follow up this weirdness some more.
I have created and assigned (through a SCORM file under BlackBoard) a quiz for my students where the question involving the JXG option mentioned below has been included. My students intermittently get the result as shown in fig1.png. Here the latex typesetting is not rendered and the numerical variables are not displayed. Does this imply that there is something missing on their computers? Having said that, I have not be able to reproduce the same problem on my own computer using firefox, chrome and safari, as well as several other computers. The only time I did reproduce the error was in our university library common computing area (Windows 10 under firefox and chrome). However, here, it did not happen all the time. I could shut down the quiz and restart it and it would be fine, but then I shut that down, restart again and the error came back.
Now, going back to the original question which prompted this discussion. Fig2.png shows the effect of including the JXG option line
JXG.Options.text.useMathJax = true;
in the extension code for a Numbas test run. The figure shows the advice section of the question. Note that the latex is typeset correctly in the graph, but the latex in the advice text is not correctly typeset. Fig3.png shows a similar figure generated with the JXG option line removed, also for a Numbas test run. Here the latex in the graph is not typeset correctly, but it is in the advice text. To make things more complicated, fig4.png shows a similar figure that was generated using the final quiz that I developed, downloaded as a SCORM file and uploaded to blackboard at our university. Here, both the graph and the advice latex are typeset correctly.
This is all very confusing to me. It is more than a little frustrating for my students. If anyone has any insights or any suggestions to make things clearer, that would be great. Is it a matter of a bad browser version? missing or incorrectly installed software (eg javascript)? Or is it something more fundamental.
Thanks very much,
Peter.