I would like that my given name (first name) in the CV appears aligned to the left, I am using \firstname{Juan Pablo}
\familyname{Romero Garza}
\documentclass[11pt,letterpaper,sans]{moderncv}
\moderncvstyle{classic}
\moderncvcolor{black}
\usepackage[utf8]{inputenc}
\usepackage[scale=0.75]{geometry}
\setlength{\makecvtitlenamewidth}{8cm}
% personal data
\firstname{Juan Pablo}}
\familyname{Romero Garza}
\title{Curriculum Vitae}
\address{Steer number}{City zipcode}{Country}
\phone[mobile]{+1~(811)~408~6080}
\email{email}
\extrainfo{*Possibility of moving to another city}
\photo[74pt][0.4pt]{picture.png}
\begin{document}
\makecvtitle
\end{document}
Best Answer
It seems that you are using an older version of
moderncv
. You used the command\makecvtitlenamewidth
that has been renamed with version 2.0.0 ofmoderncv
to\makecvheadnamewidth
. I changed it in the following MWE.Because there is a little bug (and therefore an updating to the current version 2.0.0 can not help) in class
moderncv
I used an patch to get a better distance between first and last name line (change[1ex]
to your needs):I hope with a new version of
moderncv
this workaround is no more neccessary.With the following complete MWE
you will get the wanted result:
The advantage of patching (instead of writing
\familyname{\\[1ex]Romero Garza}
) is that the resulting pdf has no errors in the bookmarks of the pdf.