LaTex symbols not display correctly in IE7

LaTex symbols not display correctly in IE7

by azie ishak -
Number of replies: 3

Hi all...

Im using moodle DragMath to use math symbols and using ASCIIMath for displaying the LaTEX symbols.

My problems is it works find in mozilla browser but not display well in the IE7. Why is that?

thank you.

Average of ratings: -
In reply to azie ishak

Re: LaTex symbols not display correctly in IE7

by Mauno Korpelainen -

Original AsciimathML script rendered all tags as MathML and IE has never supported MathML. David Lippman wrote the first fallback script that rendered LatexMathML or Latex (if set by script) using given few rules and symbols to gif or images with some external tex renderer that was originally Mimetex (cgi)

Since that we have tested for example MathTran, MathTex, latexRender and tex of Google Chart API as fallback but the fallback and available symbols or syntax depend always on given renderer or installed packages of Latex distribution.

So the next question is which version of AsciimathML do you have, does it use some image fallback (AScgiloc at the beginning of script) and what kind of syntax is causing problems...

It is also possible to use MathPlayer plugin for IE but it needs to be installed separately to each IE and is not therefore a good option.

In reply to Mauno Korpelainen

Re: LaTex symbols not display correctly in IE7

by azie ishak -

Hi all..

Thx for the reply..

1) the version of ASCIIMath..how to check it?

2) you 'r right about the plugin been istalled in each IE whenever we trying to display in IE. so is ther another solution that can solve this problems..??

thank you very much.

In reply to azie ishak

Re: LaTex symbols not display correctly in IE7

by Mauno Korpelainen -

If it is one of Peter's or David's scripts the version is found from the beginning of script when you open it with some text editor. They have written several versions with or without image fallback, with or without asciisvg ( + David's plugin versions in http://www.imathas.com/editordemo/demo.html )

If you don't have any renderer for latex you can try for example http://korpelainen.net/gmoodle/lib/editor/common/AMgoogle.js - it is using google chart api tex with mimetex syntax inside single dollars - if you want to render also latex inside double dollars you should have two settings selected:

var avoidinnerHTML = false;
var translateLaTeX = true;

which make function simpleLaTeXformatting to do simple LaTeX formatting.

Default value of avoidinnerHTML = true because I have used that script together with some graph scripts and tinymce and innerHTML tags can have sometimes problems with other javascripts or plugins. On my test sites I have reserved double dollars for tex filter LaTeX and used only single dollars for LatexMathML rendered by AsciiMathML scripts.

Some examples are also visible in http://korpelainen.net/gmoodle

and some previous discussions:

http://moodle.org/mod/forum/discuss.php?d=137375

http://moodle.org/mod/forum/discuss.php?d=137243