Skip to main content

LaTeX Syntax Quick Reference

· 5 min read
Zephyr
Engineer

Every time you need it, it's always a hassle to find, so we decided to write a LaTeX syntax quick reference table.

CategoryDescriptionSyntaxDisplay
Text StylesBold\textbf{AB}AB\textbf{AB}
Italic\textit{AB}AB\textit{AB}
Underline\underline{AB}AB\underline{AB}
Overline\overline{AB}AB\overline{AB}
Typewriter Font\texttt{AB}AB\texttt{AB}
Math StructuresFraction\frac{A}{B}AB\frac{A}{B}
Fraction (Display)\dfrac{a}{b}ab\dfrac{a}{b}
Fraction (Inline)\tfrac{a}{b}ab\tfrac{a}{b}
Old-Style Fraction{A \over B}AB\frac{A}{B}
Binomial Coeff.\binom{n}{k}(nk)\binom{n}{k}
Old-Style Binomial{n \choose k}(nk)\binom{n}{k}
Square Root\sqrt{x}x\sqrt{x}
n-th Root\sqrt[n]{x}xn\sqrt[n]{x}
Exponenta^baba^b
Subscripta_baba_b
Integral\int_a^b x^2 \mathrm{d} xabx2dx\int_a^b x^2 \mathrm{d} x
Summation\sum_{n=1}^\infty \frac{1}{n}n=11n\sum_{n=1}^\infty \frac{1}{n}
Limit\lim_{x \to \infty} \frac{1}{x}limx1x\lim_{x \to \infty} \frac{1}{x}
Product\prod_{i=1}^n ii=1ni\prod_{i=1}^n i
Math SymbolsSine\sin{\theta}sinθ\sin{\theta}
Cosine\cos{\theta}cosθ\cos{\theta}
Plus-Minus\pm±\pm
Multiplication\times×\times
Division\div÷\div
Subset Equal\subseteq\subseteq
Superset Equal\supseteq$\supseteq`
Implies\implies    \implies
Implied By\impliedby    \impliedby
If and Only If\iff    \iff
Intersection\cap\cap
Union\cup\cup
Logical And\land\land
Logical Or\lor\lor
Logical Not\neg¬\neg
Not Equal To\neq\neq
Approximately Equal\approx\approx
Greek LettersLowercase α\alphaα\alpha
Uppercase Α\AlphaA\Alpha
Lowercase β\betaβ\beta
Uppercase Β\BetaB\Beta
Lowercase γ\gammaγ\gamma
Uppercase Γ\GammaΓ\Gamma
Lowercase δ\deltaδ\delta
Uppercase Δ\DeltaΔ\Delta
Lowercase ε\epsilonϵ\epsilon
Uppercase Ε\EpsilonE\Epsilon
Variant Lowercase φ\varphiφ\varphi
Uppercase Φ\PhiΦ\Phi
Lowercase χ\chiχ\chi
Uppercase Χ\ChiX\Chi
Lowercase μ\muμ\mu
Uppercase Μ\MuM\Mu
Lowercase ω\omegaω\omega
Uppercase Ω\OmegaΩ\Omega
Matrices & VectorsMatrix (with brackets)\begin{pmatrix} a & b \\ c & d \end{pmatrix}(abcd)\begin{pmatrix} a & b\\ c & d \end{pmatrix}
Matrix (no brackets)\begin{matrix} x & y \\ z & w \end{matrix}xyzw\begin{matrix} x & y \\ z & w \end{matrix}
Vector\vec{v}v\vec{v}
Identity Matrix\mathbf{I}I\mathbf{I}
Zero Matrix\mathbf{0}0\mathbf{0}
MiscellaneousAngle\angle\angle
Triangle\triangle\triangle
Square\square\square
Space\quad\quad
Proportional To\propto\propto
Because\because\because
Therefore\therefore\therefore
Integer Set\mathbb{Z}Z\mathbb{Z}
Probability Set\mathbb{P}P\mathbb{P}
Real Number Set\mathbb{R}R\mathbb{R}
Complex Number Set\mathbb{C}C\mathbb{C}
Imaginary Part\Im\Im
Real Part\Re$\Re`
Empty Set\emptyset\emptyset
Fancy Empty Set\varnothing\varnothing
Element Of\in\in
Not Element Of\not\in∉\not\in
Counterclockwise Arrow\circlearrowleft\circlearrowleft
Clockwise Arrow\circlearrowright\circlearrowright
Planck's Constant\hbar\hbar
Natural Log\lnln\ln
Constant π\pi\piπ\pi
FormattingFunction Colorf(x) = a{\color{red}{x}} + bf(x)=ax+bf(x) = a{\color{red}{x}} + b
Color Box\colorbox{#eeeeee}{Color Box}Color Box\colorbox{#eeeeee}{Color Box}
Calligraphic Font{\cal ABCDE12345abced}ABCDE12345abced{\cal ABCDE12345abced}
Framed Text\fbox{boxed text}boxed text\fbox{boxed text}
Boxed Display Style Text\boxed{boxed\ text}boxed text\boxed{boxed\ text}
Fraktur Font{\frak ABCDE12345abcde}ABCDE12345abcde{\frak ABCDE12345abcde}
Italic Font{\it abefg12345}\ abcdefg12345abefg12345 abcdefg12345{\it abefg12345}\ abcdefg12345
Minimum\min\limits_{n}minn\min\limits_{n}
Bold Greek Letter\boldsymbol{\alpha}α\boldsymbol{\alpha}