Jump to content

LatexPlugin

From ChemWiki

Testing of the LATEX plugin after upgrade to MediaWiki version 1.25.1

It seems superficially to work. Adding this wiki markup:

 <math>\frac{-b\pm \sqrt{b^{2}-4ac}}{2a}</math> 

gives this:

b±b24ac2a


However this ...

<math>\frac{\partial \left\langle E \right\rangle}{\partial T} = \frac{\partial}{\partial T} \left\{ \frac{1}{Z} \int E \exp{-\beta E} \mathrm{d}E \right\}</math>

gives an error:

 Failed to parse (Missing <code>texvc</code> executable. Please see math/README to configure.): 

The active Math extension lives in ./extensions/Math

LocalSettings.php has the following for the Math plugin ...

require_once ("extensions/Math/Math.php");

#$wgUseMathJax = true; // enabeling MathJax as rendering option

#$wgDefaultUserOptions['mathJax'] = true; // setting MathJax as default rendering option (optional)

#$wgMathDisableTexFilter = true; // or compile "texvccheck"

Checking for the latest version ... downloaded and recompiled ...

https://www.mediawiki.org/wiki/Extension:Math

cd /tmp

wget https://extdist.wmflabs.org/dist/extensions/Math-REL1_25-2998273.tar.gz

 tar xvzf Math-REL1_25-2998273.tar.gz

 cd Math

 make 

 cd ..

 mv /var/www/html/wiki/extensions/Math /var/www/html/wiki/extensions/Math-old

 mv /tmp/Math /var/www/html/wiki/extensions/Math

 chown -R apache:webmaster  /var/www/html/wiki/extensions/Math 

 and now I get ...

ET=T{1ZEexpβEdE}