## 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.

Advertisements

## 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.