Socials: Add Twitch, YouTube, TikTok, Instagram

This commit is contained in:
Ben Brooks 2022-08-23 20:24:33 +01:00 committed by Mark E Fuller
commit c895ef1f90
4 changed files with 45 additions and 2 deletions

View file

@ -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}}}}%
@ -332,6 +359,10 @@
\newcommand*{\signalsocialsymbol} {}
\newcommand*{\codebergsocialsymbol} {}
\newcommand*{\discordsocialsymbol} {}
\newcommand*{\twitchsocialsymbol} {}
\newcommand*{\youtubesocialsymbol} {}
\newcommand*{\tiktoksocialsymbol} {}
\newcommand*{\instagramsocialsymbol} {}
% other
%------

View file

@ -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

View file

@ -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~}

View file

@ -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