eckayech@engmail.uwaterloo.ca wrote:
I have installed Mediawiki 1.2.6 on my website and wish to make use of the math support. However, when I type in mathematical expressions, or copy-and-paste expressions from other wikis where the math support is working, the code simply shows up in the page without being interpreted. I have contacted the webhosting company I use, and they say that the server is running Red Hat Linux, and that Imagemagick, TeTex and Ghostscript are installed.
First, it looks like you haven't enabled TeX processing. In your LocalSettings.php there should be these lines:
## If you have the appropriate support software installed ## you can enable inline LaTeX equations: # $wgUseTeX = true; $wgMathPath = "{$wgUploadPath}/math"; $wgMathDirectory = "{$wgUploadDirectory}/math"; $wgTmpDirectory = "{$wgUploadDirectory}/tmp";
Uncomment that $wgUseTeX line.
Second, this won't work unless you've compiled or installed the texvc helper program. The source is in the 'math' subdirectory; it requires ocaml 3.04 or later iirc.
There's a precompiled binary for Linux/x86 available for download: http://prdownloads.sourceforge.net/wikipedia/texvc-linux-x86-20040107.tar.gz...
Drop 'texvc' into the math subdirectory and make sure it has the executable bit set.
Third, it will want to put temporary files and generated image files into subdirectories under the 'images' directory. Make sure that this directory is writable by the web server.
Unfortunately it can be a bit tricky to diagnose problems in the chain of events that is texvc, but once you've checked all these it should either be working or give some kind of error message. :)
-- brion vibber (brion @ pobox.com)