\n"; if ($texexp) { $texexp = str_replace('<','<',$texexp); $texexp = str_replace('>','>',$texexp); $texexp = str_replace('"','"',$texexp); echo "$texexp\n\n"; } else { echo "No text output available\n\n"; } echo "
If the following image displays correctly, set your "; echo "Administration->Server->HTTP "; echo "setting for slasharguments to file.php/1/pic.jpg: "; echo "
Otherwise set it to file.php?file=/1/pic.jpg "; echo "It should display correctly as "; echo "
If neither equation image displays correctly, please seek "; echo "further help at moodle.org at the "; echo ""; echo "Mathematics Tools Forum
Please enter an algebraic expression without any surrounding @@ into the text box below. (Click here for help.)
First here is a brief overview on how the algebra filter works. It takes an algebra expression and first translates it into TeX. It first looks for the TeX translation in the Moodle database in the table cache_filters in the field rawtext. If not found, it passes the algebraic expression to the Perl script algebra2tex.pl, which also uses the Perl library AlgParser.pm. It then saves the TeX translation in the database for subsequent uses and passes the TeX to the mimetex executable to be converted to a gif image. Here are a few common things that can go wrong and some suggestions on how you might try to fix them.