The basic recipe is here: http://www.mediawiki.org/wiki/LaTeX_on_a_shared_host
- Find
WIKI_HOME/includes/Math.php - Backup it!
- Find public static function renderMath($tex, $params=array())
- Change function body to
public static function renderMath( $tex, $params=array() ) {
return '<img class="tex" src="/cgi-bin/mimetex.cgi?' . rawurlencode($tex) . '" alt="TeX: ' . rawurlencode($tex) . '">';
}
src="/cgi-bin/mimetex.cgi... because I've added mimetex.cgi into my cgi-bin directory. See also http://avbwiki.blogspot.com/2008/09/enable-tex.html
No comments:
Post a Comment