30

Using moderncv, is it possible to change the font? I tried to load the Palatino font with:

\usepackage{mathpazo}

with no avail.

I'm using Tex Live 2011, and I compile the tex file with pdflatex.

doncherry
  • 54,637
  • It should be possible to use a different font with moderncv. What happens? Do you get an error message? Does it fail to compile? Does it compile, but use computer modern? Without more information, we can't help. – Seamus Oct 14 '11 at 07:53
  • Sorry if I wasn't too much clear. Everything goes just as if the mathpazo package isn't loaded at all (no errors, good pdf generated, but with the same default fonts used by moderncv). – Nicolás Ozimica Oct 14 '11 at 16:29

2 Answers2

30

Pass the roman option to moderncv:

\documentclass[roman]{moderncv}
\usepackage{mathpazo}

In this way only the titles will be in a sans serif font. If you want everything in Palatino,

\documentclass{moderncv}
\usepackage{mathpazo}
\renewcommand{\sfdefault}{\rmdefault}
egreg
  • 1,121,712
11

moderncv uses a sans serif font for the entire document. As far as I can tell, there is no sans serif font in mathpazo, so you probably want to use the normal Palatino font in that package. To do that, you need to load the package change the sans serif font. Add

\usepackage{mathpazo}
\renewcommand{\sfdefault}{ppl}

at the end of your preamble.

moderncv in Palatino

doncherry
  • 54,637