Skip to main content
When a paper moves beyond core amsmath, six packages handle most specialized mathematical typesetting: mathtools for semantic paired delimiters and definition symbols, amssymb / mathrsfs / bm for math alphabets and bold symbols, tikz-cd for commutative diagrams, and tensor for ordered covariant and contravariant indices. For theorem and proof environments (amsthm), see Theorems and proof environments. For custom operators, see Math spacing and operators.

Paired delimiters and mathtools

mathtools loads amsmath automatically and adds \DeclarePairedDelimiter, which defines semantic commands for absolute values, norms, or inner products. Calling the starred form (\norm*{...}) scales the delimiters with \left and \right; passing an optional size command (\abs[\Big]{...}) gives manual control without repeating both delimiters. mathtools also supplies \coloneqq for := with the colon vertically centered on the equals sign.
mathtools-delimiters.tex
Ready to use this syntax? Continue in the browser editor when you want to adapt the example in a real project.Open LaTeX Cloud Studio

Math alphabets and bold symbols

Because \mathbf leaves lowercase Greek letters unbolded in default Computer Modern math fonts and sets Latin letters upright, load the bm package and use \bm{...} when you need bold Greek symbols or bold italic vectors. For math alphabets (\mathbb, \mathcal, \mathfrak, \mathscr) as well as relations, set operations, and arrows, see Math symbols.

Stacked annotations and multi-line subscripts

amsmath provides \overset{top}{base} and \underset{bottom}{base} to annotate relation symbols without breaking surrounding relation spacing, \xrightarrow[below]{above} for labeled arrows that stretch to fit their labels, and \substack{... \\ ...} for multi-line conditions underneath \sum or \prod.
annotations-subscripts.tex

Commutative diagrams with tikz-cd

The tikz-cd package typesets commutative squares, triangles, and exact sequences using a matrix-like grid where & moves right, \\ starts a new row, and \arrow[direction, "label"] draws labeled arrows. Add a trailing apostrophe ("g"') to flip a label to the opposite side of its arrow.
tikzcd-diagram.tex

Staggered tensor indices with tensor

In plain LaTeX, writing R^\rho_{\sigma\mu\nu} stacks the superscript and subscript directly above each other, hiding which index comes first. The tensor package preserves the horizontal left-to-right slot order of mixed upper and lower indices.
tensor-indices.tex

Common mistakes

  • Using \mathbf{\alpha} for bold Greek letters: \mathbf leaves lowercase Greek letters unbolded in default Computer Modern math fonts. Load bm and use \bm{\alpha}.
  • Applying \mathbb or \mathcal to lowercase letters: Standard amssymb blackboard bold (\mathbb) and default \mathcal only cover uppercase Latin letters A–Z.
  • Loading amsmath and mathtools with conflicting options: mathtools loads amsmath internally; pass any amsmath options via mathtools or load amsmath first with its options before loading mathtools.
  • Stacking tensor indices with bare ^ and _: Write \tensor{T}{^\mu_\nu^\lambda} (or insert empty groups {T^\mu}_\nu{}^\lambda) whenever index order matters.

Try it in the editor

mathtools, amssymb, mathrsfs, bm, tikz-cd, and tensor are all included in LaTeX Cloud Studio’s TeX Live 2026 distribution. Start from the Extended Article template in LaTeX Cloud Studio and replace main.tex with any of the complete examples above.