Using standard font commands
Before we start, let’s look at some standard LaTeX commands to switch between fonts. Experienced LaTeX users can skip this section. We will keep this very short, as other introductory texts usually cover font commands in detail. Specifically, the LaTeX Beginner’s Guide covers fonts in Chapter 10, Using Fonts, which is an excellent place to start.
Fonts for text have five main attributes:
- Family: This denotes the style of a font, whether it has serifs or not, and whether it’s proportional or monospaced. The latter is also called the typewriter style. You can switch to a family using one of these commands:
- \rmfamily: This switches to a Roman font, where the characters have serifs. It is the default font family.
- \sffamily: This command changes to a sans-serif font.
- \ttfamily: This switches to a typewriter font.
- Encoding: We covered this in the previous chapter and concluded that T1 encoding is usually a good choice for common...