Quick Reference

The Ultimate LaTeX Cheatsheet

Instantly find and copy exactly the command you need. Search across 89+ snippets for math symbols, formatting, document structure, and more.

CommandDescriptionCategoryExample OutputCopy
\documentclass{...}Defines the type of document (article, report, book)Structure-
\usepackage{...}Loads a package to add functionalityStructure-
\begin{document}Starts the actual document contentStructure-
\end{document}Ends the document contentStructure-
\title{...}Sets the document titleStructure-
\author{...}Sets the document authorStructure-
\date{...}Sets the document date (use \today for current date)Structure-
\maketitleGenerates the title blockStructure-
\tableofcontentsGenerates a table of contents automaticallyStructure-
\section{...}Creates a top-level sectionStructure-
\subsection{...}Creates a second-level sectionStructure-
\subsubsection{...}Creates a third-level sectionStructure-
\section*{...}Creates an unnumbered sectionStructure-
\newpageForces a page breakStructure-
\textbf{...}Bold textFormatting-
\textit{...}Italic textFormatting-
\underline{...}Underlined textFormatting-
\emph{...}Context-aware emphasis (toggles italics)Formatting-
\textsf{...}Sans-serif fontFormatting-
\texttt{...}Monospace (typewriter) fontFormatting-
\textsc{...}Small caps fontFormatting-
\\Forces a line break without starting a new paragraphFormatting-
\noindentPrevents paragraph indentationFormatting-
\begin{itemize}Starts a bulleted listEnvironments-
\begin{enumerate}Starts a numbered listEnvironments-
\itemAdds a new item to a listEnvironments-
\begin{center}Centers the text insideEnvironments-
\begin{flushleft}Left-aligns the textEnvironments-
\begin{flushright}Right-aligns the textEnvironments-
\begin{abstract}Creates an abstract sectionEnvironments-
\begin{quote}Formats a block quoteEnvironments-
$ ... $Inline math modeMath-
\[ ... \]Display math mode (centered on its own line)Math-
^{...}Superscript (exponent)Mathx^{2}
_{...}SubscriptMathx_{1}
\frac{num}{den}Creates a fractionMath-
\sqrt{...}Square rootMath-
\sqrt[n]{...}nth rootMath\sqrt[3]{8}
\sum_{i=1}^{n}Summation with limitsMath-
\prod_{i=1}^{n}Product with limitsMath-
\int_{a}^{b}Integral with limitsMath-
\lim_{x \to \infty}LimitMath-
\begin{pmatrix}Matrix with parenthesesMath-
\begin{bmatrix}Matrix with square bracketsMath-
\begin{vmatrix}Determinant matrix (vertical lines)Math-
\begin{align}Aligned multi-line equations (requires amsmath)Math-
\text{...}Normal text inside math modeMath-
\alpha, \beta, \gammaLowercase Greek lettersGreek Lettersα, β, γ
\delta, \epsilon, \zetaLowercase Greek lettersGreek Lettersδ, ε, ζ
\eta, \theta, \iotaLowercase Greek lettersGreek Lettersη, θ, ι
\kappa, \lambda, \muLowercase Greek lettersGreek Lettersκ, λ, μ
\nu, \xi, \piLowercase Greek lettersGreek Lettersν, ξ, π
\rho, \sigma, \tauLowercase Greek lettersGreek Lettersρ, σ, τ
\upsilon, \phi, \chiLowercase Greek lettersGreek Lettersυ, φ, χ
\psi, \omegaLowercase Greek lettersGreek Lettersψ, ω
\Gamma, \Delta, \ThetaUppercase Greek lettersGreek LettersΓ, Δ, Θ
\Lambda, \Xi, \PiUppercase Greek lettersGreek LettersΛ, Ξ, Π
\Sigma, \Phi, \Psi, \OmegaUppercase Greek lettersGreek LettersΣ, Φ, Ψ, Ω
\inftyInfinity symbolSymbols
\pmPlus-minusSymbols±
\mpMinus-plusSymbols
\timesMultiplication crossSymbols×
\cdotMultiplication dotSymbols·
\approxApproximately equalSymbols
\neqNot equalSymbols
\leqLess than or equalSymbols
\geqGreater than or equalSymbols
\equivEquivalent toSymbols
\toRight arrowSymbols
\leftarrowLeft arrowSymbols
\RightarrowImplies (thick right arrow)Symbols
\iffIf and only if (thick double arrow)Symbols
\inElement ofSymbols
\notinNot element ofSymbols
\subsetSubset ofSymbols
\cupUnionSymbols
\capIntersectionSymbols
\nablaNabla (Gradient)Symbols
\partialPartial derivativeSymbols
\usepackage{graphicx}Required package for inserting imagesGraphics-
\includegraphics[width=\textwidth]{...}Inserts an imageGraphics-
\begin{figure}[h]Floating environment for imagesGraphics-
\caption{...}Adds a caption to a figure or tableGraphics-
\label{...}Creates a marker for cross-referencingReferences-
\ref{...}Refers to a label's numberReferences-
\pageref{...}Refers to the page number of a labelReferences-
\cite{...}Cites a bibliography entryReferences-
\bibliographystyle{...}Sets the bibliography style (e.g., plain, apa)References-
\bibliography{...}Generates the bibliography from a .bib fileReferences-