# Description

Author: benson_muite

Description:
Hi, Can you please install the mathjax mediawiki extension:

as well as the syntax highlighting extension:

http://www.mediawiki.org/wiki/Syntaxhighlight

Version: unspecified
Severity: enhancement

# Details

Reference
bz42061
bzimport set Reference to bz42061.
bzimport added a subscriber: Unknown Object (MLST).

benson_muite wrote:

These are useful for the wikibook:

http://en.wikibooks.org/wiki/Parallel_Spectral_Numerical_Methods

You want these installed on wikibooks..? Which language? Does the community support this?

benson_muite wrote:

Yes, I would like these installed. Currently needed in English. Not sure if the community supports this, but these packages are essential for rendering mathematics correctly. Mathjax is supported by a large number of mathematics organizations, see http://en.wikipedia.org/wiki/MathJax

Syntax highlighting is less essential, but would also be quite useful.

All wikis already have SyntaxHighlight and MathJax support via the Math extension. You can turn on MathJax rendering by going to https://en.wikibooks.org/wiki/Special:Preferences#mw-prefsection-rendering

benson_muite wrote:

Thanks. Is it possible to make this the default for a particular set of pages rather than a personal preference?

No.

What we can do is to define it as a default preference for anonymous users and newly registered accounts.

Existing user accounts will keep their current setting.

benson_muite wrote:

That should be fine. Is it possible to change some of the local configuration settings for mathjax so that it is easier to display LaTeX formulae and equation numbers. In particular, the sections below relevant to mathjax:

<?php

1. This file was automatically generated by the MediaWiki 1.18.1
2. installer. If you make manual changes, please keep track in case you
3. need to recreate them later. #
4. See includes/DefaultSettings.php for all configurable settings
5. and their default values, but don't forget to make changes in _this_
6. file, not there. #
7. Further documentation for configuration settings may be found at:
8. http://www.mediawiki.org/wiki/Manual:Configuration_settings

#require_once("/mediawiki/extensions/Math/Math.php");
#$wgTexvc = '/mediawiki/extensions/Math/math/texvc'; require_once("$IP/extensions/MathJax/MathJax.php");
MathJax_Parser::$MathJaxJS = 'http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'; MathJax_Parser::$MathJaxConfig = "$IP/extensions/MathJax/mwMathJaxConfig.js"; MathJax_Parser::$disabled = false;
MathJax_Parser::$do_number = true; MathJax_Parser::$do_dollar = true;
MathJax_Parser::$do_dollardollar = true;$wgParserCacheType = CACHE_NONE;

This need to be discussed first on the local wiki.

Once you got a local consensus, we'll be able to fulfill your request.

benson_muite wrote:

Have started a discussion. Thanks.

benson_muite wrote:

Have started a discussion. Thanks.

benson_muite wrote:

Example of how such a configuration helps LaTeX users create a wiki can be found here: http://www.sherryruan.com/mediawiki/

Have started a discussion. Thanks.

benson_muite wrote:

Discussion is here:

benson_muite wrote:

Related discussion is here:

https://bugzilla.wikimedia.org/show_bug.cgi?id=31406