From 3be32891c0016e212986e9f0b4450c84800c4246 Mon Sep 17 00:00:00 2001 From: Patrick Diehl Date: Fri, 6 Jul 2018 22:04:15 -0400 Subject: [PATCH] Add orcid, resercherid, and researchgate as social icons --- examples/template.tex | 5 +++- moderncv.cls | 50 ++++++++++++++++++++++----------------- moderncviconsawesome.sty | 31 ++++++++++++++---------- moderncviconsletters.sty | 29 +++++++++++++---------- moderncviconsmarvosym.sty | 3 +++ 5 files changed, 69 insertions(+), 49 deletions(-) diff --git a/examples/template.tex b/examples/template.tex index e1019b5..e8ed794 100644 --- a/examples/template.tex +++ b/examples/template.tex @@ -32,13 +32,16 @@ \phone[fax]{+3~(456)~789~012} \email{john@doe.org} % 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[xing]{john\_doe} % 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[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[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 \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 diff --git a/moderncv.cls b/moderncv.cls index d0614a2..1b22320 100644 --- a/moderncv.cls +++ b/moderncv.cls @@ -266,13 +266,16 @@ \NewDocumentCommand{\social}{O{}O{}m}{% \ifthenelse{\equal{#2}{}}% {% - \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}{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}{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}{skype}} {\collectionadd[skype]{socials} {#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}{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}{gitlab}} {\collectionadd[gitlab]{socials} {\protect\httpslink[#3]{www.gitlab.com/#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}{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}}}} @@ -302,21 +305,24 @@ \renewcommand{\theenumiv} {\@Alph\c@enumiv} % other symbols -\newcommand*{\listitemsymbol} {\labelitemi~} -\newcommand*{\addresssymbol} {} -\newcommand*{\mobilephonesymbol} {} -\newcommand*{\fixedphonesymbol} {} -\newcommand*{\faxphonesymbol} {} -\newcommand*{\emailsymbol} {} -\newcommand*{\homepagesymbol} {} -\newcommand*{\linkedinsocialsymbol}{} -\newcommand*{\xingsocialsymbol} {} -\newcommand*{\twittersocialsymbol} {} -\newcommand*{\githubsocialsymbol} {} -\newcommand*{\gitlabsocialsymbol} {} -\newcommand*{\skypesocialsymbol} {} -\newcommand*{\stackoverflowsocialsymbol} {} - +\newcommand*{\listitemsymbol} {\labelitemi~} +\newcommand*{\addresssymbol} {} +\newcommand*{\mobilephonesymbol} {} +\newcommand*{\fixedphonesymbol} {} +\newcommand*{\faxphonesymbol} {} +\newcommand*{\emailsymbol} {} +\newcommand*{\homepagesymbol} {} +\newcommand*{\linkedinsocialsymbol} {} +\newcommand*{\xingsocialsymbol} {} +\newcommand*{\twittersocialsymbol} {} +\newcommand*{\githubsocialsymbol} {} +\newcommand*{\gitlabsocialsymbol} {} +\newcommand*{\stackoverflowsocialsymbol}{} +\newcommand*{\skypesocialsymbol} {} +\newcommand*{\orcidsocialsymbol} {} +\newcommand*{\researchgatesocialsymbol} {} +\newcommand*{\researchidsocialsymbol} {} +\newcommand*{\googlescholarsocialsymbol}{} % other %------ % fonts diff --git a/moderncviconsawesome.sty b/moderncviconsawesome.sty index 813af9f..e7ccc23 100644 --- a/moderncviconsawesome.sty +++ b/moderncviconsawesome.sty @@ -17,6 +17,8 @@ %------------------------------------------------------------------------------- % Font Awesome font \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*{\labelitemiv} {\labelitemiii} % no change from default in moderncv.cls -\renewcommand*{\addresssymbol} {} -\renewcommand*{\mobilephonesymbol} {{\Large\faMobilePhone}~} -\renewcommand*{\fixedphonesymbol} {\faPhone~} -\renewcommand*{\faxphonesymbol} {{\small\faFax}~} % alternative: \faPrint -\renewcommand*{\emailsymbol} {{\small\faEnvelopeO}~} % alternative: \faInbox -\renewcommand*{\homepagesymbol} {{\small\faGlobe}~} % alternative: \faHome -\renewcommand*{\linkedinsocialsymbol}{{\small\faLinkedin}~} % alternative: \faLinkedinSquare -\renewcommand*{\xingsocialsymbol} {{\small\faXing}~} % alternative: \faXingSquare -\renewcommand*{\twittersocialsymbol} {{\small\faTwitter}~} % alternative: \faTwitterSquare -\renewcommand*{\githubsocialsymbol} {{\small\faGithub}~} % alternative: \faGithubSquare, \faGithubSquare -\renewcommand*{\gitlabsocialsymbol} {{\small\faGitlab}~} -\renewcommand*{\skypesocialsymbol} {{\small\faSkype}~} -\renewcommand*{\stackoverflowsocialsymbol} {{\small\faStackOverflow}~} +\renewcommand*{\addresssymbol} {} +\renewcommand*{\mobilephonesymbol} {{\Large\faMobilePhone}~} +\renewcommand*{\fixedphonesymbol} {\faPhone~} +\renewcommand*{\faxphonesymbol} {{\small\faFax}~} % alternative: \faPrint +\renewcommand*{\emailsymbol} {{\small\faEnvelopeO}~} % alternative: \faInbox +\renewcommand*{\homepagesymbol} {{\small\faGlobe}~} % alternative: \faHome +\renewcommand*{\linkedinsocialsymbol} {{\small\faLinkedin}~} % alternative: \faLinkedinSquare +\renewcommand*{\xingsocialsymbol} {{\small\faXing}~} % alternative: \faXingSquare +\renewcommand*{\twittersocialsymbol} {{\small\faTwitter}~} % alternative: \faTwitterSquare +\renewcommand*{\githubsocialsymbol} {{\small\faGithub}~} % alternative: \faGithubSquare, \faGithubSquare +\renewcommand*{\gitlabsocialsymbol} {{\small\faGitlab}~} +\renewcommand*{\stackoverflowsocialsymbol}{{\small\faStackOverflow}~} +\renewcommand*{\skypesocialsymbol} {{\small\faSkype}~} +\renewcommand*{\orcidsocialsymbol} {{\small\aiOrcid}~} +\renewcommand*{\researchgatesocialsymbol} {{\small\aiResearchGate}~} +\renewcommand*{\researchidsocialsymbol} {{\small\aiResearchID}~} \endinput diff --git a/moderncviconsletters.sty b/moderncviconsletters.sty index 3ffd3b1..f1e2619 100644 --- a/moderncviconsletters.sty +++ b/moderncviconsletters.sty @@ -34,19 +34,22 @@ %\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*{\addresssymbol} {} -\renewcommand*{\mobilephonesymbol} {\textbf{M}~} -\renewcommand*{\fixedphonesymbol} {\textbf{T}~} -\renewcommand*{\faxphonesymbol} {\textbf{F}~} -\renewcommand*{\emailsymbol} {\textbf{E}~} -\renewcommand*{\homepagesymbol} {\textbf{W}~} -\renewcommand*{\linkedinsocialsymbol}{\textbf{in}~} -\renewcommand*{\xingsocialsymbol} {\textbf{xi}~} -\renewcommand*{\twittersocialsymbol} {\textbf{tw}~} -\renewcommand*{\githubsocialsymbol} {\textbf{gh}~} -\renewcommand*{\gitlabsocialsymbol} {\textbf{gl}~} -\renewcommand*{\skypesocialsymbol} {\textbf{sk}~} -\renewcommand*{\stackoverflowsymbol} {\textbf{so}~} +\renewcommand*{\addresssymbol} {} +\renewcommand*{\mobilephonesymbol} {\textbf{M}~} +\renewcommand*{\fixedphonesymbol} {\textbf{T}~} +\renewcommand*{\faxphonesymbol} {\textbf{F}~} +\renewcommand*{\emailsymbol} {\textbf{E}~} +\renewcommand*{\homepagesymbol} {\textbf{W}~} +\renewcommand*{\linkedinsocialsymbol} {\textbf{in}~} +\renewcommand*{\xingsocialsymbol} {\textbf{xi}~} +\renewcommand*{\twittersocialsymbol} {\textbf{tw}~} +\renewcommand*{\githubsocialsymbol} {\textbf{gh}~} +\renewcommand*{\gitlabsocialsymbol} {\textbf{gl}~} +\renewcommand*{\stackoverflowsocialsymbol}{\textbf{so}~} +\renewcommand*{\skypesocialsymbol} {\textbf{sk}~} +\renewcommand*{\orcidsocialsymbol} {\textbf{orcid}~} +\renewcommand*{\researchgatesocialsymbol} {\textbf{rg}~} +\renewcommand*{\researchidsocialsymbol} {\textbf{ri}~} \renewcommand*{\listitemsymbol} {\labelitemi~} diff --git a/moderncviconsmarvosym.sty b/moderncviconsmarvosym.sty index ba55ca2..9355ec3 100644 --- a/moderncviconsmarvosym.sty +++ b/moderncviconsmarvosym.sty @@ -225,6 +225,9 @@ ~} \renewcommand*{\gitlabsocialsymbol}{} \renewcommand*{\stackoverflowsymbol}{} +\renewcommand*{\orcidsocialsymbol}{} +\renewcommand*{\researchgatesocialsymbol}{} +\renewcommand*{\researchidsocialsymbol}{} \renewcommand*{\skypesocialsymbol} {% \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]