Saturday, September 21, 2013

Wordpress renders LaTeX

I was so pleasantly surprised to learn that wordpress blogs will render latex. The tags are simply $latex and $.
So $latex e^{ix} = \cos(x) + i\sin(x)$ will render as

There are some cool parameters that you can set (from hints here and here):
  1. increase size by adding &s=X where X is an integer [-4,4]: $latex x^2 &s=2$  
  2. Instead of inline equtions (default) display as block (bigger): $latex \displaystyle x^2$

No comments:

Post a Comment