TeX in drag and drop question

Re: TeX in drag and drop question

by Ralf Otto -
Number of replies: 2

Hello,

Kathrin and i (we are work colleagues) found a way to use Mathjax in Drag&Drop questions.
If you deactivate the Mathjax filter in your assessment and add following code to your question,
Mathjax code will be displayed:

<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML"></script>

If you have a local copy of Mathjax on your server, you can change the url to it.

I know this isn't a good solution, but if you really need to display Mathjax in your D&D questions, it works smile


Best Regards
Kathrin and Ralf


In reply to Ralf Otto

Re: TeX in drag and drop question

by Ralf Otto -

FYI: The Method i described to use Mathjax in Drag&Drop-Questions works with Moodle 3.1, but doesn't work in Moodle 3.4 

In reply to Ralf Otto

Re: TeX in drag and drop question

by Daniel Thies -
Picture of Core developers Picture of Plugin developers Picture of Testers

Hello Ralf,

The way the filter loads its configuration was changed a few times (beginning in 3.2). The filter's configuration now is loader even if the filter is disabled. This potentially could interfere with Mathjax being loaded and configured by other means. You may try setting the filter's config to blank and see if that works.

I would also look at the browsers console and the source code for the pages to see if there are errors.