## Atto: Matrix editor

atto_matrix
Maintained by Geoffrey Rowland
Moodle Atto Editor plugin for TeX/MathJax Matrices and Arrays.
91 sites
5 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.

Requirements:

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

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

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:

and local browser cache for correct display.

### Awards

• 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.

• 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.
• 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,
• 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!

• Wed, 7 Dec 2016, 8:43 PM