parasiteLaTeX, Wordpress LaTeX plugin

Wordpress.com added a new feature today allowing for \LaTeX output in blog posts. Interestingly enough, they use a script that takes \LaTeX input and outputs an image of the compiled output. The url follows a format:

http://l.wordpress.com/latex.php?latex=[yourmathcodehere] &bg=ffffff&fg=000000&s=0

So I’ve decided to write a simple plugin that leeches off of this url to generate LaTeX output for your blog.

Installation:

  1. Download the plugin: parasiteLaTeX-plugin_1.0.zip (Plugin was pulled as by Matt’s request) [zip, 2KB].
  2. Install the plugin by unzipping the file, parasiteLaTeX-plugin.php, into your wp-content/plugins directory.
  3. Activate the plugin in the Administrative interface. That’s it!

To use LaTeX in your blog posts:
Surround your math code with: [ tex] and [/ tex] (removing the spaces between [ and tex).

Enjoy! Here's a demo:

Z_1 = n_Q V = (M \tau / 2 \pi \hbar^2)^{3/2} V

3 Comments

  1. Eugene says:

    Does it work in the comments?

    y[n] = \sum_{k=-\inf}^{\inf} x[k] h[n-k]

    Posted 2/18/2007 at 4:51 am | Permalink
  2. Michael says:

    Well, I enabled it in the comments (by default, it’s turned off).

    Posted 2/18/2007 at 6:17 am | Permalink
  3. Matt says:

    Yeah we’d rather not encourage this type of hotlinking.

    Posted 2/18/2007 at 11:34 pm | Permalink

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*