Skip to content

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: H\frac{\partial i}{\partial m}\left|\Psi(o)\right>=M\left|\Psi(!)\right>

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> $

About these ads
18 Comments leave one →
  1. JBL permalink
    February 17, 2007 pm28 8:49 pm 8:49 pm

    This is fabulous! \frac{(2n)!}{n!n!} \sim \left(\frac{n}{e}\right^n\sqrt{2\pi n}.

  2. JBL permalink
    February 17, 2007 pm28 8:50 pm 8:50 pm

    Hrm, okay, I’ll obviously have to go read up on making it work :-)

  3. February 17, 2007 pm28 10:03 pm 10:03 pm

    Sweet! I am doing this immediately.

  4. February 18, 2007 am28 1:10 am 1:10 am

    I do not believe it is enabled for comments, but here’s a quick test: E=mc^2 . Nevertheless it is very cool!

  5. rdt permalink
    February 18, 2007 am28 1:59 am 1:59 am

    Does a space help?

    $ latex E=mc^2 $

  6. rdt permalink
    February 18, 2007 am28 2:02 am 2:02 am

    Apparently not…

    But it’s nice to see latex gaining a foothold in the mainstream…

  7. February 18, 2007 am28 2:02 am 2:02 am

    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.

  8. February 18, 2007 am28 2:53 am 2:53 am

    It should work in comments now, though on some themes like this sone the background may be off.

  9. February 18, 2007 am28 2:57 am 2:57 am

    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?

    E=mc^2

  10. February 18, 2007 am28 5:48 am 5:48 am

    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 e^{i\pi} + 1 = 0 .

  11. February 18, 2007 am28 5:50 am 5:50 am

    Hmm, I don’t know why the code split lines like that, though it has worked well for me otherwise.

  12. rdt permalink
    February 19, 2007 am28 10:05 am 10:05 am

    This is silly, but I have to try it…

    $ latex \cos^2 \theta + \sin^2 \theta = 1 $

  13. rdt permalink
    February 19, 2007 am28 10:06 am 10:06 am

    Oops, I seem to be missing something…

  14. rdt permalink
    February 19, 2007 am28 10:07 am 10:07 am

    \cos^2 \theta + \sin^2 \theta = 1

  15. rdt permalink
    February 19, 2007 am28 10:08 am 10:08 am

    Okay, I get the space vs. no space bit now..

  16. February 24, 2007 am28 3:55 am 3:55 am

    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?

    e^{i\pi}">alert(1)

  17. February 24, 2007 am28 4:16 am 4:16 am

    Someone who knows more than me might know. I didn’t know I could control background or font.

Trackbacks

  1. understanding » e to the x

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 601 other followers

%d bloggers like this: