From 3e3a4222a85d366c3814e13be3db47ab014608d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A4mes=20M=C3=A9n=C3=A9trey?= Date: Sun, 18 Mar 2018 23:44:31 +0100 Subject: [PATCH 1/2] Provide a way to override the photo ID size using the command \photosize. --- awesome-cv.cls | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/awesome-cv.cls b/awesome-cv.cls index d1c1074..62a6a47 100644 --- a/awesome-cv.cls +++ b/awesome-cv.cls @@ -254,6 +254,10 @@ \def\@photoedge{edge} \def\@photoalign{left} +% Overrides the size of the photo ID if needed. +% Usage: \photosizerectangle{} +\newcommand*{\photosize}[1]{\def\@photosize{#1}} + % Define writer's name % Usage: \name{}{} % Usage: \firstname{} @@ -404,9 +408,11 @@ \newcommand*{\drawphoto}{% \ifthenelse{\isundefined{\@photo}}{}{% \newlength{\photodim} - \ifthenelse{\equal{\@photoshape}{circle}}% - {\setlength{\photodim}{1.3cm}}% - {\setlength{\photodim}{1.8cm}}% + \ifthenelse{\isundefined{\@photosize}}% + {\ifthenelse{\equal{\@photoshape}{circle}}% + {\setlength{\photodim}{1.3cm}}% + {\setlength{\photodim}{1.8cm}}} + {\setlength{\photodim}{\@photosize}}% \ifthenelse{\equal{\@photoedge}{edge}}% {\def\@photoborder{darkgray}}% {\def\@photoborder{none}}% From 9f832151d279d4a4c45acf10779b8d51886a4123 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A4mes=20M=C3=A9n=C3=A9trey?= Date: Sun, 18 Mar 2018 23:51:31 +0100 Subject: [PATCH 2/2] Update the comment for the command \photosize with the correct name of the command. --- awesome-cv.cls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awesome-cv.cls b/awesome-cv.cls index 62a6a47..6120d45 100644 --- a/awesome-cv.cls +++ b/awesome-cv.cls @@ -255,7 +255,7 @@ \def\@photoalign{left} % Overrides the size of the photo ID if needed. -% Usage: \photosizerectangle{} +% Usage: \photosize{} \newcommand*{\photosize}[1]{\def\@photosize{#1}} % Define writer's name