From c88397528cfb700a518da3e131d93ca0939acd20 Mon Sep 17 00:00:00 2001 From: Ben Brooks Date: Tue, 23 Aug 2022 20:40:31 +0100 Subject: [PATCH] Socials: Add gaming services (Steam, Xbox, Playstation, BattleNet) --- moderncv.cls | 12 ++++++++++++ moderncviconsawesome.sty | 4 ++++ moderncviconsletters.sty | 4 ++++ template.tex | 4 ++++ 4 files changed, 24 insertions(+) diff --git a/moderncv.cls b/moderncv.cls index b6c204f..4cf678e 100644 --- a/moderncv.cls +++ b/moderncv.cls @@ -276,6 +276,10 @@ % - "youtube" % - "tiktok" % - "instagram" +% - "steam +% - "xbox" +% - "playstation" +% - "battlenet" \collectionnew{socials} \NewDocumentCommand{\social}{O{}O{}m}{% \ifthenelse{\equal{#2}{}}% @@ -303,6 +307,10 @@ \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}}} {}% + \ifthenelse{\equal{#1}{steam}} {\collectionadd[steam]{socials} {\protect\httpslink[#3]{steamcommunity.com/id/#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}{battlenet}} {\collectionadd[battlenet]{socials} {#3}} {}% } {\collectionadd[#1]{socials}{\protect\httpslink[#3]{#2}}}}% @@ -363,6 +371,10 @@ \newcommand*{\youtubesocialsymbol} {} \newcommand*{\tiktoksocialsymbol} {} \newcommand*{\instagramsocialsymbol} {} +\newcommand*{\steamsocialsymbol} {} +\newcommand*{\xboxsocialsymbol} {} +\newcommand*{\playstationsocialsymbol} {} +\newcommand*{\battlenetsocialsymbol} {} % other %------ diff --git a/moderncviconsawesome.sty b/moderncviconsawesome.sty index e8820db..26fc7b1 100644 --- a/moderncviconsawesome.sty +++ b/moderncviconsawesome.sty @@ -53,6 +53,10 @@ \renewcommand*{\youtubesocialsymbol} {{\small\faYoutube}~} \renewcommand*{\tiktoksocialsymbol} {{\small\faTiktok}~} \renewcommand*{\instagramsocialsymbol} {{\small\faInstagram}~} +\renewcommand*{\steamsocialsymbol} {{\small\faSteam}~} +\renewcommand*{\xboxsocialsymbol} {{\small\faXbox}~} +\renewcommand*{\playstationsocialsymbol} {{\small\faPlaystation}~} +\renewcommand*{\battlenetsocialsymbol} {{\small\faBattleNet}~} %\renewcommand*{\signalsocialsymbol} {} %\renewcommand*{\matrixsocialsymbol} {} \renewcommand*{\bornsymbol} {{\small\faAsterisk}~} % alternative: \faBabyCarriage diff --git a/moderncviconsletters.sty b/moderncviconsletters.sty index 8bc04df..961e99a 100644 --- a/moderncviconsletters.sty +++ b/moderncviconsletters.sty @@ -51,6 +51,10 @@ \renewcommand*{\youtubesocialsymbol} {\textbf{yt}~} \renewcommand*{\tiktoksocialsymbol} {\textbf{tok}~} \renewcommand*{\instagramsocialsymbol} {\textbf{insta}~} +\renewcommand*{\steamsocialsymbol} {\textbf{st}~} +\renewcommand*{\xboxsocialsymbol} {\textbf{xb}~} +\renewcommand*{\playstationsocialsymbol} {\textbf{psn}~} +\renewcommand*{\battlenetsocialsymbol} {\textbf{bn}~} \renewcommand*{\listitemsymbol} {\labelitemi~} diff --git a/template.tex b/template.tex index 9b6948d..cd1ab65 100644 --- a/template.tex +++ b/template.tex @@ -80,6 +80,10 @@ \social[tiktok]{jdoe} % optional, remove / comment the line if not wanted \social[instagram]{jdoe} % optional, remove / comment the line if not wanted +\social[steam]{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[battlenet]{jdoe\#0000} % optional, remove / comment the line if not wanted \extrainfo{additional information} % optional, remove / comment the line if not wanted