インストール先URL → http://www.300000.jp/
<?php $wgExtensionFunctions[] = "MimetexExtension"; function MimetexExtension() { global $wgParser; # register the extension with the WikiText parser # the first parameter is the name of the new tag. # In this case it defines the tag <example> ... </example> # the second parameter is the callback function for # processing the text between the tags $wgParser->setHook( "tex", "render_Mimetex" ); } /** * Renders $text in Mimetex */ function render_Mimetex($input, $argv, $parser = null) { if (!$parser) $parser =& $GLOBALS['wgParser']; // $img_url is the url the mimetex will be sent to. // IMPORTANT!! The URL below should be the link to YOUR mimetex.cgi if possible $img_url = "http://***.******.***/mimetex.cgi?".$input; // Sets the output of the tex tag using the url from above, and the input as // the Alt text. It's important to note that there is no error output added yet. $output = "<img src=\"$img_url\" alt= \"$input\" />"; return $output; } ?>
require("extensions/mimetex.php");
'open' => "\\<math\\>", 'close' => "<\\/math\\>",という2行を探し,ここを次のように変更する。
'open' => "\\<tex\\>", 'close' => "\\</tex\\>",
$wgGroupPermissions['*']['createaccount'] = false; $wgGroupPermissions['*']['edit'] = false; $wgShowIPinHeader = false;