Wordpress.com added a new feature today allowing for output in blog posts. Interestingly enough, they use a script that takes
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:
- Download the plugin: parasiteLaTeX-plugin_1.0.zip (Plugin was pulled as by Matt’s request) [zip, 2KB].
- Install the plugin by unzipping the file, parasiteLaTeX-plugin.php, into your wp-content/plugins directory.
- 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:
3 Comments
Does it work in the comments?
Well, I enabled it in the comments (by default, it’s turned off).
Yeah we’d rather not encourage this type of hotlinking.