LaTeX with Google chart

LaTeX on a shared host and Mediawiki and LaTeX on a host with shell access tell you how to use mimeTeX.cgi to get Latex rendered on your wiki, there is another way now - the google chart.

You can use google chart to render latex in two ways:

Solution 1
(based on the idea of Mediawiki and LaTeX on a host with shell access)

  tags.

$wgExtensionFunctions[] = "wfMtag";

function wfMtag { global $wgParser; $wgParser->setHook( "m", "returnMtagged" ); }

function returnMtagged( $code, $argv) {       $txt=''; return $txt; }

?>

Solution 2
(based on the idea of LaTeX on a shared host)

Open Math.php in $WikiPath/includes/Math.php and find this function (at the bottom): public static function renderMath( $tex, $params=array ) { global $wgUser; $math = new MathRenderer( $tex, $params ); $math->setOutputMode( $wgUser->getOption('math')); return $math->render; } Add this line after the first line: return '';

Result: public static function renderMath( $tex, $params=array ) { return ''; global $wgUser; $math = new MathRenderer( $tex, $params ); $math->setOutputMode( $wgUser->getOption('math')); return $math->render; } Then enable TeX in LocalSettings.php