MathJax 1.1 and Moodle 2.1

MathJax 1.1 and Moodle 2.1

by Ravi Vare -
Number of replies: 4

Hi Moodlers,

I have got some information regarding moodle 2.0 and MathJax at

http://moodle.org/mod/forum/discuss.php?d=155977

But it too long and it is 1 year before posted.

Plz. can any body guide for installing mathjax in moodle 2.1

I can't find out official pages of mathjax in moodle documentation.

Plz. assist

Best Regards

TIA

Ravi

Average of ratings: -
In reply to Ravi Vare

Svar: MathJax 1.1 and Moodle 2.1

by Stefán Ingi Valdimarsson -

I asked a similar question recently, http://moodle.org/mod/forum/discuss.php?d=177814 , there I show some code which works for me, apart from ajax calls. I didn't any replies to my questions in that post so if anybody can answer my questions about ajax and theme parenting or suggest better ways of including mathjax, that would be great.

Stefan

In reply to Ravi Vare

Re: MathJax 1.1 and Moodle 2.1

by Mauno Korpelainen -

Ravi,

nothing has changed from 2.0 to 2.1 regarding the use of javascripts - if I remember it correct I even sent you some examples in email in the past smile

Anyway - check http://moodle.org/mod/forum/discuss.php?d=177814#p789751 and those old posts if this is still an unclear issue.

Average of ratings: Useful (1)
In reply to Mauno Korpelainen

Re: MathJax 1.1 and Moodle 2.1

by Ravi Vare -

Thanks Mauno ,

May I want to put all Steps here.

 

Installation-

1.Download MathJax
2.Rename Folder properly.
3.Place this(MathJax) folder at ...../moodle/lib
4.Check the installation
http://yourmoodle/moodle/lib/test
If Installation is done properly then configure.


Configuration with moodle 2.x.x
If you want to use MathJax with all themes of your moodle 2.X.X the easiest way is to go to
5. Admin -> Appearance -> Additional HTML -> Within HEAD
6. Put Attached script in it (replace path of your MathJax with it)
7. Save

Yes, That is !!!
....................................................
In my example inline maths is rendered with @i-delimiters and display maths with @d delimiters
but it's just an example and does not force anybody to use these delimiters...
---------------------------

Thanks Mauno,

Ravi

In reply to Ravi Vare

Re: MathJax 1.1 and Moodle 2.1

by Mauno Korpelainen -

I just noticed one tiny thing - if MathJax configuration is set to use

config: ["MMLorHTML.js"],

it will have problems with TeX extension AMSsymbols.js when moodle is using cache.

So I changed line

config: ["MMLorHTML.js"],

to line

config: ["TeX-AMS-MML_HTMLorMML.js"],

and now loading times went rapidly down and AMSsymbols.js is no more causing trouble...

Average of ratings: Useful (1)