MediaWiki Extension Math: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:
* https://www.mediawiki.org/wiki/Extension:Math
* https://www.mediawiki.org/wiki/Extension:Math
=Internal=
=Internal=
* [[Media_Wiki_Native_Installation#Install_Extensions|MediaWiki Native Installation | Install_Extensions]]
* [[Media_Wiki_Concepts#Useful_Extensions|MediaWiki Concepts | Extensions]]


=Installation=
=Installation=
* Go to https://www.mediawiki.org/wiki/Extension:Math and download the latest version.
* Extract the file (names similarly to Math-REL1_30-e13d2d5.tar.gz) in /var/www/mediawiki-1.26.2/extensions:
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/';
<font color=darkkhaki>'''TODO''': did not work.</font>
https://kb.novaordis.com/index.php/Special:MathStatus

Latest revision as of 18:49, 29 December 2023

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