# MathJax  September 2, 2023 (last updated September 3, 2023)

https://docs.mathjax.org/en/latest/basic/mathjax.html

MathJax is an open-source JavaScript display engine for LaTeX, MathML, and AsciiMath notation that works in all modern browsers.

MathJax uses web-based fonts to produce high-quality typesetting that scales and prints at full resolution, unlike mathematics included as bitmapped images. With MathJax, mathematics is text-based rather than image-based, and so it is available for search engines, meaning that your equations can be searchable, just like the text of your pages.

## Latex Syntax

I'll show the "ascii math" and then the $-wrapped version (which is the Obsidian syntax to show it via mathjax For inline, the $ has to be touching the characters. I.e., does not work, while does.

I'm basically going to be ripping bits from this stack overflow post of various latex notations

• superscripts and subscripts
• n^2 :
• n_x :
• n_{x^2} :
• greek letters
• \alpha * \beta = \gamma :
• fractions, division
• \frac{a * b}{c * d} :
• \frac ab :
• \frac a {b * c} :
• square root
• \sqrt 4 :
• \sqrt{4^2} :
• \sqrt3^5 :
• \sqrt{3^5} :
• modular arithmetic
• a \mod b :
• a \equiv b \mod c :
• ellipsis
• a * \cdots * z :
• a * \ldots * z :
• there are also \ddots () and \vdots (), which can be used, e.g., in matrix expressions or tables.
• binomial coefficient
• 3 + n \choose k:
• 3 + {n \choose k}:
• 3 + {n \choose k}: