From 493742be6202264173a72957194cc853af8e3157 Mon Sep 17 00:00:00 2001 From: nathan musoke Date: Thu, 2 May 2024 13:46:38 -0400 Subject: [PATCH] Add \social options: arXiv, INSPIRE (#185) * Add \social options: arXiv, INSPIRE https://arxiv.org/ and https://inspirehep.net/ are websites on which academics often have profiles that would be linked in a CV (particularly physics and related fields). Add social options through the academicons font. * fixup arxiv and inspirehep socials * fixup arxiv and inspire-hep socials --- CHANGELOG | 1 + manual/moderncv_userguide.tex | 6 +++++- moderncv.cls | 6 ++++++ moderncviconsacademic.sty | 4 ++++ moderncviconsawesome.sty | 2 ++ moderncviconsletters.sty | 2 ++ template.tex | 2 ++ 7 files changed, 22 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index a62ce21..3887511 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -19,6 +19,7 @@ version 2.?.? (29 Jun 2023) - Replace instances of ~~~ in codebase with \hspace to be more compatible with babel for Spanish (#109). - Added Codeberg and Mastodon social icons (#107). +- New \social options: arXiv, INSPIRE (#185) version 2.3.1 (21 Feb 2022) - Fix duplicate GitLab icon (#105). diff --git a/manual/moderncv_userguide.tex b/manual/moderncv_userguide.tex index 45a19ac..46076ae 100644 --- a/manual/moderncv_userguide.tex +++ b/manual/moderncv_userguide.tex @@ -102,7 +102,7 @@ familydefault, sfdefault, rmdefault, inputenc, moderncv, document, bibliographyitemlabel, addresssymbol, mobilephonesymbol, fixedphonesymbol, faxphonesymbol, emailsymbol, homepagesymbol, linkedinsocialsymbol, xingsocialsymbol, twittersocialsymbol, githubsocialsymbol, gitlabsocialsymbol, - stackoverflowsocialsymbol, bitbucketsocialsymbol, skypesocialsymbol, orcidsocialsymbol, researchgatesocialsymbol, + stackoverflowsocialsymbol, bitbucketsocialsymbol, skypesocialsymbol, orcidsocialsymbol, researchgatesocialsymbol, arxivsocialsymbol, inspiresocialsymbol, researcheridsocialsymbol, telegramsocialsymbol, whatsappsocialsymbol, signalsocialsymbol, matrixsocialsymbol, googlescholarsocialsymbol, cvstretchability, bornsymbol }, emphstyle={[2]\color{cvblue!60!cvgrey}\bfseries}, @@ -330,6 +330,7 @@ Takes the platform as an optional argument. The following values are supported for \code{}: \begin{itemize} \begin{multicols}{4} + \item \code{arxiv} \item \code{battlenet} \item \code{bitbucket} \item \code{codeberg} @@ -337,6 +338,7 @@ The following values are supported for \code{}: \item \code{github} \item \code{gitlab} \item \code{googlescholar} + \item \code{inspire} \item \code{instagram} \item \code{linkedin} \item \code{mastodon} @@ -711,6 +713,8 @@ Currently \Moderncv supports the following commands as \code{<\\symbolcommand>}: \item \code{\\bitbucketsocialsymbol} \item \code{\\skypesocialsymbol} \item \code{\\bornsymbol} + \item \code{\\arxivsocialsymbol} + \item \code{\\inspiresocialsymbol} \end{multicols} \end{itemize} The possible options for \code{<\\symbol>} depend on the package that is used. diff --git a/moderncv.cls b/moderncv.cls index ac478e6..730822c 100644 --- a/moderncv.cls +++ b/moderncv.cls @@ -288,6 +288,8 @@ % - "xbox" % - "playstation" % - "battlenet" +% - "arxiv" +% - "inspire" \collectionnew{socials} \NewDocumentCommand{\social}{O{}O{}m}{% \ifthenelse{\equal{#2}{}}% @@ -320,6 +322,8 @@ \ifthenelse{\equal{#1}{xbox}} {\collectionadd[xbox]{socials} {\protect\httpslink[#3]{account.xbox.com/profile?gamertag=#3}}} {}% \ifthenelse{\equal{#1}{playstation}} {\collectionadd[playstation]{socials} {#3}} {}% \ifthenelse{\equal{#1}{battlenet}} {\collectionadd[battlenet]{socials} {#3}} {}% + \ifthenelse{\equal{#1}{arxiv}} {\collectionadd[arxiv]{socials} {\protect\httpslink[#3]{arxiv.org/a/#3}}} {}% + \ifthenelse{\equal{#1}{inspire}} {\collectionadd[inspire]{socials} {\protect\httpslink[#3]{inspirehep.net/authoris/#3}}} {}% } {\collectionadd[#1]{socials}{\protect\httpslink[#3]{#2}}}}% @@ -385,6 +389,8 @@ \newcommand*{\xboxsocialsymbol} {} \newcommand*{\playstationsocialsymbol} {} \newcommand*{\battlenetsocialsymbol} {} +\newcommand*{\arxivsocialsymbol} {} +\newcommand*{\inspiresocialsymbol} {} % other %------ diff --git a/moderncviconsacademic.sty b/moderncviconsacademic.sty index 79f8ec9..1ac00ac 100644 --- a/moderncviconsacademic.sty +++ b/moderncviconsacademic.sty @@ -29,6 +29,8 @@ \providecolor{researchgate}{named}{default-socialicon-color} \providecolor{researcherid}{named}{default-socialicon-color} \providecolor{googlescholar}{named}{default-socialicon-color} +\providecolor{arxiv}{named}{default-socialicon-color} +\providecolor{inspire}{named}{default-socialicon-color} %------------------------------------------------------------------------------- % all symbols described in moderncv.cls @@ -57,6 +59,8 @@ %\newcommand*{\whatsappsocialsymbol} {} %\newcommand*{\matrixsocialsymbol} {} %\newcommand*{\signalsocialsymbol} {} +\renewcommand*{\arxivsocialsymbol}{{\color{arxiv}{\small\aiarXiv}}~} +\renewcommand*{\inspiresocialsymbol}{{\color{inspire}{\small\aiInspire}}~} \endinput diff --git a/moderncviconsawesome.sty b/moderncviconsawesome.sty index 597afc4..90f2b37 100644 --- a/moderncviconsawesome.sty +++ b/moderncviconsawesome.sty @@ -98,6 +98,8 @@ \renewcommand*{\battlenetsocialsymbol} {{\color{battlenet}\small\faBattleNet}~} %\renewcommand*{\signalsocialsymbol} {} %\renewcommand*{\matrixsocialsymbol} {} +% \renewcommand*{\arxivsocialsymbol} {{\color{arxiv}{\small\faarXiv}}~} +% \renewcommand*{\inspiresocialsymbol} {{\color{inspire}{\small\faInspire}}~} \renewcommand*{\bornsymbol} {{\color{born}\small\faAsterisk}~} % alternative: \faBabyCarriage \endinput diff --git a/moderncviconsletters.sty b/moderncviconsletters.sty index a25b03f..68ba2a1 100644 --- a/moderncviconsletters.sty +++ b/moderncviconsletters.sty @@ -56,6 +56,8 @@ \renewcommand*{\xboxsocialsymbol} {\textbf{xb}~} \renewcommand*{\playstationsocialsymbol} {\textbf{psn}~} \renewcommand*{\battlenetsocialsymbol} {\textbf{bn}~} +\renewcommand*{\arxivsocialsymbol} {\textbf{arx}~} +\renewcommand*{\inspiresocialsymbol} {\textbf{ins}~} \renewcommand*{\listitemsymbol} {\labelitemi~} diff --git a/template.tex b/template.tex index 750b4ce..014a2f1 100644 --- a/template.tex +++ b/template.tex @@ -90,6 +90,8 @@ \social[xbox]{jdoe} % optional, remove / comment the line if not wanted \social[playstation]{jdoe} % optional, remove / comment the line if not wanted \social[battlenet]{jdoe\#0000} % optional, remove / comment the line if not wanted +\social[arxiv]{doe\_j\_1} % optional, remove / comment the line if not wanted +\social[inspire]{0000000} % optional, remove / comment the line if not wanted \extrainfo{additional information} % optional, remove / comment the line if not wanted