LaTeX math symbols and Greek letters
Math symbols are commands used between $ $or inside \[ \]. Most are core LaTeX; the package column says when one is not.
\documentclass{article}
\begin{document}
$\alpha + \beta \neq \infty$ \qquad $A \to B$
\end{document}Greek letters
Lowercase letters are \alpha,\beta, and so on. Capitalise the name for uppercase (\Gamma). LaTeX has no command for an uppercase letter that looks the same as a Latin one, such as alpha. Type the Latin letter instead. Several letters have a variant form, such as\varepsilon.
| Letter | Lowercase | Uppercase |
|---|---|---|
| alpha | \alpha | A |
| beta | \beta | B |
| gamma | \gamma | \Gamma |
| delta | \delta | \Delta |
| epsilon | \epsilon | E |
| epsilon (variant) | \varepsilon | |
| zeta | \zeta | Z |
| eta | \eta | H |
| theta | \theta | \Theta |
| theta (variant) | \vartheta | |
| kappa | \kappa | K |
| lambda | \lambda | \Lambda |
| mu | \mu | M |
| nu | \nu | N |
| xi | \xi | \Xi |
| pi | \pi | \Pi |
| rho | \rho | P |
| sigma | \sigma | \Sigma |
| tau | \tau | T |
| phi | \phi | \Phi |
| phi (variant) | \varphi | |
| chi | \chi | X |
| psi | \psi | \Psi |
| omega | \omega | \Omega |
Relations and operators
Not equal is \neq. To negate any other relation, put \not before it, as in \not\equiv.
| Meaning | Command | Short form |
|---|---|---|
| not equal | \neq | \ne |
| less or equal | \leq | \le |
| greater or equal | \geq | \ge |
| approximately equal | \approx | |
| similar to, tilde operator | \sim | |
| equivalent | \equiv | |
| proportional to | \propto | |
| much less than | \ll | |
| much greater than | \gg | |
| plus or minus | \pm | |
| times | \times | |
| dot product | \cdot |
Arrows
| Meaning | Command | Other form | Package |
|---|---|---|---|
| right arrow | \to | \rightarrow | core |
| left arrow | \leftarrow | core | |
| left-right arrow | \leftrightarrow | core | |
| maps to | \mapsto | core | |
| long right arrow | \longrightarrow | core | |
| double right arrow | \Rightarrow | core | |
| double left-right arrow | \Leftrightarrow | core | |
| implies (spaced) | \implies | amsmath | |
| if and only if (spaced) | \iff | amsmath | |
| arrow with label | \xrightarrow{f} | amsmath | |
| up arrow | \uparrow | core | |
| down arrow | \downarrow | core |
Sets, logic and infinity
| Meaning | Command | Package |
|---|---|---|
| infinity | \infty | core |
| partial derivative | \partial | core |
| nabla | \nabla | core |
| for all | \forall | core |
| there exists | \exists | core |
| element of | \in | core |
| not an element of | \notin | core |
| subset of | \subset | core |
| union | \cup | core |
| intersection | \cap | core |
| empty set | \varnothing | amssymb |
| real numbers | \mathbb{R} | amssymb |
| therefore | \therefore | amssymb |
| ellipsis, mid-line | \cdots | core |
Degree symbol
In math, write the degree as a superscript circle:^\circ. In running text, \textdegreeworks in current LaTeX with no package. The gensymb package adds \degree, which works in both modes.
\documentclass{article}
\usepackage{gensymb}
\begin{document}
A right angle is $90^\circ$. Water boils at 100\textdegree{}C,
or 100\,\degree C. In math: $T = 25\,\degree\mathrm{C}$.
\end{document}Absolute value and norms
|x| works, but spacing is poor when a bar follows a relation or operator. amsmath provides\lvert and \rvert, which are spaced as delimiters. For tall contents, use\left| ... \right|. Norms use\lVert ... \rVert.
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\[
\lvert x \rvert \qquad
\left| \frac{a}{b} \right| \qquad
\lVert \mathbf{v} \rVert
\]
\end{document}If you write absolute values often, mathtools lets you define a sizing macro once:
\documentclass{article}
\usepackage{mathtools}
\DeclarePairedDelimiter{\abs}{\lvert}{\rvert}
\begin{document}
$\abs{x}$ \quad $\abs*{\frac{a}{b}}$
\end{document}Tilde
The meaning of "tilde" depends on where it is used.
- Over a symbol:
\tilde{x}, or\widetilde{xy}over several characters. - As an operator, "similar to":
\simin math.\approxmeans "approximately equal". - As a printed character in text:
\textasciitilde. A bare~does not print a tilde. - As a non-breaking space: in text mode,
~is a space that cannot break across lines. WriteFigure~\ref{fig}, notFigure \ref{fig}.
\documentclass{article}
\begin{document}
$\tilde{x}$ \quad $\widetilde{xy}$ \quad $x \sim y$ \quad
home\textasciitilde user \quad Section~2
\end{document}Common mistakes
- "Missing $ inserted" on a symbol. Symbol commands in the tables only work in math mode.
- Undefined control sequence. The command needs a package. Check the package column.
- Inputting the character. Typing a Unicode symbol such as ∞ directly fails under pdfLaTeX without extra setup. Use the command.
Templates that use this
Keep a symbol list handy with thecheat sheet template, or use symbols in a paper with the amsart article and in slides with thepresentation templates.
Related
Symbols are most useful insidefractions,sums and integrals andaligned equations. If a symbol will not render in your engine, seepdfLaTeX vs XeLaTeX vs LuaLaTeX. For ready-made documents, see thethesis templates.