You can add to the stylesheet settings for a document’s base font, font size and monospaced fonts. This allows these settings to be used in any document that uses the stylesheet. Setting fonts, however, in LaTeX is not an obvious task. It is, to be honest, rather cumbersome. So, let’s start with the basics. Fonts are packages which you add using the `\usepackage` command. For example, `\usepackage{helvet}`.

Note: A good document about using fonts in LaTeX, see Font selection in LaTeX: The most frequently asked questions - PDF file.

## Setting base fonts for the entire document

For a project I typically use several fonts. For example, I used `Helvetica` for the base font and then I used `Latin Modern` as an alternate base font. `Latin Modern` is a set of true handmade vector fonts.

In the stylesheet, I added the following commands. The first two set the base fonts for the document while the third changes the default family to sans serif.

## Using font declarations

You can add font declarations that are valid within the current scope in the document. A declaration means that the font remains in effect until the end of the current group or environment. They are unlike defining a font in stylesheet which are used throughout the document.

Font families, series and shapes can be combined in a single command. For example, the command `\bfseries\itshape` results in bold italic type.

### Select pre-defined font families

You first add font declarations to allow you to select between pre-defined font families. Then within each font family you add declarations to select the type of font, such as weight, form, and so on.

You then add the following declarations within each font family by using the following:

### Examples

Text strings can be formatted using the following:

## Using the microtype package

To improve readability, you can add the microtype package. When used, you need to define some options and settings. For example, the PostScript font Adobe Courier is used for monospace text.

## Allowing relative font sizes

To allow relative font size specifications, (e.g. \smaller, \larger) use the the package `relsize`.

To control the fonts and formatting used in the Table of Contents, use the `titles` package and set the argument `tocloft`.