LaTeX forum ⇒ Curricula Vitae / RésumésAdjusted head of moderncv package

ModernCV, Friggeri, Plasmati, Classicthesis-CV, and more
ponjio
Posts: 1
Joined: Sat Mar 09, 2019 9:55 pm

Adjusted head of moderncv package

Postby ponjio » Sat Mar 09, 2019 10:31 pm

Hello guys,

I have been working on my own header for quite some time for my curriculum vitae with modencv.
Therefore I edited the command \makecvhead. I used the commands directly from moderncvheadii.sty. Nevertheless I get the following error message: "! Undefined control sequence. <argument> \makecvheadpicturebox".

I would also like to insert a footer again, but I can't do that with \makecvfooter.

Here is a (hopefully) minimal working example

\documentclass[11pt,a4paper,sans]{moderncv}

\moderncvstyle{casual}
\moderncvcolor{blue}
\nopagenumbers{}

\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}

\usepackage{geometry}
\geometry{left=2cm, right=2cm, bottom=1.8cm, top=2cm}
\setlength{\hintscolumnwidth}{3.3cm}

%new header
\makeatletter

% commands
\renewcommand{\makecvhead}{%
\recomputecvlengths%
%\makecvfooter


% name
\@initializelength{\makecvheadpicturewidth}%
\settowidth{\makecvheadpicturewidth}{\usebox{\makecvheadpicturebox}}%
\parbox[b]{\textwidth-\makecvheadpicturewidth}{%
\raggedleft%
{\raggedleft}
{\namefont{\color{firstnamecolor}\@firstname} {\color{familynamecolor}\@lastname}}
}
{\color{footersymbolcolor}\rule{\textwidth}{1pt}}%
}

\makeatother


\firstname{Curriculum}
\familyname{Vitae}
\address{Maxstraße 15}{08155 Musterstadt}{}
\phone[mobile]{+1\,347/\,567\,33\,123}
\email{mustermann.max@alles.tox} %


%----------------------------------------------------------------------------------
% content
%----------------------------------------------------------------------------------
\begin{document}
\makecvhead

\section{Personal information}
\cvitem{born}{01.01.2001}
\cvitem{nationality}{Burundi}
\cvitem{driving license}{Klasse X}

\end{document}

Return to “Curricula Vitae / Résumés”

Who is online

Users browsing this forum: No registered users and 6 guests