ver 3.4.10 revert the change in ver 3.4.8.
ver 3.4.7 make the space around inline formula to be optional. It’s closed by default. But I recommend turn on it on Chinese blog.
ver 3.4.6 Add a space around the inline formula.
ver 3.4: Now you can turn off displaying formula as images. Use this when your server has problem to fetch LaTeX images.
ver 3.3: Fix the bug to display LaTeX source code.
ver 3.2: Load MathJax only when needed.
ver 3.0: Using MathJax and Images to display LaTeX formula.
Using MathJax and images, this plugin provides a general and elegant solution to add and display your mathematical fourmula, no matter the visitors are visiting your blog or read from Google Reader.
You can type the formula in LaTeX, in title, posts, pages and comments:
$$\alpha+\beta\geq\gamma$$add an inline formula
$$!\alpha+\beta\geq\gamma$$add an LaTeX equation in math mode(it will be displayed centerly in a single line).
\(\alpha+\beta\geq\gamma!\)display the source of the LaTeX formula. Just add a
The plugin uses copy of Mathjax from their CDN Service by default, you can also install your own MathJax. It’s easy, just following the link in the setting page of this plugin.
There are lots of websites provide such services, for example, wordpress.com and Google Charts. The plugin provide four candidates for you, and you can choose any of them or customize it to use your own LaTeX image generating service.
Other features are added in version 3.2+:
- The mathjax script is loaded only needed. This would spead up your blog a lot.
Chinese document: http://zhiqiang.org/blog/it/LaTeX-for-wordpress.html
LaTeXfold to the
- Activate the plugin
LaTeX for WordPressthrough the ‘Plugins’ menu in WordPress
- The diretory
/wp-content/plugins/LaTeX/cacheshould be writable by your webserver (chmod 777 will do the trick).
- deactivate the plugin or remove the plugin files.
In most cases, you don’t need any more configurations. However, you have lots of choices in the setting page of this plugin if you like.
In the setting page, you can choose or customize the LaTeX image server and the MathJax server, or you can turn off the MathJax if you don’t like the slow MathJax.
Install your own LaTeX image 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.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\betato make sure it works.
var $serverto appropriate one like
var $server = "http://yourdomain/cgi-bin/mimetex.cgi?";
- You need to change the
$img_formatto corresponded image type your service generated. As in the case of MimeTex, the generated type is
- The background of my blog is black and the words are black. The equation by this plugin is black and the backgound is white. How can I make them consistent?
When the generated images are transparent, they are fit to any background. Otherwise, you need to use a LaTeX image service which supports custom background and foreground color.
http://l.wordpress.com/LaTeX.php?bg=ffffff&fg=000000&LaTeX=is a good candidate. The bg parameter defines background color and fg parameter defines foreground color, you can customize them to any RGB colors.
Hi i have a Sensei Woothemes wp plugin that create online courses, and the problem is that it doesn’t recognize the latex code to display the maths formulas so it should be modified(code should be integrated to its core files). can annyone help me figure out this thing i am willing to pay 100$ by paypal to the one who figure it out. this is my e-mail : firstname.lastname@example.org feel free to contact me
Contributors & Developers
“LaTeX for WordPress” is open source software. The following people have contributed to this plugin.Contributors