LaTeX

Did you know you can write mathematics in WordPress blog posts?  It’s easy.  To add an equation to a post, you surround your math with `$latex’ at the beginning and `$’ at the end. So, you write

$latex YOUR MATH HERE $

You can use symbols like + x – and for exponents you can write ^.  For subscripts you can use _.  So for example,

$latex x^2y_3+6=z_2^7 $

produces

x^2y_3+6=z_2^7

You can also write fractions this way:

$latex \frac{a}{b} $

producing

\frac{a}{b}

You can make a permutation by writing

$latex (12)(345) $

which gives

(12)(345)

And you can make a matrix this way:

$latex \begin{pmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{pmatrix} $

and you’ll get

\begin{pmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{pmatrix}

For tips on changing the size or colour of your math, or more about how to write math equations in LaTeX math mode, visit

http://faq.wordpress.com/2007/02/18/can-i-put-math-or-equations-in-my-posts/

For lots of math symbols you can use, see

http://www.maths.tcd.ie/~dwilkins/LaTeXPrimer/MathSymb.html

For more fun examples to work from, look at

http://kogler.wordpress.com/2008/03/10/blogging-with-latex-content/

Make your posts look beautiful!

Responses

  1. Oh, and for proofs you can make the little square \square with the command \square.

  2. Also, LaTeX can do polynomial long division for you automatically:
    http://www.sixthform.info/maths/?p=84

    this might be useful on the next pset :)

  3. Wow. See, that’s why LaTeX rocks. It will do your homework for you.


Leave a response

Your response: