Note: You are currently viewing documentation for Moodle 3.6. Up-to-date documentation for the latest stable version of Moodle is likely available here: MathJax filter.

MathJax filter

From MoodleDocs

New feature
in Moodle 3.6!

The MathJax filter parses Moodle texts and displays some TeX expressions appearing within specific tokens within Moodle texts as a Mathematics.

On Moodle.org

Forums vs Moodle Docs

For those who don't know, Moodle.org employes mediawiki for documentation, and employs Moodle for the forums. MathJax will not as yet be used for Moodle Docs, so there may be differences between what Maths look like on the forums and what they look like on Moodle Docs. No, there really is not adequate documentation on the usage of Tex on the Docs side either ;-)

Setting of Filter on Forums

MathJax has the capability to use a variety of tokens, to display inline and display math, and to display ASCIIMathML. Unfortunately, there is no indication as yet as to how MathJax for Moodle.org will be configured

Extensions

There is no indication of how extensions will be address on Moodle.org==

Generally

If the default text editor (Atto) is used, it provides an equation editor for creating Mathematical expressions in TeX format within Moodle texts.

Site administration settings

The MathJax filter is enabled by default in Administration > Site administration > Plugins > Filters > Manage filters. Normally, the MathJax filter should be at the top of the list of filters.

The MathJax filter works without any additional configuration (using the MathJax Content Delivery Network). However, MathJax may also be installed locally if desired, to save on bandwidth or because of local proxy restrictions. See Administration > Site administration > Plugins > Filters > MathJax for further details and configuration settings.

MathJax has a setting for "TeX filter compatibility" that changes the behaviour to match as closely as possible, the "Tex filter". This means it will support all the different delimiters of the Tex filter, and display all equations as "inline". It is only recommended to enable this setting if you have existing equations written manually using a variety of delimiters supported by the old filter. It may be hard to determine if this is the case except by searching the database for equations of the form:

 [tex] equation [/tex], <tex> equation </tex> or \( equation \)

The MathJax project is large and detailed with many options, which a Moodle admin can make use of with the MathJax filter.

See also