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 | Output |
---|---|---|---|
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 (displayed) | \dfrac{a}{b} | ||
Fraction (inline) | \tfrac{a}{b} | ||
Fraction (old style) | {A \over B} | ||
Binomial Coefficient | \binom{n}{k} | ||
Binomial Coefficient (old style) | {n \choose k} | ||
Square Root | \sqrt{x} | ||
n-th Root | \sqrt[n]{x} | ||
Exponentiation | 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 | \subseteq | ||
Superset | \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 To | \approx | ||
Special Symbols | Greek Letter α | \alpha | |
Greek Letter β | \beta | ||
Greek Letter γ | \gamma | ||
Angle | \angle | ||
Triangle | \triangle | ||
Square | \square | ||
Real Part | \Re | ||
Imaginary Part | \Im | ||
Imaginary Unit i | \imath | ||
Imaginary Unit j | \jmath | ||
Greek Letter ε | \epsilon | ||
Greek Letter φ | \phi | ||
Variant Greek Letter φ | \varphi | ||
Matrices and Vectors | Matrix (parentheses) | \begin{pmatrix} a & b \\ c & d \end{pmatrix} | |
Matrix (no parentheses) | \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 Space | \Im | ||
Real Space | \Re | ||
Empty Set | \emptyset | ||
Empty Set (nicer) | \varnothing | ||
Belongs To | \in | ||
Not Belongs To | \not\in | ||
Greek Letter χ | \chi | ||
Counterclockwise Circle Arrow | \circlearrowleft | ||
Clockwise Circle Arrow | \circlearrowright | ||
Counterclockwise Curved Arrow | \curvearrowleft | ||
Clockwise Curved Arrow | \curvearrowright | ||
Planck Constant | \hbar | ||
Natural Logarithm | \ln | ||
Constant π | \pi | ||
Set Symbol | \cup | ||
Set Symbol | \cap | ||
Formatting | Function Color | f(x) = a{\color{red}{x}} + b | |
Colored Box | \colorbox{#eeeeee}{Color Box} | ||
Calligraphic Font | {\cal ABCDE12345abced} | ||
Boxed Text | \fbox{boxed text} | ||
Display Style Boxed Text | \boxed{boxed\ text} | ||
Fraktur Font | {\frak ABCDE12345abcde} | ||
Italic | {\it abefg12345}\ abcdefg12345 | ||
Minimize | \min\limits_{n} | ||
Bold Greek Letter | \boldsymbol{\alpha} |