0

The moderncv (classic) consists of various sections like address, phone, email .. in header which are italic! How do I change them to normal font?

enter image description here

So, I want to change the above italic data into normal font

The template can be found here: http://www.latextemplates.com/template/moderncv-cv-and-cover-letter

3
  • Welcome to SE.TeX. Please expand your question by adding a MWE.
    – ppr
    Commented Dec 16, 2013 at 16:34
  • The use of a MWE is to give LaTeX code that someone could copy/paste and modify to answer to your question. So image is nice but LaTeX code is more important (having both is perfect). Without your code I can't modify it in order to delete the italic.
    – ppr
    Commented Dec 16, 2013 at 16:44
  • @ppr I have given the template link above thanks
    – iamlol
    Commented Dec 16, 2013 at 16:51

1 Answer 1

5

If you look at the definition of the classic style, contained in moderncvstyleclassic.sty you will find all the macros that control the appearance of the elements of the document. For fonts you'll find:

\renewcommand*{\namefont}{\fontsize{34}{36}\mdseries\upshape}
\renewcommand*{\titlefont}{\LARGE\mdseries\slshape}
\renewcommand*{\addressfont}{\small\mdseries\slshape}
\renewcommand*{\quotefont}{\large\slshape}
\renewcommand*{\sectionfont}{\Large\mdseries\upshape}
\renewcommand*{\subsectionfont}{\large\mdseries\upshape}
\renewcommand*{\hintfont}{}

The one you are trying to alter is \addressfont so putting

\renewcommand*{\addressfont}{\small\mdseries}

in your preamble should do what you want.

4
  • Well that's just the address.. How about \phone, \email, \homepage ?
    – iamlol
    Commented Dec 16, 2013 at 17:01
  • If you look into the definition of \makecvtitle you'll see that \addressfont is the font which is installed for the whole block of text containing your personal info in the title. Have you tried the solution on your document?
    – Bordaigorl
    Commented Dec 16, 2013 at 17:03
  • I actually overwritten some elements with \normalfont after removing its working.. thanks
    – iamlol
    Commented Dec 16, 2013 at 17:06
  • @iamlol if you are happy with the solution please consider accepting it as an answer
    – Bordaigorl
    Commented Dec 16, 2013 at 17:08

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .