# 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

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

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

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

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 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 6.$latex\mathbb{C}1\varepsilon(\eta)\mathbb{C}1\alpha\int_{x}$Comment by Anonymous — July 22, 2016 @ 4:06 am 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

8. Right, no starting slash.

OH${}^{-}$

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

9. OH$\bar{\,}$

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

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

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

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

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

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

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

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

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

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

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

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

The Rubric Theme. Blog at WordPress.com.