Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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.

share|improve this question
    
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 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). –  Nicolás Oct 14 '11 at 16:29
add comment

2 Answers

up vote 14 down vote accepted

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}
share|improve this answer
    
Yes! It worked perfectly. Thank you very much! –  Nicolás Oct 14 '11 at 23:08
add comment

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

share|improve this answer
    
Your solution also worked correctly. And thank you for the demonstration of the result. –  Nicolás Oct 14 '11 at 23:09
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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