# Latex on WordPress, a small sample

February 26, 2011 pm28 9:02 pm

Using the wordpress implementation of LaTeX allows me to get some math into posts, nicely formatted. I wrote about this at least once before.

This: latex \frac{1}{\frac{y}{x} + \frac{x}{y}} = \frac{xy}{x^2 + y^2} will become this:

when dollar signs are in front of latex and at the end of the type.

This: latex e^{ix} = \cos x + i \sin x becomes:

This: latex x = \sqrt{2 + \sqrt{2 +\sqrt{2 +\sqrt{2 +\sqrt{2 + …}}}}} becomes

This: latex A \cup B becomes

This: latex S \subset T \rightarrow n(S) < n(T) becomes

and so on. Ask me if you want to see anything else in particular. I’m no expert, but figuring them out is a good exercise for me.

Advertisements

2 Comments
leave one →

Nice!

The problem with wordpress’s implementation of latex is that it replaces equations with static images, which isn’t as nice as some font-based implementations that allow for different scales. I use MathJax (http://www.mathjax.org/), which tries first to replace equations with a font solution and using images as backup. It works very nicely and allows you to increase font size without the equations looking pixelated.