Underleaf Logo
Underleaf
PricingAboutBlog
Log InGet started

LaTeX Cheat Sheet: Essential Commands and Syntax Reference

February 2, 2026

LaTeX Cheat Sheet: Essential Commands and Syntax Reference

A quick reference for the LaTeX commands you actually use. Bookmark this page for when you forget a command mid-paper.

Document Structure

CommandWhat It Does
\documentclass{article}Set document type (article, report, book, beamer)
\usepackage{name}Load a package
\begin{document}Start document content
\title{} \author{} \date{}Set title page info
\maketitleRender the title
\section{}Create a section heading
\subsection{}Create a subsection
\subsubsection{}Create a sub-subsection
\tableofcontentsGenerate table of contents
\newpageForce a page break

Text Formatting

CommandResult
\textbf{text}Bold text
\textit{text}Italic text
\underline{text}Underlined text
\texttt{text}Monospace/typewriter text
\emph{text}Emphasized text (usually italic)
\\Line break
\par or blank lineNew paragraph
\footnote{text}Add a footnote

Math Mode

SyntaxWhat It Does
$...$Inline math
$$...$$ or \[...\]Display math (centered, own line)
\frac{a}{b}Fraction a/b
x^{2}Superscript (x squared)
x_{i}Subscript
\sqrt{x}Square root
\sqrt[n]{x}nth root
\sum_{i=1}^{n}Summation with limits
\int_{a}^{b}Integral with limits
\lim_{x \to \infty}Limit notation
\vec{v}Vector arrow notation
\mathbf{v}Bold vector notation
\left( ... \right)Auto-scaling parentheses

For a deeper dive, see our guides on fractions, vectors, and subscripts/superscripts.

Common Greek Letters

CommandLetterCommandLetter
\alphaα\betaβ
\gammaγ\deltaδ
\epsilonε\thetaθ
\lambdaλ\muμ
\piπ\sigmaσ
\phiφ\omegaω
\GammaΓ\DeltaΔ
\SigmaΣ\OmegaΩ

Common Symbols

CommandSymbolCommandSymbol
\times×\div÷
\pm±\cdot·
\leq\geq
\neq\approx
\infty\partial
\nabla\rightarrow
\in\notin
\subset\forall

Tables

CommandWhat It Does
\begin{tabular}{l c r}Create table (left, center, right columns)
&Column separator
\\Row separator
\hlineHorizontal line
\toprule \midrule \bottomruleProfessional rules (requires booktabs)
\begin{table}[h]Float wrapper with placement hint
\caption{}Table caption
\label{tab:name}Label for cross-referencing

Figures

CommandWhat It Does
\begin{figure}[h]Float wrapper for figures
\includegraphics[width=\linewidth]{file}Insert image (requires graphicx)
\caption{}Figure caption
\label{fig:name}Label for cross-referencing
\centeringCenter the figure

Cross-References and Citations

CommandWhat It Does
\label{key}Mark a location for referencing
\ref{key}Reference a label (number)
\eqref{key}Reference an equation (with parentheses)
\cite{key}Cite a reference
\bibliography{refs}Include bibliography file
\bibliographystyle{plain}Set citation style

Lists

EnvironmentWhat It Does
\begin{itemize}Bullet list
\begin{enumerate}Numbered list
\begin{description}Description list
\itemList item

Essential Packages

PackageWhat It Does
amsmathExtended math environments (align, gather, etc.)
amssymbAdditional math symbols
graphicxImage inclusion
booktabsProfessional table formatting
hyperrefClickable links and cross-references
geometryPage margin control
natbibFlexible citation formatting
tikzDiagrams and graphics
listings or mintedCode syntax highlighting
algorithm2eAlgorithm pseudocode

Float Placement Hints

OptionMeaning
hHere (approximately)
tTop of page
bBottom of page
pSeparate float page
!Override LaTeX's placement rules
HExactly here (requires float package)

Spacing Commands

CommandEffect
\hspace{1cm}Horizontal space
\vspace{1cm}Vertical space
\quadMedium horizontal space
\qquadLarge horizontal space
\,Thin space (math mode)
~Non-breaking space
Underleaf Logo
Underleaf

Empowering students and researchers with AI-powered tools for academic writing.

Go to appContact us

Company

PricingBlogTutorialsAffiliate Program

Free Tools

Image to LaTeXExcel to LaTeXArXiv to LaTeXTikZ GeneratorThesis GeneratorChrome ExtensionAll Tools

© 2026 Underleaf. All rights reserved.