Packages for font changing

The default LaTeX font is called Computer Modern. Although it’s quite nice, and has an advantage of having many mathematical symbols (a rare thing with fonts!), sometimes one wants to change it to some other one. So here’s an example with the TeX Gyre family of fonts, present in all modern TeX distributions. Notice an interesting feature of TeX: if a percentage sign (without a leading backslash!) appears on the line, everything from that sign to the end of the line is treated as a “comment” and effectively ignored. So in the example below, LaTeX does not “see” any of the \usepackage commands. If we “uncomment” one of them—i.e., remove the percentage sign from the beginning of the line, it will start to work. Each line loads a package which enables a different font from the TeX Gyre collection; probably now is a good time to try at least one or two of them;).

\documentclass{article}

%\usepackage{tgadventor}
%\usepackage{tgbonum}
%\usepackage{tgchorus}
%\usepackage{tgcursor}
%\usepackage{tgheros}
%\usepackage{tgpagella}
%\usepackage{tgschola}
%\usepackage{tgtermes}

\begin{document}
An example of a different font.
\end{document}