Math Equations in WordPress

This tutorial is for absolute beginners. If you want to see how fancy the end result can be, try Terry Tao’s blog.

To post equations in WordPress you should start your equation with $latex and end it with a $.

For example,

LaTeX example

gives the equation

x=2

For all future equations in my tutorials, I am presuming that the $latex and the $ are in place.

Anything using +, -, (, ), or = acts like you might expect:

4-2x+3=2-(x+4) turns into 4-2x+3=2-(x+4)

Putting a ^ mark gets an exponent:

x^2+3 turns into x^2+3

If you want to put more than just one number or variable into an exponent, surround the relevant part with { } marks.

x^{2+x} turns into x^{2+x}

If you want to write a fraction, use a \frac followed by the numerator and denominator of the equation in curly brackets { }. This one’s a little more confusing, so three examples:

\frac{x}{y} turns into \frac{x}{y}
\frac{x+3}{x^5} turns into \frac{x+3}{x^5}
\frac{x^2}{x^2y^3z^4} turns into \frac{x^2}{x^2y^3z^4}

Finally, just to show off how flexible this system is:

\frac{x}{2+\frac{x}{2-\frac{x}{3}}} turns into \frac{x}{2+\frac{x}{2-\frac{x}{3}}}

Feel free to use the comments space of this post to practice a little; I’ll houseclean the comments away later.

48 Responses

  1. latex$tanx=1320/35$

  2. $latextanX=1320/35$

  3. Almost. You need a space between $latex and tan. You should also put one between tan and x.

  4. V1= 2600 cos120, sin120

  5. V1= 2600$latex$

  6. V1= 2600*cos120,sin120

  7. $latex\[\int^{x^2}_x{1+{sin \left(a\right)\ }}\]$

  8. x=7

  9. ty so much it helap me a lot..
    i wonder is there a guide to a complete latex strings

  10. […] * লাটেক্সের একটি বড় টিউটোরিয়াল * Math Equations in WordPress […]

  11. Since this post is more about latex than wordpress latex quirks, a pointer to basic latex math info may be helpful:

    ftp://ftp.ams.org/pub/tex/doc/amsmath/short-math-guide.pdf

    (Then you can do a followup post on the wordpress latex quirks like requiring that everything be in one line, and use of aligned instead of align, …) .

  12. I have tried using the latex commands but I do not get the nice MathType format that you have. Is there anything else I need to do? Is it because I am using a Mac?

  13. Martin M. Only the WordPress.com blogs currently support LaTeX processing in the comments.

  14. tan X=1320/35

  15. Anonymous did you forget the “\” before “tan”:
    $ latex \tan X = 1320/35$ to get \tan X = 1320/35

  16. tanX=5

  17. $latex \frac{a}{b}

  18. S = \sum\limits_{i = 1}^n {{A_{ij}} - {A_{ji}}} … yay for Mathtype

  19. !works

  20. do you need some plugins?
    LaTeX

  21. x^2+3

  22. $latexE=\frac{LIFE}{GIFT}$

  23. Thank you so much!
    I was having a hard time trying to embed equations in a blog entry. Just a question: is it possible to change the font for the equations? this of course is not so relevant, but it would be great to be able to display the equation in a more “friendly” font than the preformated one.

    Thanks again for this blog post, it was really helpful.

  24. e=m/c

  25. which plugin do you use?

  26. Apparently the tilde (~) is the symbol you use to add a space.

  27. Thanks! http://mat.or.id/?=latex

  28. The four quadrants start from the top right
    Counter-clockwise from the positive x and y
    You go around, hit the II and then III
    Bottom left, negative, remember that please
    Now if you’ve got a single point on the x-y grid
    There’s a single pair of values telling you where it is
    The x coordinate goes side to side
    The y follows the comma to define the point’s height

    A straight line between two points is a relation
    You can represent it with a linear equation
    y = m times x + b
    If you wanna know the variables listen to me

  29. Thankx dude🙂

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: