How to use the MathJax library in Google App Engine

I am trying to add Tex support to my application, and I would like to use MathJax to display the client side of math formulas since then. I refused the server solution explained here .
The MathJax library is rather thick (30,000 files) and cannot be easily installed on the App Engine due to the limited number of files .

I have no experience with the MathJax library, so I am open to other strategies, such as:

  • Affordable MathJax CDN
  • Reduce some directories / files to reduce the number of package files.

Do you know how to use Mathjax in Google App Engine?

+4
source share
3 answers

You can use http://mathjax.connectmv.com : we are not a CDN, but we publicly post the latest MathJax files for free.

We have final headers set to 2 weeks, and Access-Control-Allow-Origin: * to provide cross-site access.

+5
source

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

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

If you delete the png file, be sure to set the imageFont parameter to null in the configuration, so that MathJax will not try to use image fonts. Peter is right, they are intended for use with browsers that don’t process @ font-face CSS directives (including iPhone / iTouch / iPad, although iOS4.2 now handles it correctly, and MathJax should handle it soon), but also used for Firefox, when MathJax is loaded from a local file (file: // URL), which is not in the same directory or in a subdirectory of the one that contains the HTML file that loaded it. If you are not in any of these situations, you can remove the image fonts.

+2
source

Source: https://habr.com/ru/post/1334644/


All Articles