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.)

15 Comments »

  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. $latex\mathbb{C}1\varepsilon(\eta)\mathbb{C}1\alpha\int_{x}$

    Comment by Anonymous — July 22, 2016 @ 4:06 am | Reply

  7. Attempting to make a free-standing superscript minus. My apologies for barging into your sandbox.

    OH$\latex {}^{-}$

    Comment by Narad — July 25, 2016 @ 4:38 am | Reply

  8. Right, no starting slash.

    OH{}^{-}

    Comment by Narad — July 25, 2016 @ 4:39 am | Reply

  9. OH\bar{\,}

    Comment by Narad — July 25, 2016 @ 4:42 am | Reply

  10. OH\atop{-}{\,}

    Comment by Narad — July 25, 2016 @ 4:49 am | Reply

  11. OH\genfrac{}{}{0pt}{}{\bar{\,}}{\,}}

    Comment by Narad — July 25, 2016 @ 4:52 am | Reply

  12. \genfrac{}{}{0pt}{}{\bar{\,}}{\,}

    Comment by Narad — July 25, 2016 @ 4:53 am | Reply

  13. \int^S = \mathop{\vphantom{\int}}\nolimits^S

    Comment by Narad — July 25, 2016 @ 4:57 am | Reply

  14. OH\mathop{\vphantom{H}}^{-}

    Comment by Narad — July 25, 2016 @ 5:00 am | Reply

  15. Last one, and thank you for your patience (or at least not instantly nuking me):

    OH\mathop{\vphantom{\int}}\nolimits^{-}

    Comment by Narad — July 25, 2016 @ 5:03 am | 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:

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

The Rubric Theme. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.

Join 364 other followers

%d bloggers like this: