allow multiple \makecvheader in documents

This commit is contained in:
h4llow3En 2017-05-30 12:24:15 +02:00
parent 725fe4e3ef
commit 7aef19de22
No known key found for this signature in database
GPG key ID: 11CBC81A6CB1C530

View file

@ -401,6 +401,7 @@
% Define a header for CV
% Usage: \makecvheader
\newcommand*{\makecvheader}[1][C]{%
\ifthenelse{\isundefined{\drawphoto}}{
\newcommand*{\drawphoto}{%
\ifthenelse{\isundefined{\@photo}}{}{%
\newlength{\photodim}
@ -414,9 +415,9 @@
\node[\@photoshape, draw=\@photoborder, line width=0.3mm, inner sep=\photodim, fill overzoom image=\@photo] () {};
\end{tikzpicture}
}%
}
\newlength{\headertextwidth}
\newlength{\headerphotowidth}
}}{}
\ifthenelse{\isundefined{\headertextwidth}}{\newlength{\headertextwidth}}{}
\ifthenelse{\isundefined{\headerphotowidth}}{\newlength{\headerphotowidth}}{}
\ifthenelse{\isundefined{\@photo}}{
\setlength{\headertextwidth}{\textwidth}
\setlength{\headerphotowidth}{0cm}