mirror of
https://github.com/posquit0/Awesome-CV.git
synced 2024-11-22 14:08:36 +00:00
Provide a way to override the photo ID size using the command \photosize.
This commit is contained in:
parent
c9a7485e3b
commit
3e3a4222a8
1 changed files with 9 additions and 3 deletions
|
@ -254,6 +254,10 @@
|
||||||
\def\@photoedge{edge}
|
\def\@photoedge{edge}
|
||||||
\def\@photoalign{left}
|
\def\@photoalign{left}
|
||||||
|
|
||||||
|
% Overrides the size of the photo ID if needed.
|
||||||
|
% Usage: \photosizerectangle{<new height/width/diameter>}
|
||||||
|
\newcommand*{\photosize}[1]{\def\@photosize{#1}}
|
||||||
|
|
||||||
% Define writer's name
|
% Define writer's name
|
||||||
% Usage: \name{<firstname>}{<lastname>}
|
% Usage: \name{<firstname>}{<lastname>}
|
||||||
% Usage: \firstname{<firstname>}
|
% Usage: \firstname{<firstname>}
|
||||||
|
@ -404,9 +408,11 @@
|
||||||
\newcommand*{\drawphoto}{%
|
\newcommand*{\drawphoto}{%
|
||||||
\ifthenelse{\isundefined{\@photo}}{}{%
|
\ifthenelse{\isundefined{\@photo}}{}{%
|
||||||
\newlength{\photodim}
|
\newlength{\photodim}
|
||||||
\ifthenelse{\equal{\@photoshape}{circle}}%
|
\ifthenelse{\isundefined{\@photosize}}%
|
||||||
{\setlength{\photodim}{1.3cm}}%
|
{\ifthenelse{\equal{\@photoshape}{circle}}%
|
||||||
{\setlength{\photodim}{1.8cm}}%
|
{\setlength{\photodim}{1.3cm}}%
|
||||||
|
{\setlength{\photodim}{1.8cm}}}
|
||||||
|
{\setlength{\photodim}{\@photosize}}%
|
||||||
\ifthenelse{\equal{\@photoedge}{edge}}%
|
\ifthenelse{\equal{\@photoedge}{edge}}%
|
||||||
{\def\@photoborder{darkgray}}%
|
{\def\@photoborder{darkgray}}%
|
||||||
{\def\@photoborder{none}}%
|
{\def\@photoborder{none}}%
|
||||||
|
|
Loading…
Reference in a new issue