Skip to content

Latex on WordPress, a small sample

February 26, 2011 pm28 9:02 pm
tags:

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:
\frac{1}{\frac{y}{x} + \frac{x}{y}} = \frac{xy}{x^2 + y^2} 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: e^{ix} = \cos x + i \sin x

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

This: latex A \cup B becomes A \cup B

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

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 →
  1. Zulma Villalba permalink
    February 26, 2011 pm28 9:31 pm 9:31 pm

    Nice!

  2. February 26, 2011 pm28 10:23 pm 10:23 pm

    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.

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

%d bloggers like this: