[Mediawiki-l] LaTeX math support

beachboy22 at verizon.net beachboy22 at verizon.net
Thu Dec 7 17:21:15 UTC 2006


Yes, very nice typo. 

I have yet another newbie question. 
 
My hosts server (at siteground.com) is running Linux. My local comp is Windows. On step 2 of your instructions should I follow for Windows or Linux? If I follow for Linux am I somehow supposed to install on my server with siteground by uploading the installer or something like that?
 
Thanks a lot.


----- Original Message ----
From: Alexis Moinet <alexis.moinet at fpms.ac.be>
To: MediaWiki announcements and site admin list <mediawiki-l at Wikimedia.org>
Sent: Thursday, December 7, 2006 3:52:14 AM
Subject: Re: [Mediawiki-l] LaTeX math support


beachboy22-H+0wwilmMs3R7s880joybQ at public.gmane.org a écrit :
> I have *tired* reading http://meta.wikimedia.org/wiki/Enable_TeX

Nice typo

> What else do I need and how do I use all this to enable the Tex math support?
> 
> Thanks a lot.

1. You need to enable LaTeX in Localsettings.php :

add/uncomment this :

$wgUseTeX           = true;
$wgMathPath         = "{$wgUploadPath}/math";
$wgMathDirectory    = "{$wgUploadDirectory}/math";
$wgTmpDirectory     = "{$wgUploadDirectory}/tmp";

2. you need to have texvc compiled in your math directory

OR

2' it seems that you can get texvc pre-compiled for Linux at this address : http://sourceforge.net/project/showfiles.php?group_id=34373

OR (for your local Windows, you might get in some trouble compiling texvc)

2'' follow these instructions (Windows only), it woks fine :

http://meta.wikimedia.org/wiki/Help:Running_MediaWiki_on_Windows#Alternative_Solution

to make things short : install MikTeX, replace/patch math.php and add in Localsettings.php the path to the binary latex.exe and dvips.exe (which are in your MikTeX install)

3. On your local, you have to Install ImageMagick (you can either install it from the binary at imagemagick.org or using the 2'' tip above). I guess you'll need to check whether your host provider enables ImageMagick

and change in Localsettings.php (I'm not sure whether you actually need the two first line for LaTeX, but you need them for image upload):

$wgEnableUploads       = true;
$wgUseImageResize      = true;
$wgUseImageMagick = true;
$wgImageMagickConvertCommand = "C:/path/to/convert.exe";







_______________________________________________
MediaWiki-l mailing list
MediaWiki-l at Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l


More information about the MediaWiki-l mailing list