Add orcid, resercherid, and researchgate as social icons (#15)

Co-authored-by: Patrick Diehl <me@diehlpk.de>
This commit is contained in:
Stephan Lachnit 2020-09-27 23:55:48 +02:00 committed by GitHub
commit 7db2dd2315
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 69 additions and 49 deletions

View file

@ -32,13 +32,16 @@
\phone[fax]{+3~(456)~789~012} \phone[fax]{+3~(456)~789~012}
\email{john@doe.org} % optional, remove / comment the line if not wanted \email{john@doe.org} % optional, remove / comment the line if not wanted
\homepage{www.johndoe.com} % optional, remove / comment the line if not wanted \homepage{www.johndoe.com} % optional, remove / comment the line if not wanted
\social[stackoverflow]{0000000/johndoe} % optional, remove / comment the line if not wanted
\social[linkedin]{john.doe} % optional, remove / comment the line if not wanted \social[linkedin]{john.doe} % optional, remove / comment the line if not wanted
\social[xing]{john\_doe} % optional, remove / comment the line if not wanted \social[xing]{john\_doe} % optional, remove / comment the line if not wanted
\social[twitter]{jdoe} % optional, remove / comment the line if not wanted \social[twitter]{jdoe} % optional, remove / comment the line if not wanted
\social[github]{jdoe} % optional, remove / comment the line if not wanted \social[github]{jdoe} % optional, remove / comment the line if not wanted
\social[gitlab]{jdoe} % optional, remove / comment the line if not wanted \social[gitlab]{jdoe} % optional, remove / comment the line if not wanted
\social[stackoverflow]{0000000/johndoe} % optional, remove / comment the line if not wanted
\social[skype]{jdoe} % optional, remove / comment the line if not wanted \social[skype]{jdoe} % optional, remove / comment the line if not wanted
\social[orcid]{0000-0000-000-000} % optional, remove / comment the line if not wanted
\social[researchgate]{jdoe} % optional, remove / comment the line if not wanted
\social[researcherid]{jdoe} % optional, remove / comment the line if not wanted
\extrainfo{additional information} % optional, remove / comment the line if not wanted \extrainfo{additional information} % optional, remove / comment the line if not wanted
\photo[64pt][0.4pt]{picture} % optional, remove / comment the line if not wanted; '64pt' is the height the picture must be resized to, 0.4pt is the thickness of the frame around it (put it to 0pt for no frame) and 'picture' is the name of the picture file \photo[64pt][0.4pt]{picture} % optional, remove / comment the line if not wanted; '64pt' is the height the picture must be resized to, 0.4pt is the thickness of the frame around it (put it to 0pt for no frame) and 'picture' is the name of the picture file
\quote{Some quote} % optional, remove / comment the line if not wanted \quote{Some quote} % optional, remove / comment the line if not wanted

View file

@ -266,13 +266,16 @@
\NewDocumentCommand{\social}{O{}O{}m}{% \NewDocumentCommand{\social}{O{}O{}m}{%
\ifthenelse{\equal{#2}{}}% \ifthenelse{\equal{#2}{}}%
{% {%
\ifthenelse{\equal{#1}{linkedin}}{\collectionadd[linkedin]{socials}{\protect\httpslink[#3]{www.linkedin.com/in/#3}}} {}% \ifthenelse{\equal{#1}{linkedin}} {\collectionadd[linkedin]{socials} {\protect\httpslink[#3]{www.linkedin.com/in/#3}}} {}%
\ifthenelse{\equal{#1}{xing}} {\collectionadd[xing]{socials} {\protect\httpslink[#3]{www.xing.com/profile/#3}}}{}% \ifthenelse{\equal{#1}{xing}} {\collectionadd[xing]{socials} {\protect\httpslink[#3]{www.xing.com/profile/#3}}} {}%
\ifthenelse{\equal{#1}{twitter}} {\collectionadd[twitter]{socials} {\protect\httpslink[#3]{www.twitter.com/#3}}} {}% \ifthenelse{\equal{#1}{twitter}} {\collectionadd[twitter]{socials} {\protect\httpslink[#3]{www.twitter.com/#3}}} {}%
\ifthenelse{\equal{#1}{github}} {\collectionadd[github]{socials} {\protect\httpslink[#3]{www.github.com/#3}}} {}% \ifthenelse{\equal{#1}{github}} {\collectionadd[github]{socials} {\protect\httpslink[#3]{www.github.com/#3}}} {}%
\ifthenelse{\equal{#1}{gitlab}} {\collectionadd[gitlab]{socials} {\protect\httpslink[#3]{www.gitlab.com/#3}}} {}% \ifthenelse{\equal{#1}{gitlab}} {\collectionadd[gitlab]{socials} {\protect\httpslink[#3]{www.gitlab.com/#3}}} {}%
\ifthenelse{\equal{#1}{stackoverflow}} {\collectionadd[stackoverflow]{socials} {\protect\httpslink[\SplitMyMacro#3]{stackoverflow.com/users/#3}}} {}% \ifthenelse{\equal{#1}{stackoverflow}}{\collectionadd[stackoverflow]{socials}{\protect\httpslink[#3]{stackoverflow.com/users/#3}}} {}%
\ifthenelse{\equal{#1}{skype}} {\collectionadd[skype]{socials} {#3}} {}% \ifthenelse{\equal{#1}{skype}} {\collectionadd[skype]{socials} {#3}} {}%
\ifthenelse{\equal{#1}{orcid}} {\collectionadd[orcid]{socials} {\protect\httpslink[#3]{orcid.org/#3}}} {}%
\ifthenelse{\equal{#1}{researchgate}} {\collectionadd[researchgate]{socials} {\protect\httpslink[#3]{www.researchgate.net/profile/#3}}}{}%
\ifthenelse{\equal{#1}{researcherid}} {\collectionadd[researcherid]{socials} {\protect\httpslink[#3]{www.researcherid.com/rid/#3}}} {}%
} }
{\collectionadd[#1]{socials}{\protect\httpslink[#3]{#2}}}} {\collectionadd[#1]{socials}{\protect\httpslink[#3]{#2}}}}
@ -302,21 +305,24 @@
\renewcommand{\theenumiv} {\@Alph\c@enumiv} \renewcommand{\theenumiv} {\@Alph\c@enumiv}
% other symbols % other symbols
\newcommand*{\listitemsymbol} {\labelitemi~} \newcommand*{\listitemsymbol} {\labelitemi~}
\newcommand*{\addresssymbol} {} \newcommand*{\addresssymbol} {}
\newcommand*{\mobilephonesymbol} {} \newcommand*{\mobilephonesymbol} {}
\newcommand*{\fixedphonesymbol} {} \newcommand*{\fixedphonesymbol} {}
\newcommand*{\faxphonesymbol} {} \newcommand*{\faxphonesymbol} {}
\newcommand*{\emailsymbol} {} \newcommand*{\emailsymbol} {}
\newcommand*{\homepagesymbol} {} \newcommand*{\homepagesymbol} {}
\newcommand*{\linkedinsocialsymbol}{} \newcommand*{\linkedinsocialsymbol} {}
\newcommand*{\xingsocialsymbol} {} \newcommand*{\xingsocialsymbol} {}
\newcommand*{\twittersocialsymbol} {} \newcommand*{\twittersocialsymbol} {}
\newcommand*{\githubsocialsymbol} {} \newcommand*{\githubsocialsymbol} {}
\newcommand*{\gitlabsocialsymbol} {} \newcommand*{\gitlabsocialsymbol} {}
\newcommand*{\skypesocialsymbol} {} \newcommand*{\stackoverflowsocialsymbol}{}
\newcommand*{\stackoverflowsocialsymbol} {} \newcommand*{\skypesocialsymbol} {}
\newcommand*{\orcidsocialsymbol} {}
\newcommand*{\researchgatesocialsymbol} {}
\newcommand*{\researchidsocialsymbol} {}
\newcommand*{\googlescholarsocialsymbol}{}
% other % other
%------ %------
% fonts % fonts

View file

@ -17,6 +17,8 @@
%------------------------------------------------------------------------------- %-------------------------------------------------------------------------------
% Font Awesome font % Font Awesome font
\RequirePackage{fontawesome} \RequirePackage{fontawesome}
% Package for academic icons
\RequirePackage{academicons}
%------------------------------------------------------------------------------- %-------------------------------------------------------------------------------
@ -27,19 +29,22 @@
%\renewcommand*{\labelitemiii} {\strut\textcolor{color1}{\rmfamily\textperiodcentered}}% no change from default in moderncv.cls %\renewcommand*{\labelitemiii} {\strut\textcolor{color1}{\rmfamily\textperiodcentered}}% no change from default in moderncv.cls
%\renewcommand*{\labelitemiv} {\labelitemiii} % no change from default in moderncv.cls %\renewcommand*{\labelitemiv} {\labelitemiii} % no change from default in moderncv.cls
\renewcommand*{\addresssymbol} {} \renewcommand*{\addresssymbol} {}
\renewcommand*{\mobilephonesymbol} {{\Large\faMobilePhone}~} \renewcommand*{\mobilephonesymbol} {{\Large\faMobilePhone}~}
\renewcommand*{\fixedphonesymbol} {\faPhone~} \renewcommand*{\fixedphonesymbol} {\faPhone~}
\renewcommand*{\faxphonesymbol} {{\small\faFax}~} % alternative: \faPrint \renewcommand*{\faxphonesymbol} {{\small\faFax}~} % alternative: \faPrint
\renewcommand*{\emailsymbol} {{\small\faEnvelopeO}~} % alternative: \faInbox \renewcommand*{\emailsymbol} {{\small\faEnvelopeO}~} % alternative: \faInbox
\renewcommand*{\homepagesymbol} {{\small\faGlobe}~} % alternative: \faHome \renewcommand*{\homepagesymbol} {{\small\faGlobe}~} % alternative: \faHome
\renewcommand*{\linkedinsocialsymbol}{{\small\faLinkedin}~} % alternative: \faLinkedinSquare \renewcommand*{\linkedinsocialsymbol} {{\small\faLinkedin}~} % alternative: \faLinkedinSquare
\renewcommand*{\xingsocialsymbol} {{\small\faXing}~} % alternative: \faXingSquare \renewcommand*{\xingsocialsymbol} {{\small\faXing}~} % alternative: \faXingSquare
\renewcommand*{\twittersocialsymbol} {{\small\faTwitter}~} % alternative: \faTwitterSquare \renewcommand*{\twittersocialsymbol} {{\small\faTwitter}~} % alternative: \faTwitterSquare
\renewcommand*{\githubsocialsymbol} {{\small\faGithub}~} % alternative: \faGithubSquare, \faGithubSquare \renewcommand*{\githubsocialsymbol} {{\small\faGithub}~} % alternative: \faGithubSquare, \faGithubSquare
\renewcommand*{\gitlabsocialsymbol} {{\small\faGitlab}~} \renewcommand*{\gitlabsocialsymbol} {{\small\faGitlab}~}
\renewcommand*{\skypesocialsymbol} {{\small\faSkype}~} \renewcommand*{\stackoverflowsocialsymbol}{{\small\faStackOverflow}~}
\renewcommand*{\stackoverflowsocialsymbol} {{\small\faStackOverflow}~} \renewcommand*{\skypesocialsymbol} {{\small\faSkype}~}
\renewcommand*{\orcidsocialsymbol} {{\small\aiOrcid}~}
\renewcommand*{\researchgatesocialsymbol} {{\small\aiResearchGate}~}
\renewcommand*{\researchidsocialsymbol} {{\small\aiResearchID}~}
\endinput \endinput

View file

@ -34,19 +34,22 @@
%\renewcommand*{\labelitemiii} {\strut\textcolor{color1}{\rmfamily\textperiodcentered}}% no change from default in moderncv.cls %\renewcommand*{\labelitemiii} {\strut\textcolor{color1}{\rmfamily\textperiodcentered}}% no change from default in moderncv.cls
%\renewcommand*{\labelitemiv} {\labelitemiii} % no change from default in moderncv.cls %\renewcommand*{\labelitemiv} {\labelitemiii} % no change from default in moderncv.cls
\renewcommand*{\addresssymbol} {} \renewcommand*{\addresssymbol} {}
\renewcommand*{\mobilephonesymbol} {\textbf{M}~} \renewcommand*{\mobilephonesymbol} {\textbf{M}~}
\renewcommand*{\fixedphonesymbol} {\textbf{T}~} \renewcommand*{\fixedphonesymbol} {\textbf{T}~}
\renewcommand*{\faxphonesymbol} {\textbf{F}~} \renewcommand*{\faxphonesymbol} {\textbf{F}~}
\renewcommand*{\emailsymbol} {\textbf{E}~} \renewcommand*{\emailsymbol} {\textbf{E}~}
\renewcommand*{\homepagesymbol} {\textbf{W}~} \renewcommand*{\homepagesymbol} {\textbf{W}~}
\renewcommand*{\linkedinsocialsymbol}{\textbf{in}~} \renewcommand*{\linkedinsocialsymbol} {\textbf{in}~}
\renewcommand*{\xingsocialsymbol} {\textbf{xi}~} \renewcommand*{\xingsocialsymbol} {\textbf{xi}~}
\renewcommand*{\twittersocialsymbol} {\textbf{tw}~} \renewcommand*{\twittersocialsymbol} {\textbf{tw}~}
\renewcommand*{\githubsocialsymbol} {\textbf{gh}~} \renewcommand*{\githubsocialsymbol} {\textbf{gh}~}
\renewcommand*{\gitlabsocialsymbol} {\textbf{gl}~} \renewcommand*{\gitlabsocialsymbol} {\textbf{gl}~}
\renewcommand*{\skypesocialsymbol} {\textbf{sk}~} \renewcommand*{\stackoverflowsocialsymbol}{\textbf{so}~}
\renewcommand*{\stackoverflowsymbol} {\textbf{so}~} \renewcommand*{\skypesocialsymbol} {\textbf{sk}~}
\renewcommand*{\orcidsocialsymbol} {\textbf{orcid}~}
\renewcommand*{\researchgatesocialsymbol} {\textbf{rg}~}
\renewcommand*{\researchidsocialsymbol} {\textbf{ri}~}
\renewcommand*{\listitemsymbol} {\labelitemi~} \renewcommand*{\listitemsymbol} {\labelitemi~}

View file

@ -225,6 +225,9 @@
~} ~}
\renewcommand*{\gitlabsocialsymbol}{} \renewcommand*{\gitlabsocialsymbol}{}
\renewcommand*{\stackoverflowsymbol}{} \renewcommand*{\stackoverflowsymbol}{}
\renewcommand*{\orcidsocialsymbol}{}
\renewcommand*{\researchgatesocialsymbol}{}
\renewcommand*{\researchidsocialsymbol}{}
\renewcommand*{\skypesocialsymbol} {% \renewcommand*{\skypesocialsymbol} {%
\protect\raisebox{-0.15em}{% \protect\raisebox{-0.15em}{%
\protect\begin{tikzpicture}[y=0.08em, x=0.08em, xscale=0.020, yscale=-0.020, inner sep=0pt, outer sep=0pt] \protect\begin{tikzpicture}[y=0.08em, x=0.08em, xscale=0.020, yscale=-0.020, inner sep=0pt, outer sep=0pt]