LaTeX Syntax Quick Reference
· 5 min read
Every time you need it, it's always a hassle to find, so we decided to write a LaTeX syntax quick reference table.
Category | Description | Syntax | Display |
---|---|---|---|
Text Styles | Bold | \textbf{AB} | |
Italic | \textit{AB} | ||
Underline | \underline{AB} | ||
Overline | \overline{AB} | ||
Typewriter Font | \texttt{AB} | ||
Math Structures | Fraction | \frac{A}{B} | |
Fraction (Display) | \dfrac{a}{b} | ||
Fraction (Inline) | \tfrac{a}{b} | ||
Old-Style Fraction | {A \over B} | ||
Binomial Coeff. | \binom{n}{k} | ||
Old-Style Binomial | {n \choose k} | ||
Square Root | \sqrt{x} | ||
n-th Root | \sqrt[n]{x} | ||
Exponent | a^b | ||
Subscript | a_b | ||
Integral | \int_a^b x^2 \mathrm{d} x | ||
Summation | \sum_{n=1}^\infty \frac{1}{n} | ||
Limit | \lim_{x \to \infty} \frac{1}{x} | ||
Product | \prod_{i=1}^n i | ||
Math Symbols | Sine | \sin{\theta} | |
Cosine | \cos{\theta} | ||
Plus-Minus | \pm | ||
Multiplication | \times | ||
Division | \div | ||
Subset Equal | \subseteq | ||
Superset Equal | \supseteq | $\supseteq` | |
Implies | \implies | ||
Implied By | \impliedby | ||
If and Only If | \iff | ||
Intersection | \cap | ||
Union | \cup | ||
Logical And | \land | ||
Logical Or | \lor | ||
Logical Not | \neg | ||
Not Equal To | \neq | ||
Approximately Equal | \approx | ||
Greek Letters | Lowercase α | \alpha | |
Uppercase Α | \Alpha | ||
Lowercase β | \beta | ||
Uppercase Β | \Beta | ||
Lowercase γ | \gamma | ||
Uppercase Γ | \Gamma | ||
Lowercase δ | \delta | ||
Uppercase Δ | \Delta | ||
Lowercase ε | \epsilon | ||
Uppercase Ε | \Epsilon | ||
Variant Lowercase φ | \varphi | ||
Uppercase Φ | \Phi | ||
Lowercase χ | \chi | ||
Uppercase Χ | \Chi | ||
Lowercase μ | \mu | ||
Uppercase Μ | \Mu | ||
Lowercase ω | \omega | ||
Uppercase Ω | \Omega | ||
Matrices & Vectors | Matrix (with brackets) | \begin{pmatrix} a & b \\ c & d \end{pmatrix} | |
Matrix (no brackets) | \begin{matrix} x & y \\ z & w \end{matrix} | ||
Vector | \vec{v} | ||
Identity Matrix | \mathbf{I} | ||
Zero Matrix | \mathbf{0} | ||
Miscellaneous | Angle | \angle | |
Triangle | \triangle | ||
Square | \square | ||
Space | \quad | ||
Proportional To | \propto | ||
Because | \because | ||
Therefore | \therefore | ||
Integer Set | \mathbb{Z} | ||
Probability Set | \mathbb{P} | ||
Real Number Set | \mathbb{R} | ||
Complex Number Set | \mathbb{C} | ||
Imaginary Part | \Im | ||
Real Part | \Re | $\Re` | |
Empty Set | \emptyset | ||
Fancy Empty Set | \varnothing | ||
Element Of | \in | ||
Not Element Of | \not\in | ||
Counterclockwise Arrow | \circlearrowleft | ||
Clockwise Arrow | \circlearrowright | ||
Planck's Constant | \hbar | ||
Natural Log | \ln | ||
Constant | \pi | ||
Formatting | Function Color | f(x) = a{\color{red}{x}} + b | |
Color Box | \colorbox{#eeeeee}{Color Box} | ||
Calligraphic Font | {\cal ABCDE12345abced} | ||
Framed Text | \fbox{boxed text} | ||
Boxed Display Style Text | \boxed{boxed\ text} | ||
Fraktur Font | {\frak ABCDE12345abcde} | ||
Italic Font | {\it abefg12345}\ abcdefg12345 | ||
Minimum | \min\limits_{n} | ||
Bold Greek Letter | \boldsymbol{\alpha} |