No, not the rubber stuff; the math stuff. According to the WP codex, it
should be as simple as this:
$latex i\hbar\frac{\partial}{\partial t}\left|\Psi(t)\right>=H\left|\Psi(t)\right>$
OK, so that doesn't work :\. Ah right, that's just for when you
have the blog under the wordpress.org itself. Right … mimetex then.
* finds wp-latexrender.zip here.
* looks for install procedure.
* looks for clear install procedure.
* tries the install anyway.
* reads the mimetex.php in full because while everyone says
to update the path directories, it's unclear what to set them to
especially as they seem to be double.
* sighs and rewrites the whole function because the variables and how
they are used are … silly.
Right. How about this then: "[tex]x^2+y^2[/tex]"?
Yaaay! :D. And now for some more interesting forms:
OK, so apparently I can't put the labels into mimetex. Let's see
what else will and will not work ...
Okay ... so the default version doesn't like newlines either. So let's
tweak the formula so that all whitespace (and repeated white) it
replaced by a single space ... '/\s+/ /g
' should do
the trick.
And to try some inline stuff:
. Or maybe
for something a little smaller. Yay, that works as well.
Anyway, for anyone who also wants math on their site, you can get mimetex from from http://www.forkosh.com/mimetex.html.
Although the site starts with the source, there are precompiled binaries in
the back somewhere.
I would recommend rewriting mimetex.php, though: I found it
somewhat tricky to get it working. It relies on 4 paths, but it doesn't exactly
say what they were supposed to represent or what they should be set to;
when I tried it locally the only way to get them to work was to do stuff that
had little relation to the fill-in-the-blanks parts of the paths.
It doesn't like whitespace either in or around the formula, so removing that
can be useful; so is feeding the through
rawurlencode()
if you want to put it into the url: HTMLTidy
really doesn't like all the backslashes and stuff in the url.
Adding options to the [tex] tag is also a good idea (like size; see above).
And what's especially useful is a preview mode that doesn't render
to a file. That way you won't be left with hundreds of little temporary bitmaps
for all the failed variants. (I suppose I could give you mine,
but it's not finished yet.)
Lastly, if you're new to TeX, consider using this site as an editor. There is a larger manual on the mimetex maintainer's site, but this little tool is very useful.