New Resource - Using MimTeX in Moodle

New Resource - Using MimTeX in Moodle

by Colin Fraser -
Number of replies: 7
Picture of Documentation writers Picture of Testers
I know a lot of people are not overly enthralled with the default MimeTeX, the TeX Notation filter, but it is there and it is for many of us the introduction to what is currently a very arcane element of Moodle. It is very nearly a Black Art, well the myths around it would have it that way.

As usual, I got annoyed that some things were not working for me so I worked up the energy and created a new set of pages called Using MimeTeX. These pages were, originally, for other purposes, but when I noticed there was little or nothing in Moodle that I could make any sense of being fairly clueless that I am, I just went ahead and did them, and found out later that there was not a lot of other help out there.

Please look there and fix up my obvious botches and appallingly badly written examples. Feel free to add whatever you think might help other people feeling their way through the process of using MimeTeX. In this way, you might be able to introduce them to AsciiMath and Geogebra and JSMath and so on.




Average of ratings: Useful (1)
In reply to Colin Fraser

Re: New Resource - Using MimTeX in Moodle

by Mauno Korpelainen -

Colin,

Thanks for adding those Mimetex pages to Docs.

Moodle Docs and moodle.org are currently using Tex live and I tested some maths in http://docs.moodle.org/test/Development:MediaWiki_TeX_test when Eloy & company had installed Tex Live to moodle.org about year ago.

Before your new doc pages http://www.forkosh.com/mimetexmanual.html was one of the rare addresses documenting the use of Mimetex - adding new pages about syntax of different math renderers & possible external links to other docs are very useful for new moodlers...

Like you have noticed syntax of mimetex and for example Tex Live is not equal - mimetex has some custom symbols and commands that do not work for example in Tex Live and on these pages of moodle.org (with tex filter) - and on the other hand Tex Live has many commands and symbols that do not work in mimetex (if local distribution of Tex Live is not installed - most moodle sites still use mimetex with tex filter)

In reply to Mauno Korpelainen

Re: New Resource - Using MimTeX in Moodle

by Colin Fraser -
Picture of Documentation writers Picture of Testers
Wow, this is actually quite bizarre! There is a lot of work done on TexLive which is not used in Moodle outside these pages, but none on MimeTeX which is a default TeX notation in Moodle.. Looks like TeXLive is a better option btw.. but for one reason or another..

So is MimeTeX going to remain the default Tex option? Every copy of M2.0 I have installed has it as default, and I assumed that at this late stage if there was no change there was not going to be one.

What we really need though is a simple, clear and complete description of how to change the default Tex package and get it going correctly. Obviously MimeTeX is limited, which probably makes it the better default option - less to configure for different environments.

I have been playing around with different things but inevitably, it either does not work or I cannot be sure that I am using it right - not a lot seems to change. AsciiMath gives me colour and better sizes and such, but the different control sequences become confusing when something doesn't work. I am playing with what you gave me about lines and such, and it works beautifully, but I cannot seem to replicate that in AsciiMath. There seem to be more questions than ever now.

Does the MimeTeX have to be turned off to get the full advantage of AsciiMath? How do we get two or more packages, say AsciiMath and Geogebra and JSMath working together? Can we get them working together? And so on...ad infinitum...
In reply to Colin Fraser

Re: New Resource - Using MimTeX in Moodle

by Colin Fraser -
Picture of Documentation writers Picture of Testers
I have downloaded and installed the TeXLive files, which was pretty painless actually, just went in like a dream. Works well too, using ImageMagic for its converter btw. Much larger than MikTeX though.

Now all Ihave to do is figure out how to use it...big grin
In reply to Colin Fraser

Re: New Resource - Using MimTeX in Moodle

by Mauno Korpelainen -

A full distribution of Tex Live 2009 takes about 2 Gigabytes of hard disk space - Mimetex takes less than 1 megabyte. On my Vista test PC I am using ImageMagick like you and in administration of Tex filter I have

Path of latex binary.... C:\texlive\2009\bin\win32\latex.exe
Path of dvips binary.... C:\texlive\2009\bin\win32\dvips.exe
Path of convert binary... C:\imagemagick\convert.exe

and you can control default packages with LaTeX preamble settings.

On my Debian test server I have full Tex Live 2007 (default package in stable Lenny) together with successor of mimetex - cgi mathtex - which works like cgi mimetex but allows using of external \usepackage commands etc. Unfortinately Mathtex can be used only on Unix/Linux environment - Tex Live can be installed to all environments.

The good point in local install (local PC etc) is that you can actually create full Latex documents and save them as pdf files, images or other formats to get nice printable maths. Because LaTeX is a primarely a document markup language and document preparation system for the TeX typesetting program it could be used for many other things than just outputting maths - usually people need only a few mathematical notations...

In reply to Colin Fraser

Re: New Resource - Using MimTeX in Moodle

by Mauno Korpelainen -

Welcome to Wonderland of World Wide Web Maths big grin

Yes, we can get them working together - or select which ones to use for each case. The main problem is that we do not have a single (simple) "Math tool" that could do everything we want the way we want it to happen. They all have limitations.

Modular Object-Oriented Dynamic Learning Environment 2.0 will allow us to create and use more plugin based tools separately installed - last week I tested for example direct tex filter image fallback for editor plugins and it works both in moodle 2.0 and 1.9. One of the main pains has been to find a renderer that could work on all environments and like you have seen people have all kinds of problems with missing permissions, disableded functions or security settings. Google Chart API Tex and MathTran are nice external options like cgi Mimetex but they have some limitations and they do not work offline. Tex Live is too large to be included to moodle and even too large to be installed on most hosted sites that may have less free space than Tex Live alone takes. MathPlayers, Adobe SVG Viewers and other plugins can't be installed to all computers of our users and those plugins are also a little buggy. Java applets like GeoGebra and GeoNeXT are among the best free tools available and we have some good commercial tools like Wiris available but still the whole system of rendering maths and graphs on web pages and moodle needs a lot of new standards, co-operation, testers, documentors and other people willing to use their time to support Open Source tools and development of new online tools and resources...

It's a Never Ending Story really...

In reply to Mauno Korpelainen

Re: New Resource - Using MimTeX in Moodle

by Colin Fraser -
Picture of Documentation writers Picture of Testers

Yes, I am coming to the conclusion I have stepped through the Looking Glass - and there does not seem to be a way back.

Anyway, after discussions with Marc I have come to understand that naming these pages Using MimeTeX was in error, inaccurate really, so I have recreated them as Using TeX Notation.   

In reply to Colin Fraser

Re: New Resource - Using MimTeX in Moodle

by Colin Fraser -
Picture of Documentation writers Picture of Testers
Just to keep this alive a little longer, I have now added a bit more to the pages on Using TeX notation. There are three pages, that each page looks at different things in TeX Notation. Hopefully, what can now happen is that anyone who wants an idea on how to use it will find these pages and have a reasonably friendly starting point.

The topics covered:
TeX Notation in Moodle
Language Conventions
Available Characters
Windows and TeX
Reserved Characters and Keywords
Maths Mode
Superscripts, Subscripts and Roots
Fractions
Brackets
Ellipsis
Maths symbols available in Moodle
Symbols
Arrows
Delimiters and Maths Constructs
Greek Letters
Fonts
Size of displays
Colour
Geometric Shapes
Circles
Creating Arcs
The \picture Command
Lines
Squares and Rectangles
Controlling Angles
Intersecting Lines
Lines and Arcs
Triangles

Can anyone think of anything else that could go in there? Please, go and look and if there is anything that is woefully inaccurate please feel free to change it. I would ask that you add a comment into the Page Comments of you change something though. The only thing I could not get around was the layout issues, so I just put everything into tables and hoped that that works..big grin

I am now paying around, at this stage, with a course on Elementary Trigonometry in TeX Notation, but that is proving a little time consuming, so it may take a while. As soon as it is done I want to put it into the Exchange or perhaps as a feature in the Demo site.