Some fonts in LaTeX
Times New Roman, Palatino, Garamond, Erewhon, Georgia
ON THIS PAGE
LaTeX is probably familiar to most people who do quantitative work. Sometimes we might want to use different fonts, to make our documents look nicer. This post introduces some commonly used fonts with their respective math fonts in LaTeX and how to load them with PDFLaTeX. Also, there is a picture of example output of each font generated by the duckuments
package.
Times New Roman
Times New Roman–type fonts are used almost everywhere, formally or informally. To use the font globally, put the following in the preamble (i.e., after \documentclass[]{}
and before \begin{document}
):
\usepackage{newtxtext, newtxmath}
An example paragraph in this font:
Palatino
Similarly, use the newpx
packages as below,
\usepackage{newpxtext,newpxmath}
An example paragraph in this font:
Garamond
EB Garamond is recommended generally. Use it by putting the following into the preamble
\usepackage[cmintegrals,cmbraces]{newtxmath}
\usepackage{ebgaramond-maths}
\usepackage[T1]{fontenc}
An example paragraph in this font:
Erewhon
To use Erewhon, use
\usepackage[space]{erewhon}
\usepackage[type1,scaled=.95]{cabin}
\usepackage[utopia,vvarbb]{newtxmath}
which gives
Georgia
This solution comes from the an answer on StackExchange. To use the font in this way with math, use LuaLaTeX instead of PDFLaTeX! The example output comes from the original answer.
\usepackage[math-style=ISO]{unicode-math}
\usepackage{microtype}
\defaultfontfeatures{Scale=MatchLowercase}
\setmainfont{Georgia}[Scale = 1.0]
\setmathfont{Asana Math}
\setmathfont[range={up,`∏,`∑,`∙,`√,`∞}, script-features={}, sscript-features={}]{Georgia}
\setmathfont[range=it,script-features={}, sscript-features={}]{Georgia Italic}
\setmathfont[range=bfup,script-features={}, sscript-features={}]{Georgia Bold}
\setmathfont[range=bfit,script-features={}, sscript-features={}]{Georgia Bold Italic}
References on CTAN
CTAN stands for The Comprehensive TeX Archive Network, and it has all kinds of packages in TeX. As of the written day, there are 6542 packages, most of which can be downloaded and used immediately. This list below, in alphabetical order, contains the links of the aforementioned packages in CTAN.
- cabin: https://ctan.org/pkg/cabin?lang=en
- duckuments: https://ctan.org/pkg/duckuments?lang=en
- ebgaramond-maths: https://ctan.org/pkg/ebgaramond-maths?lang=en
- erewhon: https://ctan.org/pkg/erewhon?lang=en
- fontenc: https://ctan.org/pkg/fontenc?lang=en
- newpx: https://ctan.org/pkg/newpx?lang=en
- newtx: https://ctan.org/pkg/newtx?lang=en
- unicode-math: https://ctan.org/pkg/unicode-math?lang=en