mitKrish / concerto-platform

Automatically exported from code.google.com/p/concerto-platform
0 stars 0 forks source link

MathJax with Concerto #25

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,
I am trying to integrate MathJax with concerto to display the math equations. 
However, putting the headers as specified by mathjax into index.php doesn't 
seem to work. 

Has anyone successfully used mathjax with concerto before ?

I am on centos using concerto 3.8.0

Appreciate your help on this.

Regards,
Rama

Original issue reported on code.google.com by ramat...@gmail.com on 24 Sep 2012 at 1:57

GoogleCodeExporter commented 9 years ago
Hope someone is looking at this...
Would be grateful if any help can be provided.

Regards,
Rama

Original comment by ramat...@gmail.com on 25 Sep 2012 at 2:06

GoogleCodeExporter commented 9 years ago
Hi,

you have to force MathJax-typesetting manually. Just insert 

MathJax.Hub.Queue(["Typeset",MathJax.Hub,this.container.attr("id")]);

at the end of the "this.loadTemplate" function in Concerto.js:

    this.loadTemplate=function(html,head){
        [...]
    MathJax.Hub.Queue(["Typeset",MathJax.Hub,this.container.attr("id")]);
    };

Best regards,
Sebastian

Original comment by Sebastia...@gmail.com on 4 Oct 2012 at 8:52

GoogleCodeExporter commented 9 years ago
Hi Sebastian,
Works. Many thanks.
Is it possible to get this in the html templates as well ?

Original comment by ramat...@gmail.com on 8 Oct 2012 at 10:34

GoogleCodeExporter commented 9 years ago
You can insert any javascript code in HTML template source code view.
You can also insert javascript code in HTML template head tag.

Original comment by LisPrzem...@gmail.com on 6 May 2013 at 5:40