On a new system (windows 8.1 Apache , PHP 5.4.12, latest Moodle 2.6.2+ weekly release) I am trying to setup the Vienna University Offlinequiz activity module (see http://www.academic-moodle-cooperation.org/en/modules/offline-quiz/) because that would allow me to switch from the University proprietary OCR system to a free and open alternative for paper and pencil tests (yes we still do a lot of these !) and also (even more important) that would allow my student to review their answers and questions feedback after the test.
But obviously as this module is creating pdf documents with multichoice questions included in the offline test, I can't use MathJax. Fortunately the offlinequiz code allow the use of the TeX filter and in that case math formulas are included in pdf documents.
I discovered I have a problem I never encountered before with paths to dvips, latex and convert binaries:
- If I put them inside double quotes, creation of tex, dvi and png files works fine (easy to verify), but as is_file and is_executable PHP functions return false for paths included in double quotes I must comment the line
in the filter_tex_updatedcallback function in filter/tex/lib.php because if I don't do it GIF images will be created instead of PNG ones
- If I remove the double quotes I get all the green checks in the filter settings page and filter_tex_convertformat is not turned to GIF, but obviously nothing is working as my paths include spaces so in filterdebug I can see that as expected all return codes are now equal to 1.
With the number of people using the teX filter this problem is surely well known but I never read about it.
Of course this is not a big problem for me as I can get the system to work.