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
This commit is contained in:
nathan musoke 2024-05-02 13:46:38 -04:00 committed by GitHub
commit 493742be62
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 22 additions and 1 deletions

View file

@ -19,6 +19,7 @@ version 2.?.? (29 Jun 2023)
- Replace instances of ~~~ in codebase with \hspace to be more compatible with - Replace instances of ~~~ in codebase with \hspace to be more compatible with
babel for Spanish (#109). babel for Spanish (#109).
- Added Codeberg and Mastodon social icons (#107). - Added Codeberg and Mastodon social icons (#107).
- New \social options: arXiv, INSPIRE (#185)
version 2.3.1 (21 Feb 2022) version 2.3.1 (21 Feb 2022)
- Fix duplicate GitLab icon (#105). - Fix duplicate GitLab icon (#105).

View file

@ -102,7 +102,7 @@
familydefault, sfdefault, rmdefault, inputenc, moderncv, document, bibliographyitemlabel, familydefault, sfdefault, rmdefault, inputenc, moderncv, document, bibliographyitemlabel,
addresssymbol, mobilephonesymbol, fixedphonesymbol, faxphonesymbol, emailsymbol, homepagesymbol, linkedinsocialsymbol, addresssymbol, mobilephonesymbol, fixedphonesymbol, faxphonesymbol, emailsymbol, homepagesymbol, linkedinsocialsymbol,
xingsocialsymbol, twittersocialsymbol, githubsocialsymbol, gitlabsocialsymbol, xingsocialsymbol, twittersocialsymbol, githubsocialsymbol, gitlabsocialsymbol,
stackoverflowsocialsymbol, bitbucketsocialsymbol, skypesocialsymbol, orcidsocialsymbol, researchgatesocialsymbol, stackoverflowsocialsymbol, bitbucketsocialsymbol, skypesocialsymbol, orcidsocialsymbol, researchgatesocialsymbol, arxivsocialsymbol, inspiresocialsymbol,
researcheridsocialsymbol, telegramsocialsymbol, whatsappsocialsymbol, signalsocialsymbol, matrixsocialsymbol, googlescholarsocialsymbol, cvstretchability, bornsymbol researcheridsocialsymbol, telegramsocialsymbol, whatsappsocialsymbol, signalsocialsymbol, matrixsocialsymbol, googlescholarsocialsymbol, cvstretchability, bornsymbol
}, },
emphstyle={[2]\color{cvblue!60!cvgrey}\bfseries}, 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{<platform>}: The following values are supported for \code{<platform>}:
\begin{itemize} \begin{itemize}
\begin{multicols}{4} \begin{multicols}{4}
\item \code{arxiv}
\item \code{battlenet} \item \code{battlenet}
\item \code{bitbucket} \item \code{bitbucket}
\item \code{codeberg} \item \code{codeberg}
@ -337,6 +338,7 @@ The following values are supported for \code{<platform>}:
\item \code{github} \item \code{github}
\item \code{gitlab} \item \code{gitlab}
\item \code{googlescholar} \item \code{googlescholar}
\item \code{inspire}
\item \code{instagram} \item \code{instagram}
\item \code{linkedin} \item \code{linkedin}
\item \code{mastodon} \item \code{mastodon}
@ -711,6 +713,8 @@ Currently \Moderncv supports the following commands as \code{<\\symbolcommand>}:
\item \code{\\bitbucketsocialsymbol} \item \code{\\bitbucketsocialsymbol}
\item \code{\\skypesocialsymbol} \item \code{\\skypesocialsymbol}
\item \code{\\bornsymbol} \item \code{\\bornsymbol}
\item \code{\\arxivsocialsymbol}
\item \code{\\inspiresocialsymbol}
\end{multicols} \end{multicols}
\end{itemize} \end{itemize}
The possible options for \code{<\\symbol>} depend on the package that is used. The possible options for \code{<\\symbol>} depend on the package that is used.

View file

@ -288,6 +288,8 @@
% - "xbox" % - "xbox"
% - "playstation" % - "playstation"
% - "battlenet" % - "battlenet"
% - "arxiv"
% - "inspire"
\collectionnew{socials} \collectionnew{socials}
\NewDocumentCommand{\social}{O{}O{}m}{% \NewDocumentCommand{\social}{O{}O{}m}{%
\ifthenelse{\equal{#2}{}}% \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}{xbox}} {\collectionadd[xbox]{socials} {\protect\httpslink[#3]{account.xbox.com/profile?gamertag=#3}}} {}%
\ifthenelse{\equal{#1}{playstation}} {\collectionadd[playstation]{socials} {#3}} {}% \ifthenelse{\equal{#1}{playstation}} {\collectionadd[playstation]{socials} {#3}} {}%
\ifthenelse{\equal{#1}{battlenet}} {\collectionadd[battlenet]{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}}}}% {\collectionadd[#1]{socials}{\protect\httpslink[#3]{#2}}}}%
@ -385,6 +389,8 @@
\newcommand*{\xboxsocialsymbol} {} \newcommand*{\xboxsocialsymbol} {}
\newcommand*{\playstationsocialsymbol} {} \newcommand*{\playstationsocialsymbol} {}
\newcommand*{\battlenetsocialsymbol} {} \newcommand*{\battlenetsocialsymbol} {}
\newcommand*{\arxivsocialsymbol} {}
\newcommand*{\inspiresocialsymbol} {}
% other % other
%------ %------

View file

@ -29,6 +29,8 @@
\providecolor{researchgate}{named}{default-socialicon-color} \providecolor{researchgate}{named}{default-socialicon-color}
\providecolor{researcherid}{named}{default-socialicon-color} \providecolor{researcherid}{named}{default-socialicon-color}
\providecolor{googlescholar}{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 % all symbols described in moderncv.cls
@ -57,6 +59,8 @@
%\newcommand*{\whatsappsocialsymbol} {} %\newcommand*{\whatsappsocialsymbol} {}
%\newcommand*{\matrixsocialsymbol} {} %\newcommand*{\matrixsocialsymbol} {}
%\newcommand*{\signalsocialsymbol} {} %\newcommand*{\signalsocialsymbol} {}
\renewcommand*{\arxivsocialsymbol}{{\color{arxiv}{\small\aiarXiv}}~}
\renewcommand*{\inspiresocialsymbol}{{\color{inspire}{\small\aiInspire}}~}
\endinput \endinput

View file

@ -98,6 +98,8 @@
\renewcommand*{\battlenetsocialsymbol} {{\color{battlenet}\small\faBattleNet}~} \renewcommand*{\battlenetsocialsymbol} {{\color{battlenet}\small\faBattleNet}~}
%\renewcommand*{\signalsocialsymbol} {} %\renewcommand*{\signalsocialsymbol} {}
%\renewcommand*{\matrixsocialsymbol} {} %\renewcommand*{\matrixsocialsymbol} {}
% \renewcommand*{\arxivsocialsymbol} {{\color{arxiv}{\small\faarXiv}}~}
% \renewcommand*{\inspiresocialsymbol} {{\color{inspire}{\small\faInspire}}~}
\renewcommand*{\bornsymbol} {{\color{born}\small\faAsterisk}~} % alternative: \faBabyCarriage \renewcommand*{\bornsymbol} {{\color{born}\small\faAsterisk}~} % alternative: \faBabyCarriage
\endinput \endinput

View file

@ -56,6 +56,8 @@
\renewcommand*{\xboxsocialsymbol} {\textbf{xb}~} \renewcommand*{\xboxsocialsymbol} {\textbf{xb}~}
\renewcommand*{\playstationsocialsymbol} {\textbf{psn}~} \renewcommand*{\playstationsocialsymbol} {\textbf{psn}~}
\renewcommand*{\battlenetsocialsymbol} {\textbf{bn}~} \renewcommand*{\battlenetsocialsymbol} {\textbf{bn}~}
\renewcommand*{\arxivsocialsymbol} {\textbf{arx}~}
\renewcommand*{\inspiresocialsymbol} {\textbf{ins}~}
\renewcommand*{\listitemsymbol} {\labelitemi~} \renewcommand*{\listitemsymbol} {\labelitemi~}

View file

@ -90,6 +90,8 @@
\social[xbox]{jdoe} % optional, remove / comment the line if not wanted \social[xbox]{jdoe} % optional, remove / comment the line if not wanted
\social[playstation]{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[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 \extrainfo{additional information} % optional, remove / comment the line if not wanted