The Jungle of LaTeX Math Packages
17 Jul 2004
You may have felt lost in the sea of LaTeX packages related to AMS – American Mathematical Society. Which ones do you need? How do they include each other?
1 The Main amsmath Package and What It Includes
The main package that you'll get to use is amsmath. While it's probably convenient to just include it to cover the great majority of purposes and needs, you may choose to more restrictively \usepackage some of the smaller packages that it includes:
- The
amsopnpackage provides the\DeclareMathOperatorcommand which lets you declare custom mathematical operators. - The
amstextpackage provides the\textcommand for writing plain text in mathematical expressions, text which won't render in italic with weird spacing.
2 Additional Packages
The following packages are not included in the amsmath package and you may want to \usepackage them in addition:
- The
amscdpackage for drawing commutative diagrams with theCDenvironment. - The
amdthmpackage to declare theorem-like structures. It comes with aproofenvironment. - The
amsxtrapackage provides tools for backward compatibility. - The
uprefpackage for having\refprint cross-reference numbers in an upright font, regardless of the context. - The
amsfontspackage provides various fonts (e.g.\mathfrakand\mathbb). - The
amssymbpackage is automatically loaded byamsfontsand provides symbols. - The
eufrakpackage defines\mathfrak(which also comes withamsfonts). - The
eucalpackage to have\mathcaluse the Euler script instead of Computer Modern.
3 In Practice
Consequently, you may only need to include the following couple of lines in your preamble:
\usepackage{amsmath}
\usepackage{amsfonts}4 References
- Frank Mittelbach, Michel Goossens & Alexander Samarin, The LATEX Companion
