mirror of
https://github.com/moderncv/moderncv.git
synced 2026-02-06 10:05:19 +01:00
Socials: Add Twitch, YouTube, TikTok, Instagram
This commit is contained in:
parent
f90b2e3b8a
commit
c895ef1f90
4 changed files with 45 additions and 2 deletions
35
moderncv.cls
35
moderncv.cls
|
|
@ -252,7 +252,30 @@
|
|||
|
||||
% adds a social link to one's personal information (optional)
|
||||
% usage: \social[<optional type>][<optional url>]{<account name>}
|
||||
% where <optional type> should be either "linkedin", "xing", "twitter", "github", "gitlab", "bitbucket" or "skype"
|
||||
% where <optional type> should be either:
|
||||
% - "linkedin"
|
||||
% - "xing"
|
||||
% - "twitter"
|
||||
% - "mastodon"
|
||||
% - "github"
|
||||
% - "gitlab"
|
||||
% - "stackoverflow"
|
||||
% - "bitbucket"
|
||||
% - "skype"
|
||||
% - "orcid"
|
||||
% - "researchgate"
|
||||
% - "researcherid"
|
||||
% - "telegram"
|
||||
% - "whatsapp"
|
||||
% - "signal"
|
||||
% - "matrix"
|
||||
% - "googlescholar"
|
||||
% - "codeberg"
|
||||
% - "discord"
|
||||
% - "twitch"
|
||||
% - "youtube"
|
||||
% - "tiktok"
|
||||
% - "instagram"
|
||||
\collectionnew{socials}
|
||||
\NewDocumentCommand{\social}{O{}O{}m}{%
|
||||
\ifthenelse{\equal{#2}{}}%
|
||||
|
|
@ -276,6 +299,10 @@
|
|||
\ifthenelse{\equal{#1}{googlescholar}}{\collectionadd[googlescholar]{socials}{\protect\httpslink[#3]{scholar.google.com/citations?user=#3}}} {}%
|
||||
\ifthenelse{\equal{#1}{codeberg}} {\collectionadd[codeberg]{socials} {\protect\httpslink[#3]{codeberg.org/#3}}} {}%
|
||||
\ifthenelse{\equal{#1}{discord}} {\collectionadd[discord]{socials} {#3}} {}%
|
||||
\ifthenelse{\equal{#1}{twitch}} {\collectionadd[twitch]{socials} {\protect\httpslink[#3]{twitch.tv/#3}}} {}%
|
||||
\ifthenelse{\equal{#1}{youtube}} {\collectionadd[youtube]{socials} {\protect\httpslink[#3]{youtube.com/#3}}} {}%
|
||||
\ifthenelse{\equal{#1}{tiktok}} {\collectionadd[tiktok]{socials} {\protect\httpslink[#3]{tiktok.com/@#3}}} {}%
|
||||
\ifthenelse{\equal{#1}{instagram}} {\collectionadd[instagram]{socials} {\protect\httpslink[#3]{instagram.com/#3}}} {}%
|
||||
}
|
||||
{\collectionadd[#1]{socials}{\protect\httpslink[#3]{#2}}}}%
|
||||
|
||||
|
|
@ -331,7 +358,11 @@
|
|||
\newcommand*{\matrixsocialsymbol} {}
|
||||
\newcommand*{\signalsocialsymbol} {}
|
||||
\newcommand*{\codebergsocialsymbol} {}
|
||||
\newcommand*{\discordsocialsymbol} {}
|
||||
\newcommand*{\discordsocialsymbol} {}
|
||||
\newcommand*{\twitchsocialsymbol} {}
|
||||
\newcommand*{\youtubesocialsymbol} {}
|
||||
\newcommand*{\tiktoksocialsymbol} {}
|
||||
\newcommand*{\instagramsocialsymbol} {}
|
||||
|
||||
% other
|
||||
%------
|
||||
|
|
|
|||
|
|
@ -49,6 +49,10 @@
|
|||
\renewcommand*{\telegramsocialsymbol} {{\small\faTelegram}~}
|
||||
\renewcommand*{\whatsappsocialsymbol} {{\small\faWhatsapp}~}
|
||||
\renewcommand*{\discordsocialsymbol} {{\small\faDiscord}~}
|
||||
\renewcommand*{\twitchsocialsymbol} {{\small\faTwitch}~}
|
||||
\renewcommand*{\youtubesocialsymbol} {{\small\faYoutube}~}
|
||||
\renewcommand*{\tiktoksocialsymbol} {{\small\faTiktok}~}
|
||||
\renewcommand*{\instagramsocialsymbol} {{\small\faInstagram}~}
|
||||
%\renewcommand*{\signalsocialsymbol} {}
|
||||
%\renewcommand*{\matrixsocialsymbol} {}
|
||||
\renewcommand*{\bornsymbol} {{\small\faAsterisk}~} % alternative: \faBabyCarriage
|
||||
|
|
|
|||
|
|
@ -47,6 +47,10 @@
|
|||
\renewcommand*{\googlescholarsocialsymbol}{\textbf{gs}~}
|
||||
\renewcommand*{\bornsymbol} {\textbf{B}~}
|
||||
\renewcommand*{\codebergsocialsymbol} {\textbf{cb}~}
|
||||
\renewcommand*{\twitchsocialsymbol} {\textbf{ttv}~}
|
||||
\renewcommand*{\youtubesocialsymbol} {\textbf{yt}~}
|
||||
\renewcommand*{\tiktoksocialsymbol} {\textbf{tok}~}
|
||||
\renewcommand*{\instagramsocialsymbol} {\textbf{insta}~}
|
||||
|
||||
\renewcommand*{\listitemsymbol} {\labelitemi~}
|
||||
|
||||
|
|
|
|||
|
|
@ -75,6 +75,10 @@
|
|||
\social[matrix]{@johndoe:matrix.org} % optional, remove / comment the line if not wanted
|
||||
\social[discord]{jdoe\#0000} % optional, remove / comment the line if not wanted
|
||||
|
||||
\social[twitch]{jdoe} % optional, remove / comment the line if not wanted
|
||||
\social[youtube]{jdoe} % optional, remove / comment the line if not wanted
|
||||
\social[tiktok]{jdoe} % optional, remove / comment the line if not wanted
|
||||
\social[instagram]{jdoe} % optional, remove / comment the line if not wanted
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue