mirror of
https://github.com/moderncv/moderncv.git
synced 2026-02-06 10:05:19 +01:00
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:
parent
74e61f8ddf
commit
493742be62
7 changed files with 22 additions and 1 deletions
|
|
@ -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
|
||||
%------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue