In the moderncv casual theme, in the header, the family name has a darker color than the first name. How can I make it the other way around, and more generally, set each name to a color of my choosing?


For recent versions of moderncv you need to use


(Thank you, Gonzalo Medina!)

The following applies only for version 2008/06/17 v0.7 of moderncv

The names are typeset by the commands


which are defined in moderncv.cls as follows


You can adjust them to your liking via


If you just want to switch the colors, your call would be

  • I don't seem to be able to locate \firstnamestyle or \familynamestyle in moderncv.cls. Perhaps those were the settings in previous versions? Apr 22 '14 at 16:31
  • @GonzaloMedina Mine is 2008/06/17 v0.7 with TL 2013 on Ubuntu 14.04. Apr 22 '14 at 16:32
  • Ah, that explains it. Mine is 2013/04/29 v1.5.1 (Tex Live2013). Apr 22 '14 at 16:36
  • @GonzaloMedina In the current CTAN version the color of first and last name is buried deep inside \makecvtitle. I will try to adjust this using xpatch. Apr 22 '14 at 16:36
  • Yes, I know. In the current version you need to do \patchcmd{\makecvtitle} {\color{color2!50}\@firstname} {\color{color2}\@firstname} {} {} \patchcmd{\makecvtitle} {\color{color2}\@lastname} {\color{color2!50}\@lastname} {} {} If you want to, you can add this to your answer. Apr 22 '14 at 16:37

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.