Learn LaTeX
Learn LaTeX one question at a time. Each guide gives the short answer first, then code you can copy and compile.
Format text in LaTeX
Line breaks, size, bold, color, quotes and special characters.
\\
Font sizeMake text bigger or smaller, from \tiny to \Huge\large
Bold text and bold mathBold text, bold math and bold Greek letters\textbf
Text colorsColor text and define your own colorsxcolor
Quotation marksGet “curly” quotes instead of straight ones``…''
Special charactersType %, $, &, _ and # without errors\%
Write math in LaTeX
Fractions, scripts, matrices, aligned and piecewise equations.
_ ^
Line break in an equationSplit a long equation over several linessplit
Align equationsLine up equations at the equals signalign
FractionsInline and display fractions, big and small\frac
MatricesMatrices with round, square or bar bracketspmatrix
Piecewise functionsWrite functions with casescases
\mathbb and \mathcalBlackboard bold ℝ and calligraphic lettersamssymb
Lists, tables, figures and references
Structure a document and cite your sources.
itemize
TablesBuild a table with tabular, lines and a captiontabular
Page numbersChange, restart or remove page numbers\pagenumbering
New page and page breaksForce a page break, or stop one from happening\newpage
HyperlinksClickable links and URLs with hyperref\href
Insert an imageInsert, resize and crop imagesgraphicx
Figures side by sidePut two figures side by side with captionssubcaption
Bibliography with BibTeXCite sources with BibTeX, natbib or biblatex\cite
Copy BibTeX from ZoteroCopy BibTeX entries out of ZoteroBetter BibTeX
What is the fastest way to learn LaTeX?
Learn the parts you need this week, not the whole language. Most documents use a dozen commands: sections, lists, a table, a figure, some math and a bibliography. Start with the guide for the task in front of you, copy the example, and change it.
What do you need to start?
A TeX distribution and an editor, or an online editor such as Overleaf. Every example on this site compiles with pdflatex in a current TeX Live. To put a LaTeX snippet on a web page instead, use the LaTeX to HTML converter. With an online editor you can learn LaTeX without installing anything.
Text drafted with AI from the LaTeX documentation; checked by Cem Demir. See the editorial policy.