Uploaded by DerekIIo Ho

Markdown + LaTeX cheat sheet

advertisement
You got it, Kin! Here's a handy Markdown + LaTeX cheat sheet for writing math expressions that
render beautifully in most Markdown editors (like Obsidian, Typora, Jupyter, etc.):
๐Ÿ”ค Basic Syntax
Expression
Markdown (LaTeX-style)
Rendered Output
Superscript
$x^2$
( x^2 )
Subscript
$x_1$
( x_1 )
Fraction
$\frac{a}{b}$
( \frac{a}{b} )
Square root
$\sqrt{x}$
( \sqrt{x} )
nth root
$\sqrt[n]{x}$
( \sqrt[n]{x} )
Integral
$\int_a^b f(x)\,dx$
( \int_a^b f(x),dx )
Summation
$\sum_{i=1}^n i$
( \sum_{i=1}^n i )
Product
$\prod_{i=1}^n i$
( \prod_{i=1}^n i )
Limit
$\lim_{x \to 0} f(x)$
( \lim_{x \to 0} f(x) )
Derivative
$\frac{dy}{dx}$
( \frac{dy}{dx} )
๐Ÿ”ฃ Symbols
Symbol
Markdown
Rendered
Greek α
$\alpha$
( \alpha )
Greek π
$\pi$
( \pi )
Infinity
$\infty$
( \infty )
≈
$\approx$
( \approx )
≤
$\leq$
( \leq )
≥
$\geq$
( \geq )
≠
$\neq$
( \neq )
∈
$\in$
( \in )
∉
$\notin$
( \notin )
∀
$\forall$
( \forall )
∃
$\exists$
( \exists )
๐Ÿง  Advanced Layout
Concept
Matrix
Cases
Aligned
equations
Markdown
$\begin{bmatrix} a & b \\ c & d
\end{bmatrix}$
$\begin{cases} x & x > 0 \\ -x & x
\leq 0 \end{cases}$
\begin{align} a &= b + c \\ d &= e f \end{align}
Rendered
( \begin{bmatrix} a & b \ c & d
\end{bmatrix} )
( \begin{cases} x & x > 0 \ -x & x
\leq 0 \end{cases} )
(requires display math)
๐Ÿงช Tips
Use $...$ for inline math
Use $$...$$ for block math
Escape underscores ( _ ) and carets ( ^ ) if used outside math mode
Most Markdown editors use MathJax or KaTeX to render these
Want me to turn this into a printable reference card or embed it in your Obsidian vault? Just say
the word.
Download