MathType for Moodle

Type and handwrite mathematical notation in Moodle with MathType. The popular equation editor for MS Word is now seamlessly integrated into Moodle.

Caution

These apps are part of the set WIRIS math & science.

MathType is provided as a subscription that allows you to enjoy the same quality solution in your LMS and word processors. Free usage is available under specific circumstances. Please read the subscription conditions and prices at MathType store.

ChemType is a flavor of MathType designed to help you work with chemical notation. A personalized toolbar with the common chemical symbols but also a different user experience adapted to chemical notation needs. Look for the ChemType icon.

10_mathtype_for_moodle.png
20_mathtype_for_moodle_-_handwrite.png

Install MathType for Moodle

To install MathType plugin for Moodle 2 & Moodle 3, you should install two components:

  • The MathType filter. It is a compulsory component.

  • Depending on your Moodle version and configuration you may also install:

    • MathType plugin for ATTO

    • MathType plugin for TinyMCE

Download

MathType filter

view in Moodle page

MathType for Atto

view in Moodle page

MathType for TinyMCE

view in Moodle page

Requirements

  • Moodle 2.x or higher

  • mbstring extension must be installed and enabled in the server.

  • There must be no errors in {MOODLE_URL}/admin/environment.php.

Install MathType filter

MathType filter for Moodle is a Moodle filter responsible for rendering the formulas, while the plugins above allow you to edit them using the editor built into Moodle.

To install the filter, it suffices to copy the content of the package into the folder filter under the root of Moodle.

Install MathType plugin

Install MathType plugin for Atto

To install it just copy the wiris directory into lib/editor/atto/plugins under the root of Moodle.

Install MathType plugin for TinyMCE

For Moodle 2.4 and higher

Starting from Moodle 2.4, MathType plugin for TinyMCE is a standard Moodle plugin. To install it just copy the tiny_mce_wiris directory into lib/editor/tinymce/plugins under the root of Moodle.

For Moodle 2.2 and 2.3

  • Copy the files in TinyMCE plugins folder

  • You need to install a pre-configured version of the MathType plugin for TinyMCE that can be found here. Unzip the above file and copy the tiny_mce_wiris directory into lib/editor/tinymce/tiny_mce/<tiny_mce-version>/plugins under the root of Moodle.

Activate MathType icons in the TinyMCE editor

Edit the file lib/editor/tinymce/lib.php and before the line (which is by the end of the file) return $params; insert the following code:

$params['plugins'] .= ",tiny_mce_wiris";
$params['theme_advanced_buttons3'] = "tiny_mce_wiris_formulaEditor,tiny_mce_wiris_CAS,|," . $params['theme_advanced_buttons3']; 

Enable the filter

To enable the MathType plugin for Moodle, log in as administrator and go to Settings>Site administration>Plugins>Filters>Manage filters. You will see the MathType filter, and you will be able to enable it.

enable_filter_.png

To avoid problems, the MathType filter must be the first in the list. For sure it must be placed before Convert URLs into links and images. If you enable client-side rendering, Convert URLs into links and images filter must be disabled, as it is incompatible with this solution.

Enable MathType client-side rendering

Caution

It is is strongly recommended to leave server-side rendering enabled, which is set by default. It is only recommended to enable client-side render in high-concurrency environments, where a very large number of simultaneous users need to represent several complex mathematical expressions simultaneously.

mathtype_settings.png
rendertype_client.png

The Render type option set to Client enables MathType client-side rendering. MathType uses Javascript, instead of server-side PHP, to convert LaTeX or MathML to formulas. Set to PHP (option set by default), it calls the Wiris rendering service from the filter module. This latter option may be less efficient in contexts with high concurrency.

Caution

To activate the client-side rendering feature, it is important to disable the 'Conver URLs to into links and images' filter in the filters administration page.

filter_disabled.png

Enable Chemistry editor

Log in as administrator and go to Settings>Site administration>Plugins>Filters>Math & Science by WIRIS. Mark the checkbox Chemistry editor if it is not checked by default.

editor_setting.png

Testing

The best way to check all is OK is just to create a formula, save, and display it. Additionally, there is an info page at {MOODLE_URL}/filter/wiris/info.php.

Uninstall MathType for Moodle

First, you need to start uninstalling all components that depend on the filter.

Uninstall MathType for Tiny or Atto

Go to editor settings (Atto, TinyMCE or both) and uninstall MathType plugin.

uninstall_tiny.png
uninstall_atto.png

Uninstall MathType filter

Once you have uninstalled all the components depending on the filter, you can uninstall MathType filter. MathType filter can be uninstalled from general filter settings.

enable_filter_.png

Settings Math & Science by WIRIS

To view and manage the general settings log in as administrator and go to Settings>Site administration>Plugins>Filters>Math & Science by WIRIS.

editor_setting.png