Many people adore the Garamond font and its many variations. With that,
LaTeX has also introduced its own version, with a complimentary math-mode font,
inside the mathdesign
package.
The most common way to use it is as follows:
\documentclass[11pt]{article}
\usepackage[T1]{fontenc}
\usepackage[urw-garamond]{mathdesign}
\begin{document}
% document body here...
\end{document}
However, with some LaTeX distributions such as TeXLive, these fonts may not be included and may cause some errors during compilation.
Personally, this has caused some annoyance as there are many variations and versions of the Garamond font.
The below instructions are tested on Arch Linux (x86).
- Install TeXLive.
sudo pacman -S texlive-most
Enter your password and make sure you include the
texlive-fontsextra
package during installation. - Get the
getnonfreefonts
binary so that we may install URW Garamond, which isn’t a free font.wget https://tug.org/fonts/getnonfreefonts/install-getnonfreefonts texlua install-getnonfreefonts
- Install the fonts.
If you want all the non-free fonts included, use
getnonfreefonts -a
If you just want Garamond, use
getnonfreefonts garamond
- Once the installation is complete, you may use the code snippet above and compile.