I'm on a 1.92 server, and have turned in the Tex and Algebra filters, but when I put in strings like @@y=x^2@@ or use DragMath and put in y=x^2, I get y=x^{2} in both cases.

When I used DragMath to add (x+2)x(x+2), I see:

\left(x+2\right) \times \left(x+2\right)

Any suggestions?

### Tex and Algebra Filters activated, but formatting is wrong

Number of replies: 6### Re: Tex and Algebra Filters activated, but formatting is wrong

Until there are complete docs on using TeX with Moodle my constant refrain has been to install asciimathml.

Instead of installing in /lib/filter I would install in /lib/editor/common and then edit meta.php in your standard theme to reference it a la http://moodle.org/mod/forum/discuss.php?d=103898&parent=458735

If you need fallback (you have users you can't display MathML), go to forkosh.com, download mimetex and install, then post about the latest version of asciimath with fallback (we are still working on this) and we will walk you through install.

In the interim, when using dragmath make sure you are using the current version and remember to check your export format (MoodleTex will add the dollar signs needed by the Moodle TeX filter.)

Instead of installing in /lib/filter I would install in /lib/editor/common and then edit meta.php in your standard theme to reference it a la http://moodle.org/mod/forum/discuss.php?d=103898&parent=458735

If you need fallback (you have users you can't display MathML), go to forkosh.com, download mimetex and install, then post about the latest version of asciimath with fallback (we are still working on this) and we will walk you through install.

In the interim, when using dragmath make sure you are using the current version and remember to check your export format (MoodleTex will add the dollar signs needed by the Moodle TeX filter.)

### Re: Tex and Algebra Filters activated, but formatting is wrong

Hi Marc,

Thanks for the post. I'm sorry, I should have mentioned that I'm limited in my options since I'm running on a 3rd-part managed site, and I'm not familiar with asciimathml, MathML, or mimetex. But, this may be good to pass on to my managed site folks.

Tom

Thanks for the post. I'm sorry, I should have mentioned that I'm limited in my options since I'm running on a 3rd-part managed site, and I'm not familiar with asciimathml, MathML, or mimetex. But, this may be good to pass on to my managed site folks.

Tom

### Re: Tex and Algebra Filters activated, but formatting is wrong

Hi Tom,

if you have some time left you can have a try with WIRIS tools for math.

WIRIS tools for Moodle are very easy to install (we have an automatic installer) and they work pretty well. The formula editor is WYSIWYG, that is based on icons and foders.

You only have to unzip a file in folder ../moodle/pluginwiris/ and then install automatically from ../moodle/pluginwiris/install.php

Have a look at WIRIS Plugin for Moodle

It is a commercial tool with very reasonable prices. Demo version is available for evaluation.

if you have some time left you can have a try with WIRIS tools for math.

WIRIS tools for Moodle are very easy to install (we have an automatic installer) and they work pretty well. The formula editor is WYSIWYG, that is based on icons and foders.

You only have to unzip a file in folder ../moodle/pluginwiris/ and then install automatically from ../moodle/pluginwiris/install.php

Have a look at WIRIS Plugin for Moodle

It is a commercial tool with very reasonable prices. Demo version is available for evaluation.

### Re: Tex and Algebra Filters activated, but formatting is wrong

I should point out that you can place asciimathml and mimetex anywhere you want and place direct references in your moodle resources. I have had situations where central IT staff would not install "apps" on District servers, but provided small allocations to staff that could be accessed via ftp and http.... so we stuck asciimathml in there and and then inserted appropriate script references whenever necessary......

### Re: Tex and Algebra Filters activated, but formatting is wrong

I obtained mimetex.zip and have unzipped to obtain foll files:

COPYING; gfuntype.c; gifsave.c; mimetex.h; mimetex.c; mimetex.html; README; texfonts.h

Please let me know, how to install it in my moodle installation?

COPYING; gfuntype.c; gifsave.c; mimetex.h; mimetex.c; mimetex.html; README; texfonts.h

Please let me know, how to install it in my moodle installation?

### Re: Tex and Algebra Filters activated, but formatting is wrong

Hi Tom,

no matter what tool you use they give the syntax as LaTex, Asciimathml, MathML, Maple, Maxima or MoodleTex format and you should have double dollars before and after those equations if you have used Dragmath and default export format is set to LaTex.

Sometimes filter may be on but you need to __change permissions__ of the folder containing filter (or files inside it) - in this case filter/tex if mimetex of moodle package is doing the translation - it is an exe file...

y=x^{2} with doubledollars should show $$y=x^{2}$$

and

\left(x+2\right) \times \left(x+2\right) with doubledollars should show $$\left(x+2\right) \times \left(x+2\right)$$

You could try as well for example (x+2) \cdot (x+2) with doubledollars: $$(x+2) \cdot (x+2)$$