mirror of
https://github.com/posquit0/Awesome-CV.git
synced 2024-11-22 05:58:33 +00:00
allow multiple \makecvheader in documents
This commit is contained in:
parent
725fe4e3ef
commit
7aef19de22
1 changed files with 5 additions and 4 deletions
|
@ -401,6 +401,7 @@
|
||||||
% Define a header for CV
|
% Define a header for CV
|
||||||
% Usage: \makecvheader
|
% Usage: \makecvheader
|
||||||
\newcommand*{\makecvheader}[1][C]{%
|
\newcommand*{\makecvheader}[1][C]{%
|
||||||
|
\ifthenelse{\isundefined{\drawphoto}}{
|
||||||
\newcommand*{\drawphoto}{%
|
\newcommand*{\drawphoto}{%
|
||||||
\ifthenelse{\isundefined{\@photo}}{}{%
|
\ifthenelse{\isundefined{\@photo}}{}{%
|
||||||
\newlength{\photodim}
|
\newlength{\photodim}
|
||||||
|
@ -414,9 +415,9 @@
|
||||||
\node[\@photoshape, draw=\@photoborder, line width=0.3mm, inner sep=\photodim, fill overzoom image=\@photo] () {};
|
\node[\@photoshape, draw=\@photoborder, line width=0.3mm, inner sep=\photodim, fill overzoom image=\@photo] () {};
|
||||||
\end{tikzpicture}
|
\end{tikzpicture}
|
||||||
}%
|
}%
|
||||||
}
|
}}{}
|
||||||
\newlength{\headertextwidth}
|
\ifthenelse{\isundefined{\headertextwidth}}{\newlength{\headertextwidth}}{}
|
||||||
\newlength{\headerphotowidth}
|
\ifthenelse{\isundefined{\headerphotowidth}}{\newlength{\headerphotowidth}}{}
|
||||||
\ifthenelse{\isundefined{\@photo}}{
|
\ifthenelse{\isundefined{\@photo}}{
|
||||||
\setlength{\headertextwidth}{\textwidth}
|
\setlength{\headertextwidth}{\textwidth}
|
||||||
\setlength{\headerphotowidth}{0cm}
|
\setlength{\headerphotowidth}{0cm}
|
||||||
|
|
Loading…
Reference in a new issue