jsMath is not working on our school moodle 2.0. Are there any known problems? (The filter worked fine on moodle 1.9)
It's a dead filter in moodle 2.
Before moodle 2 file lib/javascript-mod.php checked all filter folders and if there was a file called javascript.php moodle loaded content (javascripts) from that file to the header of all filtered pages.
Since moodle 2 this has not been possible anymore so either "somebody" should upgrade jsMath filter to use moodle 2 code or you could start using some other scripts like MathJax (successor of jsMath).
( ...or quickly looking at the code of javascript.php of jsMath filter it might be possible to use moodle 2 theme layout files or custom javascript file rendered with theme to do the old job if you want to stay in jsMath. I could test an optional way during the weekend.)
Thank you for your answer. MathJax works well but I have to decide if I want to display math (TeX-filter off) or to use DragMath (TeX-filter on). Is there a solution so that both work at the same time?
If you edit file lib/editor/tinymce/lib.php and change for example
if (array_key_exists('filter/tex', $filters)) {
$xdragmath = 'dragmath,';
} else {
$xdragmath = '';
}
to
$xdragmath = 'dragmath,';
you can use both. In the future selection of buttons like Dragmath should be made in administration menu (in the long run) but in core moodle 2 you can only edit init code to make changes to editor configuration.
Thank You!!! I am happy because everything is working well.
Sorry i've the same problem but i can't resolve it. How did you do?
It's about one month that trying to install jsmath with no result.
the text between the symbols $ $ is not converted.
You can't use jsMath filter with moodle 2 - there are several posts about MathJax in Mathematics Tools forum, for example http://moodle.org/mod/forum/discuss.php?d=193064
You could also read some docs about MathJax from http://www.mathjax.org/ and download a local version to your site if you don't want to use the cloud version in the example script of http://moodle.org/mod/forum/discuss.php?d=193064
Thanks a lot.
I solved the problem with the html header of mathjax.
regards