3

When I recompile my CV that I last changed in August 2017 I suddenly get a different font.

Old font: Old font

New font: New font

How do I get the old font back?

Here's the preamble of my CV:

\documentclass[10pt,a4paper,roman]{moderncv}
\moderncvstyle{banking}
\moderncvcolor{blue}
\nopagenumbers{}
\usepackage[utf8]{inputenc}
\usepackage[scale=0.75]{geometry}

EDIT 1:

EDIT 2:

Here's a compilable example extracted from my cv:

\documentclass[10pt,a4paper,roman]{moderncv}
\moderncvstyle{banking}
\moderncvcolor{blue}
\nopagenumbers{}
\usepackage[utf8]{inputenc}
\usepackage[scale=0.75]{geometry}

\firstname{Simon}
\familyname{Jakobi}

\begin{document}
\begin{minipage}[t][0pt]{\linewidth}
\makecvtitle
\section{Studium}
\end{minipage}
\end{document}
10
  • 1
    How do you compile? Maybe you have compiled with pdfLaTeX the last time and now used a different engine? But without a minimal compilable example, it is hard to help you here. (Btw: Do you have the log file of both runs?)
    – TeXnician
    Aug 17, 2018 at 13:02
  • 1
    Surely you can just take your CV, remove all personal information and add a few bogus definitions to show the fonts.
    – moewe
    Aug 17, 2018 at 13:18
  • 1
    The old CV loaded tgpagella (TeX Gyre Pagella), the new one doesn't.
    – moewe
    Aug 17, 2018 at 13:23
  • 3
    @sjakobi The banking style automatically uses tgpagella, iff it is installed. You had the font installed in your old TeX installation but not in the current one. Just install the tex-gyre package using your package manager. Aug 17, 2018 at 13:26
  • 2
    @MarcelKrüger I would like to ask you to write up a short answer instead of closing. The behaviour of the class is unusual enough that this could confuse more people. I personally think \IfFileExsits for package loading is not a great idea and will file a feature request to drop it.
    – moewe
    Aug 17, 2018 at 13:34

1 Answer 1

8

The "old font" is the standard font of the banking style in moderncv, TeX Gyre Pagella. You do not have to write anything in your tex file to activate it, but it has to be installed.

Sadly moderncv uses a trick to avoid issuing an error message if the font is not found, so the only indication that the font is missing is the automatic fallback to the "new font" (This is the TeX standard font Computer Modern).

To install "TeX Gyre Pagella" depends on your system. According to your log file you use Debian or Ubuntu, so you have to install the package named tex-gyre.

Open a shell window and run

sudo apt-get install tex-gyre

then follow the instructions from apt-get. Afterwards compiling your document gives the right font again.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.