less than 1 minute read

MathJax only supports the subset of \(\LaTeX\) used to describe mathematical notation.

  • Setup
    • Set use_math: true in the preamble of the page.
  • Inline Math
    • [text] \\(...\\) [text]
      • double-backslash is necessary because kramdown treats \ as an escape character
  • 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 TableA TableB TableC

  • MathJax Tutorial

Leave a comment