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

  • Welcome to SE.TeX. Please expand your question by adding a MWE. – ppr Dec 16 '13 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 Dec 16 '13 at 16:44
  • @ppr I have given the template link above thanks – iamlol Dec 16 '13 at 16:51
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.

| improve this answer | |
  • Well that's just the address.. How about \phone, \email, \homepage ? – iamlol Dec 16 '13 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 Dec 16 '13 at 17:03
  • I actually overwritten some elements with \normalfont after removing its working.. thanks – iamlol Dec 16 '13 at 17:06
  • @iamlol if you are happy with the solution please consider accepting it as an answer – Bordaigorl Dec 16 '13 at 17:08

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.