Testing, testing. Is this thing on?

One very nice feature of WordPress is its support for math mode with \LaTeX commands for formatting equations:

i\hbar\frac{\partial}{\partial t}\Psi =  \hat{H}\Psi

There.  Schrödinger’s Equation. Oooooh! This was done by incorporating the following code into the HTML source of this posting:

$latex i\hbar\frac{\partial}{\partial t}\Psi =  \hat{H}\Psi$

Here’s another example, the derivation of the formula for the volume of a cone, featuring an integral:

V = \pi  \frac{r^2}{h^2} \displaystyle\int^h_0 x^2\, dx = \frac{1}{3} \pi r^2 h;

The source code for this is as follows:

$latex V = \pi \frac{r^2}{h^2} \displaystyle\int^h_0 x^2\, dx = \frac{1}{3} \pi r^2 h;$

What WordPress’ documentation on this topic doesn’t mention is that the \LaTeX commands should be inserted with the post editor in HTML mode, not Visual mode. Otherwise, the commands can get munged and won’t get parsed correctly. I only wish that Blogger had this feature as well, since my primary blog is there.


About Glen Mark Martin

MCSE-Messaging. Exchange Administrator at the University of Texas at Austin. Unrepentant armchair physicist.
This entry was posted in Uncategorized. Bookmark the permalink.

One Response to Testing, testing. Is this thing on?

  1. Pingback: No LaTeX support? Drat. : The AEMS Flogger

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 )

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s