Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter blue3141

    (@blue3141)

    Hi,
    after spending some time messing with the plugins, I found that the problem was the compatibility with “Simple MathJax”. In your plugin there’s this couple of lines

    if (typeof MathJax !== 'undefined') {
            MathJax.Hub.Queue(['Typeset', MathJax.Hub]);}

    In both quiz.js (for frontend) and question.js (under quiz). That made both plugins (LearnPress and Simple MathJax) go mad. I commented it in quiz.js and commented only the if (typeof MathJax !== 'undefined') and its brackets in the question.js file (in order to always do MathJax.Hub.Queue).

    Now the Simple Mathjax works fine on every page but Learnpress ones, and Learnpress loads its own expression, showing math correctly (it formats LaTeX to MathJax). It would be amazing a good integration between the two plugins (it would just require loading the config and custom LaTeX preamble) to make everything work with Simple MathJax, but anyway math is shown everywhere now so it’s fine.

    Thank you for your attention and time!

Viewing 1 replies (of 1 total)