Hi !
Here is my solution to get LaTeX working on tex filter. Have a good reading. It works !
Prerequisite:
- Imagick PHP module must be loaded because ImageMagick don't manage ghostscript. So /usr/bin/convert command failed when we want to use LaTeX
- Install last moodle stable package. In my case 2.6.1+
DO:
- Comment or delete lines 124 to 132 on latex.php file (see /path/to/moodle/filter/tex directory)
- Insert this code after line 132:
$image = new Imagick();
$image->readImage($ps);
$image->setImageResolution($density,$density);
$image->trimImage(0);
$image->paintTransparentImage($background,0,6500);
$image->setFormat($CFG->filter_tex_convertformat);
$image->writeImage($img);
return $img;
Hope it will help anyone annoying to drag and drop images on his/her text.
MAA-BIK