mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-24 15:44:33 +00:00
c4d9349786
* (bug 14202) $wgUseTeX has been superseded by the Math extension. To re-enable math conversion after upgrading, obtain the Math extension from SVN or from http://www.mediawiki.org/wiki/Extension:Math and add to LocalSettings.php: require_once "$IP/extensions/Math/Math.php"; This is an initial stab, and a few things remain to be cleaned up: * messages need to be moved from core to extension * MW_MATH_* constants should be moved to the extension from core * old back-compat math names interfaces using those constants should be removed from message files * classic edit toolbar's math button should be added from the extension (or else dropped) -- currently there's not a clean hook, but could do it by JS * couple of things like the 'armourMath' function on Language & LanguageConverter may want to be redone just as an unconditional, if that's simpler. Setting $wgUseTeX alone will no longer have any affect. The var's still there for the moment as a few bits still need to be fully moved out from core.
65 lines
1.9 KiB
PHP
65 lines
1.9 KiB
PHP
<?php
|
|
/**
|
|
* MediaWiki math extension
|
|
*
|
|
* (c) 2002-2011 various MediaWiki contributors
|
|
* GPLv2 license; info in main package.
|
|
*/
|
|
|
|
/** For back-compat */
|
|
$wgUseTeX = true;
|
|
|
|
/** Location of the texvc binary */
|
|
$wgTexvc = dirname( __FILE__ ) . '/math/texvc';
|
|
/**
|
|
* Texvc background color
|
|
* use LaTeX color format as used in \special function
|
|
* for transparent background use value 'Transparent' for alpha transparency or
|
|
* 'transparent' for binary transparency.
|
|
*/
|
|
$wgTexvcBackgroundColor = 'transparent';
|
|
|
|
/**
|
|
* Normally when generating math images, we double-check that the
|
|
* directories we want to write to exist, and that files that have
|
|
* been generated still exist when we need to bring them up again.
|
|
*
|
|
* This lets us give useful error messages in case of permission
|
|
* problems, and automatically rebuild images that have been lost.
|
|
*
|
|
* On a big site with heavy NFS traffic this can be slow and flaky,
|
|
* so sometimes we want to short-circuit it by setting this to false.
|
|
*/
|
|
$wgMathCheckFiles = true;
|
|
|
|
|
|
/**
|
|
* The URL path of the math directory. Defaults to "{$wgUploadPath}/math".
|
|
*
|
|
* See http://www.mediawiki.org/wiki/Manual:Enable_TeX for details about how to
|
|
* set up mathematical formula display.
|
|
*/
|
|
$wgMathPath = false;
|
|
|
|
/**
|
|
* The filesystem path of the math directory.
|
|
* Defaults to "{$wgUploadDirectory}/math".
|
|
*
|
|
* See http://www.mediawiki.org/wiki/Manual:Enable_TeX for details about how to
|
|
* set up mathematical formula display.
|
|
*/
|
|
$wgMathDirectory = false;
|
|
|
|
|
|
////////// end of config settings.
|
|
|
|
|
|
$wgExtensionFunctions[] = 'MathHooks::setup';
|
|
$wgHooks['ParserFirstCallInit'][] = 'MathHooks::onParserFirstCallInit';
|
|
$wgHooks['GetPreferences'][] = 'MathHooks::onGetPreferences';
|
|
|
|
$wgAutoloadClasses['MathHooks'] = dirname( __FILE__ ) . '/Math.hooks.php';
|
|
$wgAutoloadClasses['MathRenderer'] = dirname( __FILE__ ) . '/Math.body.php';
|
|
|
|
$wgParserTestFiles[] = dirname( __FILE__ ) . "/mathParserTests.txt";
|