Algebra Notation filter throwing an error

Re: Algebra Notation filter throwing an error

by Mauno Korpelainen -
Number of replies: 0

Nice to hear it's working...

Did you download the tinymce plugins from my testpackage http://korpelainen.net/mathplugins.zip ? ( http://moodle.org/mod/forum/discuss.php?d=123806 )

File AM.js is using double @:s for forcing latexmathml tags to be rendered as TeX images from external server for all browsers - also for Firefox that would normally render latexmathml as MathML... and the external renderer is given by
var JeMTcgiloc = "http://korpelainen.net/cgi-bin/mathtex.cgi?\\gammacorrection{1.4}"; in file AM.js

Normal asciimathml is parsed in AM.js with `...`, latexmathml with single dollars and latex with double dollars and image fallback is using another variable AMTcgiloc only for those browsers that do not support MathML and renders notations from `...` and $...$ always as MathML for Firefox.

Algebra filter is normally using the same double @:s to render limited set of algebra notations as TeX - it parses tags with perl and passes notations to files of Tex filter / Mimetex .

In practise it is possible to modify either filter.php of algebra filter or AM.js to use different delimiters if you want to use both of them but I have always let algebra filter to be disabled and used either TeX filter (Latex) or ASCIIMathML/LatexMathML for rendering maths.