2
\$\begingroup\$

(see also Inline LaTeX doesn't seem to work)

I see that this site uses the nonstandard \$ delimiters to MathJax rather than \( and \) which are used in most other sites. Since MathJax allows multiple delimiters, and asymmetrical delimiters are more robust, could you add these?

syntax as per http://docs.mathjax.org/en/latest/options/tex2jax.html :

MathJax.Hub.Config({
  tex2jax: {
    inlineMath: [ ['\\$','\\$'], ['\\(','\\)'] ]
  }
});
\$\endgroup\$
6
  • 1
    \$\begingroup\$ This is a common thing for all stackexchange sites, you might want to ask on meta.se for that \$\endgroup\$
    – PlasmaHH
    Oct 20 '16 at 19:31
  • \$\begingroup\$ @PlasmaHH, actually other SE sites just use $ as delimiters for inliine MathJax. It was changed for EE because we are likely to talk about how much things cost. \$\endgroup\$
    – The Photon
    Oct 20 '16 at 20:56
  • \$\begingroup\$ Yeah, I don't think anyone (well, except maybe the math sites where MathJax is the norm for many posts) should just use a plain $ for this same reason. Expressing costs is such a common use case. \$\endgroup\$
    – Jason S
    Oct 20 '16 at 22:43
  • \$\begingroup\$ @ThePhoton: That may be, but that isn't a reason not to support \( ... \) as well. \$\endgroup\$
    – Dave Tweed
    Oct 20 '16 at 22:44
  • \$\begingroup\$ The reason they don't use \( and \) is that it conflicts with the Markdown usage. Parentheses have special meaning in Markdown in some situations (like for URLs following image references or link text), and a backslash is used in Markdown for escaping that special meaning. You would have to use \\( and \\) in your posts to allow the backslash through to MathJax, and I suspect that was deemed too complicated and error prone. \$\endgroup\$ Oct 21 '16 at 11:57
  • \$\begingroup\$ ? Which variant of Markdown? I've been using Python's Markdown library + MathJax for several years using \( and \) with no problems whatsoever. \$\endgroup\$
    – Jason S
    Oct 21 '16 at 16:19

You must log in to answer this question.

Browse other questions tagged .