Menu

#417 serve mathjax and webfonts locally

open
None
5
2013-09-30
2013-09-30
Lee Worden
No

It will be a way smoother experience once WW rolls the MathJax scripts into its ResourceLoader packages, rather than making the browser load them all from mathjax.org. It's also an option now to roll in math fonts as webfonts, allowing WW to skip MathJax on all Firefox browsers, without requiring people to install the math fonts on their computers and then say so in their wiki preferences.

For both these things, I'll want to crib from Moritz Schubotz's LaTeXML version of the MediaWiki Math extension. Here are relevant links:

On 09/26/2013 12:16 PM, Frédéric WANG wrote:

It just uses MediaWiki resource loader

https://git.wikimedia.org/blob/mediawiki%2Fextensions%2FMath.git/231b75343fccb9cb4331c436b0a77bd2b943a109/modules%2Fext.math.mathjax.enabler.mml.js

to choose between a css stylesheet with @font-face rules (Gecko)

https://git.wikimedia.org/blob/mediawiki%2Fextensions%2FMath.git/231b75343fccb9cb4331c436b0a77bd2b943a109/modules%2Fext.math.fonts.css

or the module that loads all MathJax pieces (other browsers)

https://git.wikimedia.org/blob/mediawiki%2Fextensions%2FMath.git/231b75343fccb9cb4331c436b0a77bd2b943a109/modules%2Fext.math.mathjax.enabler.js

Discussion

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.