Importing Math equation to the Book

Importing Math equation to the Book

by Sya Rahim -
Number of replies: 5

Hi,

I am currently testing out the Book activities on Moodle 3.2.3 . Everytime I copy and paste content from my word document( equations included), all the equations will not appear. I would have to manually insert the equations as pictures. Is there an easier way to import the equations/symbols?

Average of ratings: -
In reply to Sya Rahim

Re: Importing Math equation to the Book

by Eoin Campbell -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Getting equations from Word into Moodle depends on what format the equations are in. If you use the Microsoft Equation Editor (the post 2007 version), then the Microsoft Word File Import/Export (Book) plugin will convert them into MathML on import. If you use the much older Equation 3.0 editor, then the best you can do is to convert the equations into images and then import the file.

In either case, copying and pasting content from Word to a Moodle text editing file, whether Atto or the TinyMCE editor, will not copy anything that isn't text. 

In reply to Eoin Campbell

Re: Importing Math equation to the Book

by Sya Rahim -

Thanks, Eoin. Will attempt to work around it.

In reply to Sya Rahim

Re: Importing Math equation to the Book

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
Hi

Mathematical formulas are not compatible between various document formats. Check the documentation for the Mathematical tools forum https://moodle.org/mod/forum/view.php?id=752 and choose the best method for you.
In reply to Visvanath Ratnaweera

Re: Importing Math equation to the Book

by Sya Rahim -

Thank you for your reply. I would check it out.

In reply to Sya Rahim

Re: Importing Math equation to the Book

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
Hi

Don't let the discussions on STACK in the Mathematics tools forum https://moodle.org/mod/forum/view.php?id=752 distract you. (STACK https://moodle.org/plugins/qtype_stack is an advanced question type for maths.)

You need a simple maths filter like the https://docs.moodle.org/en/TeX_notation_filter or the https://docs.moodle.org/en/MathJax_filter. There are all kinds of graphical interfaces to the GUI (aka Text) editor of Moodle. The text below that looks like this:
$$ f(x)=\int_{-\infty}^x~e^{-t^2}dt $$

P.S. It is a bad idea to copy-and-paste from Word in to the Moodle GUI (aka Text) editor!
Attachment texnotation.png