Next: , Previous: , Up: Top   [Contents][Index]


4 Fonts

LaTeX comes with powerful font capacities. For one thing, its New Font Selection Scheme allows you to work easily with the font families in your document (for instance, see Font styles). And, LaTeX documents can use most fonts that are available today, including versions of Times Roman, Helvetica, Courier, etc. (Note, though, that many fonts do not have support for mathematics.)

The first typeface in the TeX world was the Computer Modern family, developed by Donald Knuth. It is the default for LaTeX documents and is still the most widely used. But changing to another font often only involves a few commands. For instance, putting the following in your preamble gives you a Palatino-like font, which is handsome and more readable online than many other fonts, while still allowing you to typeset mathematics. (This example is from Michael Sharpe, http://math.ucsd.edu/~msharpe/RcntFnts.pdf.)

\usepackage[full]{textcomp}
\usepackage[osf]{newpxtext} % osf for text, not math
\usepackage{cabin} % sans serif
\usepackage[varqu,varl]{inconsolata} % sans serif typewriter
\usepackage[bigdelims,vvarbb]{newpxmath} % bb from STIX
\usepackage[cal=boondoxo]{mathalfa} % mathcal

In addition, the xelatex or lualatex engines allow you to use any fonts on your system that are in OpenType or TrueType format (see TeX engines).

The LaTeX Font Catalogue http://www.tug.dk/FontCatalogue/ shows font sample graphics and copy-and-pasteable source to use many fonts, including many with support for mathematics. It aims to cover all Latin alphabet free fonts available for easy use with LaTeX.

More information is also available from the TeX Users Group, at https://www.tug.org/fonts/.


Unofficial LaTeX2e reference manual