MathJax
MathJax only supports the subset of \(\LaTeX\) used to describe mathematical notation.
- Setup
- Set
use_math: true
in the preamble of the page.
- Set
- Inline Math
[text] \\(...\\) [text]
- double-backslash is necessary because
kramdown
treats\
as an escape character
- double-backslash is necessary because
- Display Math
[newline] $$...$$ [newline]
[newline] \\[...\\] [newline]
-
Example
When \\(a \ne 0\\), there are two solutions to \\(ax^2 + bx + c = 0\\) and they are
\\[x = {-b \pm \sqrt{b^2-4ac} \over 2a}.\\]
-
Result
When \(a \ne 0\), there are two solutions to \(ax^2 + bx + c = 0\) and they are \[x = {-b \pm \sqrt{b^2-4ac} \over 2a}.\]
-
\(\LaTeX\) Symbols
- MathJax Tutorial
Leave a comment