Pandoc Markdown & MathML with KaTeX
$ … $ delimiters for inline math, or $$ … $$ delimiters for display math. The examples here use display math.Contents
A
aligned
Align equations… each line of the equation will align on &, and new lines are created with \\.
\begin{aligned}
a - (b + c) &= a + (-1)(b + c)\\
&= a + (-1)b + (-1)c\\
&= a - b - c
\end{aligned}
\begin{aligned} a - (b + c) &= a + (-1)(b + c)\\ &= a + (-1)b + (-1)c\\ &= a - b - c \end{aligned}
B
blackboard bold (mathbb)
Commonly used in set notation.
\mathbb{R}, \mathbb{Z}
\mathbb{R}, \mathbb{Z}
C
centered dot (\cdot)
x \cdot y
x \cdot y
centered dots (\cdots)
a_1 + \cdots + a_n
a_1 + \cdots + a_n
D
degree
Use Unicode for these outside of mathematics contexts.
^\circ
^\circ
^\circ\mathrm{C}
^\circ\mathrm{C}
delimiters \left( \right) \left[ \right] \left\lbrace \right\rbrace \left| \right|
This type of delimiter (i.e. parenthesis, brackets, braces, bars) scales to the size of the contents.
\left(\frac{x}{y}\right)
\left(\frac{x}{y}\right)
\left[ \frac{x}{y} \right]
\left[ \frac{x}{y} \right]
\left\lbrace \frac{x}{y} \right\rbrace
\left\lbrace \frac{x}{y} \right\rbrace
\left| \frac{x}{y} \right|
\left| \frac{x}{y} \right|
dots/ellipsis (\dots)
\{a_1, a_2, \dots\}
\{a_1, a_2, \dots\}
F
fractions
\frac{x}{y}
\frac{x}{y}
I
infinity (\infty)
\infty
\infty
P
pi (\pi)
\pi
\pi
R
relations
| equal | = |
= |
| not equal | \neq |
\neq |
| less than | < |
< |
| greater than | > |
> |
| less than or equal | \leq |
\leq |
| greater than or equal | \geq |
\geq |
| approximately equal | \approx |
\approx |
| asymptomatically equal | \sim |
\sim |
| identical/congruent | \equiv |
\equiv |
| congruent (geometry) | \cong |
\cong |
| proportional to | \propto |
\propto |
| much less than | \ll |
\ll |
| much greater than | \gg |
\gg |
| defined as | := |
:= |
radicals
\begin{aligned}
\sqrt{ab} &= \sqrt{a} \cdot \sqrt{b} \\
\sqrt{\frac{a}{b}} &= \frac{\sqrt{a}}{\sqrt{b}} \\
a^{\frac{x}{y}} &= \left(\sqrt[y]{a}\right)^x = \sqrt[y]{a^x}
\end{aligned}
\begin{aligned} \sqrt{ab} &= \sqrt{a} \cdot \sqrt{b} \\ \sqrt{\frac{a}{b}} &= \frac{\sqrt{a}}{\sqrt{b}} \\ a^{\frac{x}{y}} &= \left(\sqrt[y]{a}\right)^x = \sqrt[y]{a^x} \end{aligned}
S
set notation
| such that | \mid or \colon |
\mid \text{ or } \colon |
| element of | \in |
\in |
| not an element of | \notin |
\notin |
| subset of | \subset |
\subset |
| subset or equal to | \subseteq |
\subseteq |
| not a subset of | \not\subset or \not\subseteq |
\not\subset \text{ or } \not\subseteq |
| proper subset | \subsetneq |
\subsetneq |
| superset of | \supset |
\supset |
| superset or equal to | \supseteq |
\supseteq |
| intersection | \cap |
\cap |
| union | \cup |
\cup |
| set difference (minus) | \setminus |
\setminus |
| symmetric difference | \triangle |
\triangle |
| complement (superscript) | A^\complement |
A^\complement |
| Cartesian product | \times |
\times |
subscript
x_y
x_y
summation
\sum_{i=1}^{n} a_i
\sum_{i=1}^{n} a_i
\sum\nolimits_{i=1}^{n} a_i
\sum\nolimits_{i=1}^{n} a_i
\sum_{\substack{0 < i < n \\ i \neq j}} a_i
\sum_{\substack{0 < i < n \\ i \neq j}} a_i
superscript
x^y
x^y