MediaWiki Extension Math

From NovaOrdis Knowledge Base
Revision as of 18:49, 29 December 2023 by Ovidiu (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

External

Internal

Installation

cd /var/www/mediawiki-1.26.2/extensions
gunzip < .../Math-REL1_30-e13d2d5.tar.gz | tar xfv -

Modify /var/www/mediawiki-1.26.2/LocalSettings.php:

wfLoadExtension( 'Math' );

Run update.php:

cd /var/www/mediawiki-1.26.2/maintenance
php update.php

At this point the Math extension should be installed, but we also need to set math output modes in LocalSettings.php:

// Set MathML as default rendering option
$wgDefaultUserOptions['math'] = 'mathml';
$wgMathFullRestbaseURL= 'https://api.formulasearchengine.com/';

TODO: did not work.

https://kb.novaordis.com/index.php/Special:MathStatus