Question

I'm trying to add Tex support to my application and I would like to use MathJax to render Mathematics formulas client side since I gave up the server side solution explained here.
The MathJax library is pretty fat (30.000 files) and it can't be easily installed on App Engine due to the files number limitation.

I have no experience with MathJax library so I'm open to other strategies like:

  • Available MathJax CDN
  • Cutting down some directories/files to reduce the package's files number.

Do you know any way to use Mathjax on Google App Engine?

Was it helpful?

Solution

You could use http://mathjax.connectmv.com : we are not a CDN, but we publicly host the most recent MathJax files for free.

We have expire headers set at 2 weeks and Access-Control-Allow-Origin: * to allow for cross-site access.

OTHER TIPS

Since March 2011 MathJAX has its own CDN, so you can now use it without uploading any files to GAE. Just make sure this is in any page's header:

<script type="text/javascript" async
  src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?...">
</script>

If you delete the png file, be sure to set the imageFont value to null in the configuration, so that MathJax will not try to use the image fonts. Peter is correct, they are for use with browsers that don't handle @font-face CSS directives (this includes iPhone/iTouch/iPad, though iOS4.2 now handles it properly and MathJax should soon handle that), but are also used for Firefox when MathJax is loaded from a local file (a file:// URL) that is not in the same directory or a subdirectory of the one containing the HTML file that loaded it. If you are not in either of those situations, it is safe to remove the image fonts.

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