\makecvfooter undefined

Asked by Daniele

With the previous version, I redefine the makecvfooter in order to add an extraline on the footer. Now i receive the error:
error \makecvfooter undefined. \renewcommand*{\makecvfooter} . Thanks !

Question information

Language:
English Edit question
Status:
Answered
For:
moderncv Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Nick Trick (tricknick0711) said :
#1

Hi Daniele,

the name of the command changed to "\makecvfoot" (moderncv-1.5.1).
moderncvfooti.sty:

% commands
\renewcommand*{\makecvfoot}{%
  \recomputecvfootlengths{}%
  \fancypagestyle{plain}{%
    \fancyfoot[c]{%
      \parbox[b]{\footwidth}{%
        \centering%
        \color{color2}\addressfont%
        \vspace{\baselineskip}% forces a white line to ensure space between main text and footer (as footer height can't be known in advance)
        \ifthenelse{\isundefined{\@addressstreet}}{}{\addtofoot[]{\addresssymbol\@addressstreet}%
          \ifthenelse{\equal{\@addresscity}{}}{}{\addtofoot[~--~]{\@addresscity}}% if \addresstreet is defined, \addresscity and \addresscountry will always be defined but could be empty
          \ifthenelse{\equal{\@addresscountry}{}}{}{\addtofoot[~--~]{\@addresscountry}}%
          \flushfoot\@firstfootelementtrue\\}%
        \collectionloop{phones}{% the key holds the phone type (=symbol command prefix), the item holds the number
          \addtofoot{\csname\collectionloopkey phonesymbol\endcsname\collectionloopitem}}%
        \ifthenelse{\isundefined{\@email}}{}{\addtofoot{\emailsymbol\emaillink{\@email}}}%
        \ifthenelse{\isundefined{\@homepage}}{}{\addtofoot{\homepagesymbol\httplink{\@homepage}}}%
        \collectionloop{socials}{% the key holds the social type (=symbol command prefix), the item holds the link
          \addtofoot{\csname\collectionloopkey socialsymbol\endcsname\collectionloopitem}}%
        \ifthenelse{\isundefined{\@extrainfo}}{}{\addtofoot{\@extrainfo}}%
        \ifthenelse{\lengthtest{\footboxwidth=0pt}}{}{\flushfoot}% the lengthtest is required to avoid flushing an empty footer, which could cause a blank line due to the \\ after the address, if no other personal info is used
        }}}%
  \pagestyle{plain}}

Revision history for this message
Daniele (df-santamaria87) said :
#2

Yes, but after this correction I get the error "Undefined control sequence /vspace" on:

\maketitle
\vspace{-0.8cm}
\section{\textbf{Personal Information} \label{persinf}}
\begin{wrapfigure}{r}{0.20\textwidth}
                 \vspace{-1.3cm}
                 \begin{center}\includegraphics[scale=0.65]{photo.jpg} \end{center}
\end{wrapfigure}

Can you help with this problem?

Provide an answer of your own, or ask Daniele for more information if necessary.

To post a message you must log in.