LaTeX on WordPress
February 17, 2007 pm28 8:03 pm
Apparently, it’s fairly easy. I just need to learn the vocabulary. For those of you on WordPress, look here. No importing pdfs. TeX direct into your posts (and comments, I assume).
Test:
By adding a space after the '$', the code doesn't execute. Here is the code that produced the line above, with space added: $ latex H\frac{\partial i}{\partial m}\left|\Psi(o)\right>=M\left|\Psi(!)\right> $
This is fabulous! .
Hrm, okay, I’ll obviously have to go read up on making it work :-)
Sweet! I am doing this immediately.
I do not believe it is enabled for comments, but here’s a quick test: . Nevertheless it is very cool!
Does a space help?
$ latex E=mc^2 $
Apparently not…
But it’s nice to see latex gaining a foothold in the mainstream…
nah. I experimented, and nothing flew, so I posted a comment back on the wordpress blog, asking if it was going to be made available for comments as well. That’s really too bad, if it’s not, because it would really make discussions more readable.
It should work in comments now, though on some themes like this sone the background may be off.
When I came to wordpress 10 months ago, I was following a blogger’s recommendation. For a while I cursed the decision: I don’t feel I had the control over layout that I really wanted. No Java allowed. Insufficient control over pages and subpages. And in return all I got was themes that looked nice.
But month by month it has gotten better. Matt (the commenter above) and his team keep adding stuff, mostly good stuff, and nice bits and pieces of control as well. And now, today?
I am really, really impressed with this development, especially the speed with which it was enabled for comments (which normally don’t allow images).
I don’t know if there’s a better way to do it, but I’ve splitting the commands using
<code>
tags, and that seems to work.So:
<code>$</code><code>latex e^{i\pi} + 1 = 0 $</code>
gives$
latex e^{i\pi} + 1 = 0 $
, and that of course gives .Hmm, I don’t know why the code split lines like that, though it has worked well for me otherwise.
This is silly, but I have to try it…
$ latex \cos^2 \theta + \sin^2 \theta = 1 $
Oops, I seem to be missing something…
Okay, I get the space vs. no space bit now..
I have to say, their syntax for setting the background color and font size sets off “XSS attack” alarm bells in my head, but presumably they aren’t that stupid, right?
Someone who knows more than me might know. I didn’t know I could control background or font.