I created a numeric question using the @@ function. When I checked the preview, a notepad opened up and threw up the following error:
#!/usr/bin/perl
use lib '.';
use AlgParser;
my $parser = new AlgParserWithImplicitExpand;
my $ret;
$ret = $parser -> parse($ARGV[0]);
if ( ref($ret) ) {
$parser -> tostring();
$parser -> normalize();
print $parser -> tolatex();
} else {
print $parser->{htmlerror};
}
I got this error after enabling Algebra Notation in the filers and before and after installing asciimathML and TinyMCE math plugins. I have also enabled the Tex Notation filter. I also 'restarted' the moodle server using the startmoodle and stopmoodle programs.
What am I doing wrong?
thanks in advance,
Sri
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.