Fonts
You can change the font of text in LaTeX using a simple command. Observe the difference in font rendered in Pressbooks:
Testing, testing, one, two, three
\){\fontfamily{qbk}\selectfont
\text{Testing, testing, one, two, three}}\)
The first font is the theme’s default body text font, Tinos, and the second is the TeX Gyre Bonum font. You can find a list of available LaTeX typefaces on Overleaf.
If you would like to change the font of all text rendered in LaTeX using \text{}, you need to add a package to the QuickLaTeX settings in Pressbooks. To do this:
- Go to Settings > QuickLaTeX in the Pressbooks dashboard menu
- Go to the Advanced tab
- Add “\usepackage{fontpackagename}” on a new line (without italics)
You can find a list of font packages on the Overleaf reference page linked to above.