0

This question already has an answer here:

My friends told me that the sophisticated way to use display math in LaTeX is \[ instead of $$. Reading about the issue here on tex.stackexchange and in the l2tabu, it seems like the consensus reason why is that $$ is a TeX primitive, and thus deprecated at least since 1994 (the year I was born) with the release of LaTeX2e. Meanwhile, \[ is part of LaTeX, not TeX, so using it doesn't muck around too much in the source, it's easier to detect errors when using it, the vertical spacing is better, and it works really well with the amsmath package. (Although it does have the slight disadvantage that it is not supported by MathJax.)

My question: To what extent does all of this reasoning carry over to the decision to use either $ or \( for inline math?

The single dollar sign $ is also a TeX primitive, so seemingly it should also be deprecated for the same reason the double dollar sign $$ is.

This blog post supports the position that \( should be used instead of $, in spite of the author of l2tabu's assertion to the contrary.

However, this web page only mentions facilitating error correction and detection as an advantage of \( over $.

Who is right?

marked as duplicate by David Carlisle equations Dec 4 '16 at 11:44

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 2
    Is this question the same as tex.stackexchange.com/q/510/79756 ? – Leonid Dec 4 '16 at 11:41
  • 1
    by default \[ and \( are supported in mathjax – David Carlisle Dec 4 '16 at 11:45
  • @Leonid thank you for finding this for me -- I thought this had to have been asked before, but I couldn't find it when searching. – Chill2Macht Dec 4 '16 at 13:57
  • @DavidCarlisle I'll have to look into this more then -- I've copied LateX code into mathjax with those delimiters and it didn't work, but it was probably something else I did wrong -- anyway if/when I figure out what it was I'll ask on meta.stackexchange – Chill2Macht Dec 4 '16 at 13:59
  • @William the delimiters are settable in the javascript config defaulting to \( and \[ perhaps stackexchange has reset them to $ and $$ while loading its mathjax settings – David Carlisle Dec 4 '16 at 15:26