Mediawiki extensions: mathjax
From wikinotes
While technically not an extension, mathjax can be used as an alternative to tex for rendering math in mediawiki.
Usage
In order to use math rendering, all you need to do is enter LaTeX code betweeen <math></math> tags. MathJax will render it client-side provided that JavaScript is enabled.
<math>\exp_a b = a^b, \exp b = e^b, 10^m </math>
Install
Builtin Support
The current method of using mathjax.
simpleMathJax
This has replaced the legacy mathjax font rendering system.
cd $www/mediawiki/extensions git clone https://github.com/jmnote/SimpleMathJax.git# /usr/local/www/mediawiki/LocalSettings.php require_once "$IP/extensions/SimpleMathJax/SimpleMathJax.php"; $wgSimpleMathJaxSize = 80;mathJaxLegacy
cd $www/mediawiki/extensions mkdir MathJax cd MathJax curl -o MathJax.php http://people.cs.kuleuven.be/~dirk.nuyens/Extension_MathJax/MathJax.php.txt curl -o mwMathJaxConfig.js http://people.cs.kuleuven.be/~dirk.nuyens/Extension_MathJax/mwMathJaxConfig.js# /usr/local/www/mediawiki/LocalSettings.php require_once("$IP/extensions/MathJax/MathJax.php"); # If the font isn't being scaled upwards or downwards with $wgSimpleMathSize, # You can force the global settings:# $IP$/components/com_jwiki/extensions/MathJax/mwMathJaxConfig.js # add: "HTML-CSS": { scale:80 }, # before: TeX: {