How do I adjust the font size?

This article reviews several methods for changing font size—use the following links to jump to the article section(s) of interest:

Setting document font sizes

LaTeX uses the document class, loaded via the \documentclass command, to set the default font size for various elements, such as footnotes and section headings, which form part of the document’s content. Document classes also support options for explicitly setting the font size of the main document text (and other components):

\documentclass[options]class> 

For example, the article class supports 10pt, 11pt and 12pt for the main document text:

\documentclass[11pt]article> 

The main text will be set to 11pt with correspondingly appropriate vales applied to other document elements.

The extsizes classes

The extsizes classes which compromise extarticle, extreport, extbook, extletter, and extproc support font sizes of 8pt, 9pt, 10pt, 11pt, 12pt, 14pt, 17pt and 20pt.

Example: using the extarticle class

The next example uses the extarticle class to set the document font size to 9pt.

\documentclass[9pt]extarticle> % Note the extarticle document class % Using the geometry package with a small % page size to create the article graphic \usepackage[paperheight=6in, paperwidth=5in, top=10mm, bottom=20mm, left=10mm, right=10mm]geometry> \usepackagelipsum> \begindocument> \sectionIntroduction> \lipsum[1] \subsectionMore details> \lipsum[1] \enddocument> 

This example produces the following output:

LaTeX font size commands

LaTeX provides a set of 10 standard (predefined) commands to change the font size—note that document classes or LaTeX packages may redefine those commands to vary the actual point size. The following table lists those commands and their corresponding point size values for a document using 10pt for the main text font, the default setting of the article class:

\documentclassarticle> 

For the corresponding point sizes generated by \documentclass[11pt] and \documentclass[12pt] refer to the font sizes chart in LaTeX2e: An unofficial reference.

The next table lists the additional commands \HUGE and \ssmall provided by the moresize package. The corresponding font sizes are those in effect when moresize is used with the extarticle document class:

\documentclassextarticle> \usepackagemoresize> 

Example: using font size commands

The next example demonstrates using these commands.

\documentclassextarticle> % Note the extarticle document class % Using the geometry package with a small % page size to create the article graphic \usepackage[paperheight=6in, paperwidth=5in, top=10mm, bottom=20mm, left=10mm, right=10mm]geometry> \usepackagemoresize> \begindocument> The size of this text is \verb=\normalsize= but now it is \tiny tiny until we make it \small small or \ssmall ``ssmall'' via the moresize package. Let's revert to \normalsize normal size then \ttfamily \scriptsize use monospaced \verb=\scriptsize= text in a group> then back to normal. Now, try \verb=\large= \large text then \sffamily \Large \verb=\Large= sans serif text> and finally \HUGE really big (\verb=\HUGE=) and \bfseries bold> text> \enddocument> 

This example produces the following output:

LaTeX font size environments

The names of the size-changing commands listed above can be used as environments to contain text whose size you wish to change; for example:

\beginLarge> Text to be typeset in the \texttt\string\Large> font size goes here. \endLarge>% 

The next example shows how these environments can be nested.

Example: using font size environments

\documentclassextarticle> % Note the extarticle document class % Using the geometry package with a small % page size to create the article graphic \usepackage[paperheight=6in, paperwidth=5in, top=10mm, bottom=20mm, left=10mm, right=10mm]geometry> \usepackagemoresize> \begindocument> \noindent We'll start with normal-sized text then add \begintiny> some \ttfamily \string\tiny> text \beginLarge> mixed with \ttfamily\string\Large> and \beginHUGE>\ttfamily \string\HUGE<> text \endHUGE>% \endLarge>% \endtiny>% then back to normal-sized text. \enddocument> 

This example produces the following output:

The \fontsize and \selectfont commands

The font-size commands listed in the tables above are implemented using the LaTeX commands \fontsize and \selectfont which can also be used to directly select a font-size and the corresponding baseline-skip setting:

\fontsizefont-size>baseline-skip>\selectfont 

The baseline-skip value determines the distance between baselines of text in a paragraph typeset using font-size ; it is also stored in a parameter command called \baselineskip —for more detail, see the Overleaf article How to change paragraph spacing in LaTeX.

Example: using \fontsize and \selectfont

The next example demonstrates \fontsize and \selectfont for a range of font-size and baseline-skip values:

Aesthetically pleasing combinations of font-size and baseline-skip spacing can depend on the design of the typeface being used.

\documentclassarticle> % Using the geometry package with a small % page size to create the article graphic \usepackage[paperheight=6in, paperwidth=5in, top=8mm, bottom=20mm, left=10mm, right=8mm]geometry> \usepackageblindtext> \begindocument> \fontsize6>8>\selectfont\blindtext \fontsize8>9>\selectfont\blindtext \fontsize12>13.5>\selectfont\blindtext \enddocument> 

This example produces the following output:

Other packages for changing font size: relsize and scalefnt

In this section we briefly review the following LaTeX packages:

The relsize package

The relsize package provides commands to set font sizes relative to the current font size—i.e., the font size in use at the location where you want to make a size change; for example, when typesetting footnotes the current (font) size is smaller than within the main text.

For historical reasons, which we won’t explore (but see here), many TeX/LaTeX font-sizing/scaling operations involve the value \(\text\); for example, the table above shows \Large is \(\text\) and the next-larger size, \LARGE , is \(\text\) because \(\text \times 1.2 = \text\). We can also see that \[\texttt <(\LARGE) >\text \times 1.2 = \text\texttt< (\huge)>\]

The relsize package refers to “steps” when moving between font sizes listed in the table above; for example, the code shown below demonstrates moving from 10pt text to 17.28pt involves 3 “steps”, each using a multiplier of 1.2: \[\text \times 1.2 \times 1.2 \times 1.2 = \text\]