By and large, I am quite happy with the LaTeX support provided by wordpress, which hosts my blog (and many other maths blogs out there); it is certainly superior to the maths support of most other off-the-shelf blog formats I have looked at. But it does have some annoying bugs and quirks; a lot of perfectly good LaTeX gets converted into “Formula does not parse”.
It occurred to me that maybe one should start a page that collects all the known bugs so that they can be sent at some point to the wordpress programmers to fix. So, here is my initial list of known bugs: any other wordpress users out there are very welcome to contribute their own.
Convention: I will drop the “latex” when I want to show a fragment of LaTeX source code without making it compile, e.g.
$\int_{-\infty}^\infty e^{-\pi x^2}\ dx = 1$ becomes .
[Update, Feb 14: The bugs have now been fixed; see comments below.]
— The brackets bug —
This one comes up quite a lot: any LaTeX string that begins with a bracket [ automatically does not parse. For instance,
$[a,b]$ becomes .
A workaround here is to put some filler in front of the bracket, e.g.
${}[a,b]$ becomes .
$\null [a,b]$ becomes .
— The trivial LaTeX bug —
When applying LaTeX to a single character, the parser sometimes gives up:
$ $ becomes $latex $.
$0$ becomes .
This can of course be worked around by using filler:
${} 0$ becomes .
— The double spacing bug —
Most LaTeX strings that involve a double space seem to choke, e.g.
$x y$ becomes .
$a f$ becomes .
The workaround is, of course, not to use double spaces:
$x y$ becomes .
— The nested brackets bug —
If latex code contains brackets and is in turn contained in brackets, strange things can happen (and I don’t have a workaround for this, other than not to do it), in particular terminating the post prematurely:
$[[a,b]]$ becomes .
This sentence is not displayed.
71 comments
Comments feed for this article
16 February, 2010 at 11:12 am
Vilyanur Chandra
Nice. Thanks for the bugs.
I am a newbie for Latex and it will help me to understand Latex more.
2 January, 2011 at 2:40 am
science and math
I cal also see that wordpress’es WYSIWYG editor sometimes automatically deletes blank space and other characters which also causes on latex formulas rendering.
30 January, 2011 at 4:56 am
converterpassion
Terry, thanks a lot for this initiative, and quantblog thanks for the Codecogs LaTeX editor tip. I was just about to start putting a lot of maths expressions on my blog, and here I found precisely what I needed to get started. Again, thanks a lot both of you.
As another newbie here, my experience so far is that writing the post – or at least the LaTeX – in HTML mode prevents the WP engine from doing something “smart” (i.e. unwanted) that inserts weird stuff into the latex code string. I also noted that the Codecogs editor is far more forgiving than the WP parser, so you need to train yourself before it gets right most of the time.
10 April, 2011 at 11:33 am
Pankaj Jyoti Mahanta
is it correct- $[a,b]$ ? how can we write a to the power 4?
24 July, 2011 at 6:19 am
Stephen F. Siegel
I have a very basic problem. On my blog, all of my inlined latex formulas render with a very low vertical alignment, as if the center of the latex formula were aligned with the baseline of the surrounding text. For example, when I write
, the middle of the x is aligned with the baseline just under the “e”. Do I have a problem with some setting?
6 February, 2012 at 6:09 am
Gerardo Beightol
When will you update this with more information?
11 August, 2012 at 8:47 am
Alexander Shamov
It also doesn’t like spaces before brackets:

“x )”
“x \}”
The workaround is not to use spaces there.
11 August, 2012 at 8:50 am
Alexander Shamov
And it also likes your blog much more than mine, since it seems to behave differently on the same input! Wow!
11 August, 2012 at 8:53 am
Alexander Shamov
No, I’m sorry, it’s just the difference between comments and posts. Anyway, it’s funny…
11 August, 2012 at 11:18 pm
Anonymous
With a bit configuration here:http://holdenweb.blogspot.com/2011/11/blogging-mathematics.html ,Blogger can support LaTex too,using Mathjax.
17 December, 2013 at 1:50 am
On some diophantine equations | Mathematical Exposition
[…] Please feel free to point out errors. A few may have inadvertently crept in due to the heavy editing involved(there were several LaTex issues- if you are having problems with typesetting math on wordpress, this webpage can be helpful: https://terrytao.wordpress.com/2009/02/10/wordpress-latex-bug-collection-drive/). […]
26 December, 2013 at 5:48 am
Murali
$\Latex$
26 December, 2013 at 8:13 am
Anonymous
Of course; “\Latex” is not a command! It is “$\LaTeX$”.
3 January, 2014 at 3:59 pm
A sporadic image resizing bug in WordPress LaTeX | What's new
[…] the problem is coming from and how one might mitigate it. (If nothing else, I can add it to the bug collection post, once it can be reliably […]
23 March, 2014 at 3:55 am
amarvashishth
it may not seem to work when preview under the Visual tab but works well when “Preview Changes” button is used.
4 October, 2015 at 9:11 am
JOYDEEP DUTTA
I am from India. I have just started a wordpress mathblog : convexityblog.wordpress.com
I just typed : $\latex0\in\partial f(x)$ but it is not giving me the symbolic output when I am saving the file. I would be happy if you kindly help me. When do I see the final output.
1 November, 2017 at 3:56 am
¡Funciona! LaTeX en WordPress | General | La Ciencia de la Mula Francis
[…] “What’s new” y me encuentro con que un bug me ha resuelto la pregunta: “WordPress LaTeX bug collection drive“: $ latex <comandos> $, por […]
13 January, 2021 at 10:13 am
Yaj Yaj
Reblogged this on Hice Las Cuentas.
13 January, 2021 at 10:42 am
michaelmross
Why is it rendered so faint? I’ve not seen that elsewhere. Seems like the default grayscale is wrong.
[Wordpress’s LaTeX does not incorporate the CSS style. My blog uses a black text colour instead of grey, but I have to explicitly change the text colour in LaTeX to match (usually through an external script that convertex LaTeX to wordpress format). In this particular post I did not do this. -T]
25 April, 2022 at 3:40 am
Vincent
In google chrome all the latex look like really vague and pixelated pictures, in firefox they are sharp and nice and just as you would expect them to look. Does anyone else experience this difference? Is there an easy explanation (e.g. I am unknowingly using an outdated version of chrome and should download a new one) or is this just one of those weird facts of modern life?