Dear OpenScholar Users,
Have you had any experience using MathJax on OpenScholar? As a mathematician, I like to have mathematical formulas on my web pages. I am also most familiar with LaTeX, which I use for writing papers and lecture notes. MathJax, www.mathjax.org, aims to make this easy. Our system manager installed OpenScholar and MathJax on our server. Initially, the math rendering was sporadic and the AMS Symbols did not render. He moved MathJax up a level in the directories and things worked better, but the time for rendering slowed down from one second to three or more seconds. Here is an example of what I did:
www.math.iit.edu/~openscholar/meshfree/pages/kernel-functions
Does OpenScholar support MathJax formally?
What are the tricks to making this work the smoothest?
Thanks,
Fred
Comments
Hi Fred, OpenScholar does not
Hi Fred,
OpenScholar does not formally support MathJax yet. As we have discussed a while back, we would love to support it and it's something that is been requested as a feature by our users (we have a lot of statisticians around here). It looks like there are also other drupal developers that are interested. See http://drupal.org/project/mathjax . We can all contribute to that module and we will be happy to include it in OpenScholar distribution.
thanks,
Ferdi
We can do it :-)
We can do it :-) http://drupal.org/node/1088682
Follow up
Hi Ferdi,
Thanks for your interest. So far, I am doing okay with the unsupported MathJax and look forward to more seamless support, but I do have one problem that perhaps you can help with. I would like to define a lot of Latex macros at the beginning of my web page that uses MathJax. Right now I do this by typing in
(\newcommand{\cx}{\mathcal{X}} ... lots of other macros ...)
and it works fine. However, I need to cut and paste or type all of this into every new web page. And it is hard to update.
I would like to store that large bit of code above in a file, say
FredMathJaxMacros.txt
that could be updated and expanded as necessary, and then with a short snippet of code at the beginning of my OpenScholar web page
be loaded into the page and executed. I tried <iframe ... but the OpenScholar editor seemed to chew it up. I am html/javascript/openscholar ignorant. Is there a way to do this?
Thanks,
Fred
Seems like you could use php
Seems like you could use php include() in a theme file.