In a previous round of discussion, we concluded that this site should have MathJax. In spite of its title, the discussion left open the issue of which delimiter should be used for inline math. There were two proposals:

  • $math$ — the standard on Stack Exchange
  • \$math\$ — which avoids messing up paragraphs that contain dollar amounts

Initially MathJax was added with the standard $ delimiter, which is what people had been using before MathJax was enabled. Then the delimiter changed to \$; Jon edited posts accordingly.

  • $\begingroup$ It occurs to me it might be a little tricky to change back at this point. Doable, but tricky. $\endgroup$
    – user20
    Commented May 23, 2014 at 1:44
  • 3
    $\begingroup$ @Emrakul, it will only get worse. $\endgroup$ Commented May 23, 2014 at 8:43
  • $\begingroup$ If >$ is the delimiter how do I post it without treating as a delimiter. If it is simple I agree. $\endgroup$
    – kaine
    Commented May 29, 2014 at 17:15
  • $\begingroup$ @kaine Put a backslash before it, like every other special character. $\endgroup$ Commented May 29, 2014 at 17:27

1 Answer 1


The escape sequence should be $.

$ is what people who already know (La)TeX use. Even more importantly, $ is what people who already know how to write math on Stack Exchange use — it's what Mathematics SE uses, and it's what all the MathJax documentation on Stack Exchange (mostly on Math meta) uses. Even the upstream MathJax documentation uses $ in its examples (even though the MathJax preprocessor doesn't have $ active by default — it has \(…\) instead). Everybody who typed math during the private beta in the hope that MathJax would be enabled spontaneously used $, not \$.

Using \$ reduces the discoverability of MathJax. If I suspect that MathJax is enabled but am not sure, I'll type $a$ — see that it doesn't come out as math, so no, there's no MathJax. When I typed this question I wasn't even sure whether I should type \$math$ or \$math\$.

This is especially bad for comments which have no preview. I just wrote a comment using math, and I spontaneously typed $ — because that's how it's done everywhere else (except on Electrical Engineering, because it was introduced when the site had been existing for months — and even there I'm unconvinced that this was the right decision, and the inconsistency is causing technical problems too).

It's to be expected that we'll have migrations between Puzzling and Math at some point. Ok, that only concerns a small number of questions, but it would be a gratuitous incompatibility. Still, it's the human dissonance that I'm mostly concerned about, far more than the technical dissonance.

And what's the point of using \$? To avoid a relatively rare case where two dollar amounts are used in the same paragraph. People already run into trouble when they use an unprotected _ or * and feel safe, and then use a second one and get italics all of a sudden. $ would be no worse than that. It's very visible in the preview, too. Using $ as an active character is no worse than using * as an active character.

Using \$ as an active sequence makes the markup language more irregular: everywhere else a backslash quotes the next character. The fact that it's \$ for inline math but $$ and not \$$ for display math has caused some confusion. \$ is a gratuitous complication, we should avoid it.


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .