On Thu, Nov 18, 2010 at 1:33 PM, John Edenfield <
[email protected]> wrote:

> I have isolated the problem by changing the following in the
> LocalSettings.php.
>
> $wgMathPath ="/var/lib/mediawiki/math"
> $wgMathDirectory="/var/lib/mediawiki/images/math
>

In MediaWiki configuration variable parlance, "path" usually refers to web
URL paths, while "directory" refers to filesystem paths.

$wgMathPath is the URL path that is used to reference the generated images
in the resulting HTML; this means you'll have things in the page like this:

  <img class="tex" src="/var/lib/mediawiki/math/a/b/abcdefgh.png"
alt="a^2+b^2=c^2" />

The browser then tries to load
http://yourwiki.example.com/var/lib/mediawiki/math/a/b/abcdefgh.png -- since
there's no image there, it displays the alternate text which is the original
TeX source.

It looks like you need to set $wgMathPath = "/images/math".

-- brion
_______________________________________________
MediaWiki-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Reply via email to