I have been using moderncv to generate some cover letters and CVs recently. Everything was working fine, until I have done a Miktex update. I keep getting the error Undefined control sequence. \makelettertitle for the following MWE (Which used to worjk without any problems!):


\usepackage[scale=0.82]{geometry} \geometry{textheight=25cm}


  % recompute lengths (in case we are switching from letter to resume, or vice versa)
  % sender contact info
    \raggedright% \raggedleft
        \ifthenelse{\equal{\@addresscity}{}}{}{\makenewline\@addresscity}% if \addresstreet is defined, \addresscity and addresscountry will always be defined but could be empty
      \collectionloop{phones}{% the key holds the phone type (=symbol command prefix), the item holds the number
        \makenewline\csname\collectionloopkey phonesymbol\endcsname\collectionloopitem}%
  % recipient block
  \end{minipage} \\[2em]
  % date
  %\hfill% US style
%  \\[1em]% UK style
  %\@date\\[2em]% US informal style: "January 1, 1900"; UK formal style: "01/01/1900"
  % opening
  % ensure no extra spacing after \makelettertitle due to a possible blank line
%  \ignorespacesafterend% not working



\firstname{XXXXXX} % Your first name
\email{[email protected]}
\date{\today} % Letter date
\opening{blablabla,} % Opening greeting
\closing{blablabla} % Closing phrase
\enclosure[Im Anhang]{CV} % List of enclosed documents

\makelettertitle % Print letter title
\makeletterclosing % Print letter signature


\makecvtitle % Print the CV title

\section{EDV- Kenntnisse}

\cvitem{Tool}{C, C++, VHDL}
\cvitem{Betriebssystem}{Unix, Windows}
\cvitem{Simulations-Tools}{Tool, Tool, Tool II, Tool}



Any help is appreciated.

Update: Following the log file, the errors are the following:

  • Undefined control sequence. \setlength{\makecvtitlenamewidth}{12cm}
  • Missing number, treated as zero. \renewcommand
  • Illegal unit of measure (pt inserted). \renewcommand

Which are respectively originating from the two commands:

  • Try to change \renewcommand to \newcommand.
    – Sigur
    Commented Aug 30, 2015 at 20:09
  • Check if you have a local copy of moderncv or some of its components in your working folder.
    – Werner
    Commented Aug 30, 2015 at 20:29
  • @Werner. I just removed all local copies, but Still the problem is persisting Commented Aug 30, 2015 at 20:44
  • @Sigur, I just found out the problem is coming from the line '\setlength{\makecvtitlenamewidth}{12cm}' but i still can't solve it Commented Aug 30, 2015 at 20:45
  • 2
    The length is not defined. \newlength{\makecvtitlenamewidth}
    – Johannes_B
    Commented Aug 31, 2015 at 5:53

1 Answer 1


\makecvtitlenamewidth existed as part of moderncv 1.5.0, but was removed from moderncv 1.5.1 - the current latest version.

The current replacement seems to be \makecvheadnamewidth, which a default of 0pt (used in conditioning for an automatically set width).

The class has undergone numerous changes which makes older versions of documents incompatible with current versions. If you wish to keep the older formats, you need to maintain a temporary version of the class. Otherwise, you'll have to update your documents accordingly.

You must log in to answer this question.

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