3 ms·
The `$...$' and `$$...$$' delimiters are used in TeX. LaTeX uses the more superior delimiter as `\(...\)' and `\[...\]'. All the MathJax and KaTeX related mark
by prash_ant 4y ago
The `$...$' and `$$...$$' delimiters are used in TeX. LaTeX uses the more superior delimiter as `\(...\)' and `\[...\]'.
All the MathJax and KaTeX related markdown for math should use the LaTeX delimiters and avoid the TeX delimiters.
For more info see https://docs.mathjax.org/en/v2.5-latest/tex.html#tex-and-latex-math-delimiters https://docs.mathjax.org/en/v2.5-latest/tex.html#tex-and-lat...
- chrismorgan 4y ago\(…\) and \[…\] would not be without problems in Markdown either, as backslash is used for escaping, and there are situations where square brackets and parentheses require escaping. As a simple example, if you want to write something in literal square brackets, you can normally just write […], but if there’s a link target with a matching name or you’re in an environment that may introduce a link target with a matching name (e.g. rustdoc will see [Foo] and try to find an item to link it to), you may choose to write \[…\] instead. You only need to escape one of the square brackets, but if you’ve escaped both.
- deleted 4y ago[deleted]
- chaoxu 4y agoI understand this is useful for people who doesn't type math regularly, but as someone who write a huge amount of math, `$...$` is so much less friction than the LaTeX one `\(...\)`. Even in LaTeX, mix and match. `$...$` for normal mode, and `\[...\]` for display math, and it works well for two reasons. Inline math are generally short, less prone to mistakes, so `$` saves a lot of time.