28

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.

2
  • 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, 2011 at 7: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). Oct 14, 2011 at 16:29

2 Answers 2

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}
1
  • Yes! It worked perfectly. Thank you very much! Oct 14, 2011 at 23:08
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

1
  • Your solution also worked correctly. And thank you for the demonstration of the result. Oct 14, 2011 at 23:09

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.