\usepackage, pass options, resolve Option clash, and manage loading order, see Package management.
Every package listed below ships with TeX Live 2026 (the full distribution used by LaTeX Cloud Studio).
Page layout and spacing
| Package | Purpose | Guide |
|---|---|---|
geometry | Set page size, margins, and text block dimensions | Lengths and units |
fancyhdr | Customize running headers and footers | Headers and footers |
setspace | Single, 1.5, double, or custom line spacing (\onehalfspacing, \doublespacing) | Paragraphs and spacing |
parskip | Replace paragraph indentation with vertical space between paragraphs | Paragraphs and spacing |
multicol | Switch between single-column and balanced multi-column regions | Multiple columns |
ragged2e | Ragged-right, ragged-left, and centered text with hyphenation enabled (\RaggedRight) | Warnings explained |
microtype | Character protrusion and font expansion to improve line breaks | LaTeX fonts |
Fonts and languages
| Package | Purpose | Guide |
|---|---|---|
fontenc | Select output font encoding under pdfLaTeX (typically \usepackage[T1]{fontenc}) | LaTeX fonts |
lmodern | Latin Modern vector fonts for pdfLaTeX | LaTeX fonts |
fontspec | Load system OpenType and TrueType fonts under XeLaTeX or LuaLaTeX | LaTeX fonts |
babel | Language hyphenation, localized headings, and typography across engines | Multi-language documents |
polyglossia | Language support designed for XeLaTeX and LuaLaTeX | Multi-language documents |
csquotes | Context-sensitive quotation marks matched to the active language | Multi-language documents |
Mathematics and units
| Package | Purpose | Guide |
|---|---|---|
amsmath | Multi-line equation environments (align, gather, multline), \text, \binom, \eqref | LaTeX equations |
amssymb | Extended math symbols (\therefore, \varnothing, \subsetneq) and \mathbb/\mathfrak (loads amsfonts) | Mathematical symbols |
mathtools | Extensions and fixes for amsmath, including \DeclarePairedDelimiter and \coloneqq | Advanced math |
amsthm | Custom theorem, lemma, definition, and proof environments | Theorems and proof environments |
bm | Bold math symbols, including lowercase Greek letters and italic vectors | Mathematical symbols |
xfrac | Diagonal inline fractions (\sfrac{1}{2}) | Fractions and binomials |
siunitx | Consistent formatting for physical quantities, SI units, and decimal-aligned table columns (S) | Physics notation |
Graphics, figures, and plots
| Package | Purpose | Guide |
|---|---|---|
graphicx | Include external images (\includegraphics) and scale or rotate boxes | Inserting images |
subcaption | Side-by-side subfigure and subtable panels with individual captions | Inserting images |
caption | Customize float captions and place captions outside floats with \captionof | Float and placement issues |
float | Extra float styles and the [H] non-floating placement modifier | Float and placement issues |
wrapfig | Wrap narrow figures or tables inside running text | Inserting images |
xcolor | Named color models, custom colors, and colored text or boxes | Text formatting |
tikz | Programmatic vector diagrams, flowcharts, and geometric drawings | TikZ diagrams |
pgfplots | 2D and 3D data plots and function graphs built on TikZ | Plotting with pgfplots |
Tables
| Package | Purpose | Guide |
|---|---|---|
booktabs | Clean horizontal table rules (\toprule, \midrule, \bottomrule) | Creating tables |
array | Extended column specifications (>{\bfseries}, m{...}, \newcolumntype) | Tabular environment |
tabularx | Fixed-width tables with auto-sizing X columns | Advanced tables |
longtable | Multi-page tables with repeating headers and footers | Advanced tables |
multirow | Cells spanning multiple rows (\multirow) | Advanced tables |
colortbl | Row, column, and cell background shading (also enabled by xcolor with [table]) | Advanced tables |
Bibliography, cross-references, and lists
| Package | Purpose | Guide |
|---|---|---|
biblatex | Configurable bibliographies and citations paired with Biber | BibLaTeX guide |
natbib | Author-year and numerical citations (\citet, \citep) for BibTeX .bst styles | Natbib guide |
hyperref | Clickable cross-references, URLs, PDF bookmarks, and metadata (load near the end of the preamble) | Hyperlinks |
cleveref | Automatic reference prefixes (\cref{fig:a} → “fig. 1”, \Cref{fig:a} → “Figure 1”); load after hyperref | Cross-referencing |
url | Line-breaking URL formatting when full hyperref links are not needed | Warnings explained |
enumitem | Customize list labels, spacing, inline lists, and resumed numbering | Lists in LaTeX |
Code, pseudocode, and specialized notation
| Package | Purpose | Guide |
|---|---|---|
listings | Syntax-highlighted source code blocks without external tools | Code listings and minted |
minted | Pygments-backed code highlighting via latexminted and Python Pygments (works under restricted shell escape in TeX Live 2024+, or --shell-escape on older setups) | Code listings and minted |
verbatim | Enhanced verbatim environment, \verbatiminput, and the comment environment | Common LaTeX errors |
algorithm + algpseudocode | Numbered algorithm float with algorithmicx pseudocode syntax | Pseudocode in LaTeX |
algorithm2e | Self-contained algorithm float and pseudocode syntax | Pseudocode in LaTeX |
mhchem | Chemical formulas and reaction equations (\ce{H2O}) | Chemistry notation |
chemfig | 2D chemical structural diagrams | Chemistry notation |
circuitikz | Electrical and electronic circuit schematics built on TikZ | Circuit diagrams |
forest | Linguistic syntax trees built on TikZ | Linguistics notation |
Document structure
| Package | Purpose | Guide |
|---|---|---|
titlesec | Customize heading fonts, numbering, and spacing | Sections and chapters |
glossaries | Glossaries and acronyms with automatic first-use expansion | Glossaries and acronyms |
makeidx / imakeidx | Back-of-book indexes (\index, \printindex) | Indexes |
tocbibind | Add the bibliography, index, and float lists to \tableofcontents | Table of contents |
Try it in the editor
Start from the Basic Article template in LaTeX Cloud Studio and add any\usepackage{...} line above to main.tex—all TeX Live 2026 packages are preinstalled.