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]$”. 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.)

4 Comments »

  1. [...] to have an environment where I could discuss Math. As documented by WordPress and used by the polymath blog Ah! I believe it now works. Alas, I should figure out something worthwhile to do with this [...]

    Pingback by math and latex test « Josh's Trial Blog — August 26, 2009 @ 4:11 pm | Reply

  2. Let’s see if this works, I’m going to try entering $x^2 + x – 1 = 0$

    x^2 + x - 1 = 0

    Comment by Asdquefty — November 20, 2009 @ 7:12 pm | Reply

  3. Awesome, so it works. Does this come with WordPress by default?

    Comment by Asdquefty — November 20, 2009 @ 7:13 pm | Reply

  4. Simply testing some latex: $e^{i\pi}-1=0$ e^{i\pi}-1=0

    Comment by Corey Brady — February 7, 2010 @ 1:19 am | Reply


RSS feed for comments on this post. TrackBack URI

Leave a comment

Blog at WordPress.com.