LaTeX font size: change text size in a document
Set the whole document with a class option, 10pt,11pt or 12pt. Change part of it with a size command such as \large or \small. For an exact size, use \fontsize. All are core LaTeX.
\documentclass[12pt]{article}
\begin{document}
Normal text, {\large larger text in a group}, and back to normal.
\begin{center}
\Huge Big centred heading
\end{center}
\end{document}The size command applies from where you write it until the end of the group or environment it is in. Here the braces end \largeand the center environment ends \Huge.
Document-wide size
The standard classes (article, report,book) accept 10pt (the default),11pt and 12pt:\documentclass[11pt]{article}. Other sizes need a different class, such as extarticle from theextsizes bundle, which adds 8pt, 9pt, 14pt, 17pt and 20pt.
The size commands
Ten commands, smallest to largest. \normalsize is the class's base size, and every other size is set relative to it, so the same command gives a different size under each class option. Values below were measured by compiling article at each option.
| Command | 10pt class | 11pt class | 12pt class |
|---|---|---|---|
| \tiny | 5 pt | 6 pt | 6 pt |
| \scriptsize | 7 pt | 8 pt | 8 pt |
| \footnotesize | 8 pt | 9 pt | 10 pt |
| \small | 9 pt | 10 pt | 10.95 pt |
| \normalsize | 10 pt | 10.95 pt | 12 pt |
| \large | 12 pt | 12 pt | 14.4 pt |
| \Large | 14.4 pt | 14.4 pt | 17.28 pt |
| \LARGE | 17.28 pt | 17.28 pt | 20.74 pt |
| \huge | 20.74 pt | 20.74 pt | 24.88 pt |
| \Huge | 24.88 pt | 24.88 pt | 24.88 pt |
Sizes are in points. \normalsize at 11pt is 10.95 pt, and\small at 12pt is 10.95 pt, because TeX's 11pt font is 10.95 pt.
Scope: groups and environments
A size command is a switch, not a wrapper: it takes no argument. Limit it with braces, an environment, or \begingroup and\endgroup. In a group that contains a paragraph break, end the group after \par, or the line spacing of the last line will use the old size.
Normal, {\footnotesize small note\par} normal again.
\begingroup
\footnotesize
Small print in its own group.
\endgroupExact size with \fontsize
{\fontsize{14}{17}\selectfont Fourteen point text on a 17\,pt baseline.\par}
Back to ten point.The first argument is the font size, the second the baseline skip (line spacing), both in points. \selectfont is required; without it nothing changes. If the log reportsFont shape ... not available, size substituted, the default Computer Modern font has no outline at that size. Load\usepackage{lmodern} with\usepackage[T1]{fontenc}, or\usepackage{anyfontsize}, to scale smoothly.
Bold, italic and underline
\textbf{Bold}, \textit{italic}, \emph{emphasis}, \underline{underlined},
\textsc{small caps}, \texttt{monospace}.
\emph{An emphasised phrase with \emph{nested emphasis} inside.}\textbfbold,\textititalic,\textscsmall caps,\textttmonospace.\emphis usually better than\textitfor stress: inside italic text it switches back to upright, so nesting still reads.\underlinecannot break across lines. For underlining that wraps, use\usepackage{ulem}and\uline, or avoid underlining; emphasis is the typographic convention.
Common mistakes
- Using
\fontsizewithout\selectfont.The size is stored but never applied. - Writing
\large{text}. It compiles, but the size applies to everything after it in the enclosing group, not only the braced text. Use{\large text}. - Tweaking sizes to fit a page limit. Change the class option or the margins deliberately; mixed sizes make the page look uneven.
Templates that use this
Size changes show up in headings and layout-tight pages. See theCV and resume templates, thepresentation templates, or thebook templates.
Related
Font and engine choices decide which typefaces and sizes are available; see pdfLaTeX vs XeLaTeX vs LuaLaTeX. For the vertical gaps that go with larger text, seeline breaks and spacing. New to LaTeX? Start here. Complete documents with sensible sizes already set are in thearticle templates.