Latex filters

Latex filters

by Andrea Centomo -
Number of replies: 6
I'm new with Moodle so sorry if my question listen trivial.

I use the standard filter using mimetex but I'm not completely
satisfied of the images quality.

So I tried to install LatexRender on Mandrake 10.2 (Moodle 1.5).  All seem to work properly but images of formulas are not visible! They exist in the moodledata
folder but they are not displayed.

Someone could help me?

Other question: are there other Latex filters?

Thanks in advance
Andrea




Average of ratings: -
In reply to Andrea Centomo

Re: Latex filters

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
It may not help you directly, but the development version of Moodle (1.6dev) has support for LaTeX built in (you still need the binaries in place though).

Failing that there has been lots of discussion - both in this forum and the other general filters one - about getting LaTex working on earlier versions. Did you find any of this information and if so, how far did you get before it all went wrong?
In reply to Howard Miller

Re: Latex filters

by Andrea Centomo -
Thank you!

I have downloaded the developement version and I have merged tex
into 1.5 ... it works.

Only a question: it seems that the rendering is not at the same level
of latexrender, am I wrong?

Andrea
In reply to Andrea Centomo

Re: Latex filters

by Davide Cervone -
You might consider the jsMath filter as an alternative. It does not create images, but rather renders the mathematics in the browser using native fonts. You can get it from the "contributions" section of the Moodle CVS site:

http://http://cvs.sourceforge.net/viewcvs.py/moodle/contrib/jsmath
or you can get the whole thing from
http://download.moodle.org/download.php/modules/jsmath.zip

Hope that helps.

Davide

In reply to Davide Cervone

Re: Latex filters

by Andrea Centomo -
Many thanks!

Actually I have downloaded the entire .zip package but I do not find anywhere a readme file to install it. Am I wrong?

Andrea
In reply to Andrea Centomo

Re: Latex filters

by Davide Cervone -
When I download the file, I get a README.txt file (and six other files), but it does look like the link above is broken (I probably entered it incorrectly). Here is the correct link:

http://download.moodle.org/download.php/modules/jsmath.zip

If you still don't see the README, you can get it from the CVS repository linked in my message above. You will need ALL the files in that directory. One is called jsMath.zip, but that is only part of what you need.

Hope that helps. Let me know if you still have trouble.

Davide

In reply to Davide Cervone

Re: Latex filters

by Luca Mazzola -

Hi,

we are tring to force an integration of jsMath with MimeTeX filter.

We modified tex filter: it doesn't operate if jsMath is active and javascript are available in the user's browser.

At now, the modified version operate quite well on moodle 1.6.0dev; because in 1.5.3+ we noticed some strange behaviours. 

All the difference is hosted into file filter.php. The attached file is from the last version.

As minor enhancement we provide a possible solution for the well-known feature of TeX filter: when someone modify the code, every double escape ('\\') is trasformed into a singol ones ('\'): our hypotesi is that every sequence of double escape is directly followed by a space, and we substitute every ('\ ') with ('\\ ') before passing the code to the filters.

Every comment, problem and suggestion is wellcome.

TIA, LkM.