The polymath blog

How to use LaTeX in comments

WordPress has the ability to insert LaTeX math displays (e.g. \int_{-\infty}^\infty e^{-\pi x^2}\ dx = 1) into both posts and comments. The format for this is “$latex [Your LaTeX code]$” (but without the brackets, of course). See this announcement for details.

There used to be a number of quirks with the WordPress LaTeX plugin, but they have now largely been fixed. If you find any problems, please report them at this page.

WordPress also supports a certain amount of HTML. As a consequence, be careful with using the < and > signs in a comment, they may be misinterpreted as HTML tags! You can use &lt; and &gt; instead. (Inside of a LaTeX environment, you can use \lt and \gt.)

In case a comment really gets mangled up by formatting errors, contact one of the moderators of the polymath project, so that he or she can manually correct it.

The comments to this post will serve as the LaTeX help forum and LaTeX sandbox for this blog.  If you want to test out some LaTeX code in the comments below, you may wish to first describe the code without the “latex” symbol in order to show other readers what you are doing.  For instance: “Here is a LaTeX test: $a^n+b^n=c^n$ becomes a^n+b^n=c^n“. (Note that one can also mouse over a compiled LaTeX image to recover the original LaTeX source.)


  1. the line \mathbf{R} v

    Comment by Anonymous — October 17, 2011 @ 2:15 pm | Reply

  2. this is a test
    $x^2 + x – 1 = 0$

    Comment by M Wall — June 20, 2013 @ 8:44 am | Reply

  3. This might be an obvious question, but to have a sunflower with three petals, is to find three sets A,B,C, so that A \cap B \subseteq C, and C \cap (A \triangle B)=\emptyset.

    What happens if instead of both properties, just one of them is forbidden? For example, if we forbid three sets A,B,C in our family, so that C \cap (A \triangle B)=\emptyset?

    Comment by ILan — November 8, 2015 @ 2:59 pm | Reply

  4. The \gt and \lt don’t seem to be working: I’m trying to compile $a \gt b$: a \gt b". But a>b$ works, see a>b

    Comment by Anonymous — March 7, 2016 @ 3:01 pm | Reply

  5. I will try to use Latex to express the process but there is no telling how it will turn out

    Z_t \: is \:IID \: N(0,1)\\\\     X_t=Z_t  \: if\: t \:is\: even\\\\      X_t=\frac{Z_{t-1}^2 -1}{\sqrt{2}}  \: if\: t \:is\: odd

    Comment by PJKar — May 24, 2016 @ 8:21 pm | Reply

  6. \displaystyle \sum_{n=1}^\infty \frac{1}{n^2} = \frac{\pi^2}{6}

    Comment by Anonymous — December 11, 2016 @ 6:21 pm | Reply

  7. a_2^3

    Comment by junkmailer — February 10, 2017 @ 7:21 pm | Reply

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your 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

Create a free website or blog at

%d bloggers like this: