Brion Vibber wrote:
Inline TeX support for math formulae is now enabled on Wikipedia in all languages on phase 3; please try it out and report any functional problems.
Has it been committed to CVS yet? I tried to get TeX support to work on my Disinfopedia and ran into some problems.
On dim, 2003-01-05 at 23:51, Sheldon Rampton wrote:
Brion Vibber wrote:
Inline TeX support for math formulae is now enabled on Wikipedia in all languages on phase 3; please try it out and report any functional problems.
Has it been committed to CVS yet?
Yes, it's been in CVS for about a week and a half (plus a couple more recent tweaks).
I tried to get TeX support to work on my Disinfopedia and ran into some problems.
It's a little tricky. I tried to get some of it in the docs, but I'm kind of new to it myself...
Dependencies: OCaml - http://caml.inria.fr/ TeX, ImageMagick (should be available with most Linux distributions)
Setup: Under the directory that contains the PHP source files should be a 'math' subdirectory which contains the OCaml source for the texvc support utility; run 'make' and copy the subdir (or at least the executables) under the install dir too.
To confuse you further, you also need a 'math' and a 'tmp' directory that are writable by the web server process; this 'math' is where rendered PNG images are dropped, and needs to be accessible via the web. It shouldn't harm anything for 'tmp' to be web-accessible too, but you don't need it to be.
Config: in LocalSettings.php, you need to set these variables: $wgMathPath = "..."; # *URL* path to 'math' dir $wgMathDirectory = "..."; # *File* path to 'math' dir $wgTmpDirectory = "..."; # File path to 'tmp' dir
And, um, it _should_ work. :)
Also, check if your database has a 'math' table; if you originally set it up with an earlier version of the software, execute maintenance/patch-math.sql to add it.
(I probably left some steps out.)
-- brion vibber (brion @ pobox.com)
wikitech-l@lists.wikimedia.org