Plugin Directory

Latex for WordPess

Installation instruction

  1. Upload latex fold to the /wp-content/plugins/ directory
  2. Activate the plugin Latex for WordPress through the 'Plugins' menu in WordPress
  3. create a directory named cache in the diretory wp-content, and make it writable by your webserver (chmod 777 will do the trick).
  4. done

uninstall instruction

  1. deactivate the plugin or remove the plugin files.

More configurations

The step below you can customize this plugin:

  1. The forumla has Class tex. You can add custom CSS for tex in your CSS style file.
  2. $regex = '#\$\$(.*?)\$\$#si'; in plugins/mimetex/mimetex.php define the format of a formula. If you want to use [tex][/tex] to wrap a formula, just change $regex to $regex = '#\[tex\](.*?)\[/tex\]#si';.
  3. var $server = "http://l.wordpress.com/latex.php?latex="; is URL of the latex service. Sometimes, it doesn't work(however, it never happened to me), you need to change to a new one. Just search public mimetex at Google to find a new one. Or create your own one. As writed below, it is quite easy.

Install your own latex service

As I known, MimeTex is the easiest one to build up:

  • download appropriate mimetex executable program from http://www.forkosh.com/mimetex.html. change the file name to mimetex.cgi or mimetex.exe(the postfix depend on your system). Upload it to your /cgi-bin/ diretory, make it executable by your webserver(chmod 777 will do the trick).
  • check url http://yourdomain/cgi-bin/mimtex.cgi?\alpha\geq\beta to make sure it works.
  • change var $server to appropriate one like var $server = "http://yourdomain/cgi-bin/mimetex.cgi?";
  • You need to change the $img_format to corresponded image type your service generated. As in the case of MimeTex, the generated type is gif.

Download

FYI

Compatibility beta

Your Setup

Log in to vote.

The Consensus

No data

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(4 ratings)