AsciiMath Delimiter not working with MathJax?

AsciiMath Delimiter not working with MathJax?

by Stanislav Shap -
Number of replies: 2

On Moodle 3.11 and MathJax 2.7.9

In site admin/plugins/filters/MathJax I added a backtick (`) as explained by the text at the bottom of the page.


But testing the delimiter in a question does not seem to work:



MathJax still renders the TeX, so it is enabled, just the AsciiMath is not working.

What could be causing this issue? Is there anything else that needs to be enabled for AsciiMath to be used?

Thanks.

Average of ratings: -
In reply to Stanislav Shap

Re: AsciiMath Delimiter not working with MathJax?

by Leon Stringer -
Picture of Core developers Picture of Particularly helpful Moodlers

It looks like you need to configure this in MathJax configuration too. Based on the configuration in CONTRIB-384 I managed to get this to work with the configuration:

MathJax.Hub.Config({
    config: ["MMLorHTML.js", "Safe.js"],
    errorSettings: { message: ["!"] },
    skipStartupTypeset: true,
    messageStyle: "none",
    jax: ["input/TeX","input/MathML","input/AsciiMath","output/HTML-CSS","output/NativeMML"],
    extensions: ["tex2jax.js","mml2jax.js","asciimath2jax.js","MathMenu.js","MathZoom.js"],
});
In reply to Leon Stringer

Re: AsciiMath Delimiter not working with MathJax?

by Stanislav Shap -
Hello Leon,

Thank you for this solution! It worked perfectly.