LatexNotes

Font sizes in LaTeX

LaTeX has ten size commands, from \tiny to \Huge, each relative to the document's base size; put one in braces with the text it should change.

LaTeX command

{\large text}

Not the symbol you meant? Draw it to find the command →

Typing up handwritten notes? Convert a whole page of handwriting to LaTeX →

In order, smallest first: \tiny, \scriptsize, \footnotesize, \small, \normalsize, \large, \Large, \LARGE, \huge and \Huge. At the standard 10 pt base they are 5, 7, 8, 9, 10, 12, 14.4, 17.28, 20.74 and 24.88 pt. Each is a switch, so {\small ...} limits it to the braces; end a paragraph inside them with \par so the line spacing changes too.

The base size for the whole document is a class option: \documentclass[11pt]{article} or 12pt. The standard classes offer 10, 11 and 12 pt. For an exact size, \fontsize{15}{18}\selectfont sets 15 pt type on 18 pt lines; it needs a font that scales freely, such as Latin Modern from the lmodern package.

The size commands are not allowed inside maths in LaTeX. Put the size outside the maths, as in {\Large \(x^2\)}, or use \displaystyle and \scriptstyle to change the maths style itself.

Change the size of a passage, the document or exactly

A size for a passage, the base size for the whole document, and an exact size with its line spacing.

{\large This text is larger.\par}
\documentclass[12pt]{article}
\fontsize{15}{18}\selectfont

Other forms

\tiny \scriptsize \footnotesize \smallsmaller than normal
\normalsizethe document's size
\large \Large \LARGE \huge \Hugelarger
\documentclass[12pt]{article}the whole document
\fontsize{15}{18}\selectfontan exact size

Examples

$\text{\small small \normalsize normal \Large large}$

three sizes side by side

$\text{\tiny tiny \scriptsize scriptsize \footnotesize footnotesize}$

the smallest three

$\text{\huge huge \Huge Huge}$

the largest two

$\displaystyle \sum_{n=1}^{\infty} \frac{1}{n^2} \quad \textstyle \sum_{n=1}^{\infty} \frac{1}{n^2}$

display and text style in maths

Tips and common mistakes

Working from handwritten notes?

LatexNotes turns a photo or PDF of handwritten mathematics into LaTeX, graphs and all. It is built with real pdflatex before you see it, and the .tex file is yours to edit or take to Overleaf. Free to try, no sign-up.

See how handwriting to LaTeX works, step by step, or go from GoodNotes to LaTeX if you write on an iPad (Notability works the same way).

Convert your maths to LaTeX →

FAQ

How do I change the font size in LaTeX?

Use a size command in braces, such as {\large your text}. There are ten, from \tiny to \Huge.

What are the LaTeX font sizes in points?

At a 10 pt base: tiny 5, scriptsize 7, footnotesize 8, small 9, normalsize 10, large 12, Large 14.4, LARGE 17.28, huge 20.74, Huge 24.88.

How do I change the font size of the whole document?

Give the class a size option, for example \documentclass[12pt]{article}.

How do I set an exact font size?

Use \fontsize{15}{18}\selectfont for 15 pt type on 18 pt lines, with a scalable font such as lmodern.

See also