Question

MathJax is a very nice javascript library to write LaTeX code within an html file. I'm using it in a Wordpress blog and everything works fine when the post is viewed in its actual address. But, the math parts are not rendered in Google Reader and seen as $x=\lefty*(\ b+c right)$ for instance.

The script is loaded with the statement in Wordpress header and it's not included in the RSS file. Even if it is included, Google Reader disables script tags.

Is there a proper way to fix this problem so that the subscribers can see the nicely rendered formulae in their readers?

Was it helpful?

Solution

You could combine the MathJax Preview feature (see the preRemoveClass option at http://www.mathjax.org/resources/docs/?options/hub.html) with image generator urls, like those detailed at LaTeX equivalent to Google Chart API

This would require you to start encapsulating your LaTeX in script tags. For instance, the following (untested example) might work:

<span class="MathJax_Preview"><img src="http://chart.apis.google.com/chart?cht=tx&chl=ax^2%2Bbx%2Bc%3D0" /></span>
<script type="math/tex">ax^2+bx+c=0</script>

For more support you should post at:

https://math.stackexchange.com/

MathJax help forum at sourceforge

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top