From 521deaab0d79b12279c20b1af18bf6020ae71724 Mon Sep 17 00:00:00 2001 From: Ilya Kisil Date: Mon, 7 Jan 2019 03:30:31 +0000 Subject: [PATCH] Add medium and google scholar (#255) * Added Medium and Google Scholar * Fixed google scolar. Updated examples --- awesome-cv.cls | 33 ++++++++++++++++++++++++++++++++- examples/coverletter.tex | 4 ++++ examples/cv.tex | 4 ++++ examples/resume.tex | 4 ++++ 4 files changed, 44 insertions(+), 1 deletion(-) diff --git a/awesome-cv.cls b/awesome-cv.cls index d1c1074..e75d518 100644 --- a/awesome-cv.cls +++ b/awesome-cv.cls @@ -303,6 +303,7 @@ % Usage: \linkedin{} \newcommand*{\linkedin}[1]{\def\@linkedin{#1}} +% Defines writer's twitter (optional) % Usage: \twitter{} \newcommand*{\twitter}[1]{\def\@twitter{#1}} @@ -318,7 +319,25 @@ % Usage: \xing{} \newcommand*{\xing}[1]{\def\@xing{#1}} -% Defines writer's twitter (optional) +% Defines writer's medium profile (optional) +% Usage: \medium{} +\newcommand*{\medium}[1]{\def\@medium{#1}} + +% Defines writer's google scholar profile (optional) +% Usage: \googlescholar{}{} +% e.g.https://scholar.google.co.uk/citations?user=wpZDx1cAAAAJ +% would be \googlescholar{wpZDx1cAAAAJ}{Name-to-display-next-icon} +% If 'googlescholar-name' is not provided than it defaults to +% '\firstname \lastname' +\newcommand*{\googlescholar}[2]{% + \def\@googlescholarid{#1}% + \ifthenelse{\equal{#2}{}}{% + \def\@googlescholarname{\@firstname~\@lastname}% + }{% + \def\@googlescholarname{#2}% + }% +} + % Defines writer's extra informations (optional) % Usage: \extrainfo{} \newcommand*{\extrainfo}[1]{\def\@extrainfo{#1}} @@ -502,6 +521,18 @@ \ifbool{isstart}{\setbool{isstart}{false}}{\acvHeaderSocialSep}% \href{https://www.xing.com/profile/\@xing}{\faXingSquare\acvHeaderIconSep\@xing} }% + \ifthenelse{\isundefined{\@medium}}% + {}% + {% + \ifbool{isstart}{\setbool{isstart}{false}}{\acvHeaderSocialSep}% + \href{https://medium.com\\@\@medium}{\faMedium\acvHeaderIconSep\@medium}% + }% + \ifthenelse{\isundefined{\@googlescholarid}}% + {}% + {% + \ifbool{isstart}{\setbool{isstart}{false}}{\acvHeaderSocialSep}% + \href{https://scholar.google.com/citations?user=\@googlescholarid}{\faGraduationCap\acvHeaderIconSep\@googlescholarname}% + }% \ifthenelse{\isundefined{\@extrainfo}}% {}% {% diff --git a/examples/coverletter.tex b/examples/coverletter.tex index b6ee605..26b988d 100644 --- a/examples/coverletter.tex +++ b/examples/coverletter.tex @@ -67,6 +67,10 @@ % \twitter{@twit} % \skype{skype-id} % \reddit{reddit-id} +% \medium{madium-id} +% \googlescholar{googlescholar-id}{name-to-display} +%% \firstname and \lastname will be used +% \googlescholar{googlescholar-id}{} % \extrainfo{extra informations} \quote{``Be the change that you want to see in the world."} diff --git a/examples/cv.tex b/examples/cv.tex index 7870b60..0e0130d 100644 --- a/examples/cv.tex +++ b/examples/cv.tex @@ -67,6 +67,10 @@ % \twitter{@twit} % \skype{skype-id} % \reddit{reddit-id} +% \medium{madium-id} +% \googlescholar{googlescholar-id}{name-to-display} +%% \firstname and \lastname will be used +% \googlescholar{googlescholar-id}{} % \extrainfo{extra informations} \quote{``Be the change that you want to see in the world."} diff --git a/examples/resume.tex b/examples/resume.tex index 379a604..2580056 100644 --- a/examples/resume.tex +++ b/examples/resume.tex @@ -67,6 +67,10 @@ % \twitter{@twit} % \skype{skype-id} % \reddit{reddit-id} +% \medium{madium-id} +% \googlescholar{googlescholar-id}{name-to-display} +%% \firstname and \lastname will be used +% \googlescholar{googlescholar-id}{} % \extrainfo{extra informations} \quote{``Be the change that you want to see in the world."}