The path of latex and the path of dvips are not working. I believe that to get DragMath to work Tex has to be working.
How do I get Tex to install correctly?
Hi James,
in moodle 1.9 Dragmath does not require enabled and functional TeX filter - usually the missing icon is caused by cache and when you refresh your browser icon pops up to editor toolbar. If not files might be in wrong place or some other script or error in code might prevent icon to appear. In moodle 2.0 Dragmath will be by default disabled unless TeX filter is on.
Did you download the latest version from http://moodle.org/mod/data/view.php?d=13&rid=1454&filter=1 ?
(read also documentation in http://docs.moodle.org/en/DragMath_equation_editor )
Mathematics Tools forum http://moodle.org/mod/forum/view.php?id=752 has some similar cases and if you find the those binaries (correct paths for latex and dvips executables depending on your distribution of Latex and operating system) TeX might start working - otherwise moodle will try to use mimetex (executable) from folder filter/tex.
Check first that there are no SPACES after
/usr/bin/latex
and
/usr/bin/dvips
It sounds like files from lib/editor folder were not replaced with the files from this package - if your unzip command has default value [N]one selected. Unzip command should overwrite all existing files (or you should choose [A] if it is asked )..
In moodle 1.9 core files lib/editor/htmlarea/htmlarea.php and lib/editor/htmlarea/dialog.js should be replaced with the modified files of Dragmath package and if you upgrade moodle you will need to upgrade DragMath as well or these files will get overwritten.
There seems to be a tiny "bug" in lib/editor/htmlarea/popups/dlg_ins_dragmath.php and line 25:
if (!file_exists("$CFG->dirroot/lib/dragmath/applet/lang/$drlang.xml")) {
$drlang = 'en';
}
should be
if (!file_exists("$CFG->dirroot/lib/DragMath/applet/lang/$drlang.xml")) {
$drlang = 'en';
}
because Dragmath is in folder named DragMath and not dragmath.
Marc, can you fix this to your latest files?