1. Home
  2. Guidance
  3. Digital Accessibility
  4. Accessibility for Technical Content
  5. Accessible Maths: Moodle guidance
  6. Accessible Maths: Moodle guidance

Accessible Maths: Moodle guidance

How to add equations in Moodle

You can add maths anywhere there is an editor box and it will be rendered using MathJax, which makes it accessible to screen readers.

Adding equations with the Moodle equation editor

To graphically insert an equation with the Equation Editor, first open the Expanded view (second row of editor buttons) and then the equation editor symbol (calculator), highlighted in the image.

Atto editor with the expanded button highlighted and the equation button highlighted.

You can then either pick symbols/characters from the equation palette or enter in LaTeX.

atto equation editor palette

Writing LaTeX maths into Moodle

You can write LaTeX syntax directly in the text editor between \( … \) or \[ … \] for display and inline maths, respectively.

For multiline equations in Moodle, you can use the eqnarray or align environments using the “&” to control alignment as usual. For example:

Left: Multiline LaTeX commands in the Moodle text editor. Right: rendered multiline maths output

Note, if you want the text editor view to display over multiple lines (as in the example above) when using the eqnarray or align environments, you must use Shift Enter (this corresponds to an html <br> tag) so Moodle interprets it as a single LaTeX block (rather multiple paragraphs). Alternatively you can enter the above commands as usual in Moodle’s html mode, but remember that formatting is not preserved.

Help with ‘Maths processing error’ in MathJax content

MathJax content can sometimes not display as expected, this may be due to the incorrect MathJax library being loaded. The following guide ‘How to fix Moodle content loading older MathJax libraries‘ may help.

Was this article helpful?

Related Articles