Atto: Matrix editor

Maintained by Picture of Geoffrey Rowland Geoffrey Rowland
Moodle Atto Editor plugin for TeX/MathJax Matrices and Arrays.
83 sites
4 fans

Moodle Atto Editor plugin for TeX/MathJax Matrices and Arrays.

Edit matrices and arrays in Moodle 2.7, or later, using the MathJax or TeX filter. Includes templates for 1xn 2xn, 3xn and mxn matrices and a range of brackets and braces.


1. The MathJax filter to be enabled (recommended) or the TeX filter enabled (or, in Moodle 2.8, both)

Administration > Site administration > Plugins > Filters > Manage filters

Don't forget to also enable the appropriate filter in the relevant course:

Administration > Course administration > Filters

 2. The matrix editor button (matrix icon) to be added to the Atto editor toolbar:

Edit Administration > Site administration > Plugins > Text editors > Atto HTML editor > Atto toolbar settings > Toolbar config, to give, for example:

insert = equation, matrix, charmap, table, clear

Immediately after installation and configuration you may need to clear your Moodle server caches:

Administration > Site administration > Development > Purge all caches

and local browser cache for correct display.


Screenshot #0


Picture of Geoffrey Rowland
Geoffrey Rowland (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of David Mudrák
    Sat, 3 Oct 2015, 10:31 PM

    Hi. Thanks for sharing this plugin with the community. The plugins team is currently busy with other development tasks for the upcoming Moodle 3.0 release, so please expect delays in the review and approval process. Thanks for your understanding and patience, we will do our best to get to reviewing your plugin soon.

  • Picture of Geoffrey Rowland
    Mon, 5 Oct 2015, 5:12 PM
    Unsure how to deal with the line-length warnings and errors for settings.php. Effectively, settings.php is acting like a lang file.
    Will attend to the others.
  • Picture of Geoffrey Rowland
    Mon, 5 Oct 2015, 5:26 PM
    On inspection, am also unsure of how to deal with other warnings and errors. Code structure is similar/identical to (derived from) existing atto_equation and similar Atto plugins,
  • Picture of David Mudrák
    Thu, 15 Oct 2015, 5:35 PM

    No worries Geoffrey. I checked the generated warnings and they do not seem valid in many cases. It is indeed ok to format the long strings in your settings.php this way. What seems to be valid is the extra @param line in the docblock for your atto_matrix_strings_for_js() as that function does not actually accept any parameters. Other warnings seem to be raised because of using the reserved keyword in the Based on @package .... You should be able to get rid of them by simply removing the @package from there, if you want.

    What caught my eye is that you are including $OUTPUT->header() in your ajax.php response. I think it should be removed and all you want to return is the filter_text() output. I believe the header() does not produce any content in this case anyway, right?

    This is really nice UI widget and front-end for the filters. Good idea, nice design and well implemented. I am happy to approve it now. You are cleared to land, welcome to the Plugins directory!

  • Ricardo Caiado
    Wed, 7 Dec 2016, 8:43 PM
    Any upgrade to Moodle 3.2?
Please login to post comments