From 86533a03041a19112290ca7a34cc8c862118ea51 Mon Sep 17 00:00:00 2001 From: Dimitri Belopopsky Date: Sun, 18 Oct 2020 17:19:00 +0200 Subject: [PATCH] Add telegram social icon Closes #16 --- moderncv.cls | 7 +++++-- moderncviconsawesome.sty | 1 + moderncviconsletters.sty | 2 ++ moderncviconsmarvosym.sty | 1 + template.tex | 4 ++++ 5 files changed, 13 insertions(+), 2 deletions(-) diff --git a/moderncv.cls b/moderncv.cls index 3a3af31..049abdc 100644 --- a/moderncv.cls +++ b/moderncv.cls @@ -272,12 +272,13 @@ \ifthenelse{\equal{#1}{github}} {\collectionadd[github]{socials} {\protect\httpslink[#3]{www.github.com/#3}}} {}% \ifthenelse{\equal{#1}{gitlab}} {\collectionadd[gitlab]{socials} {\protect\httpslink[#3]{www.gitlab.com/#3}}} {}% \ifthenelse{\equal{#1}{stackoverflow}}{\collectionadd[stackoverflow]{socials}{\protect\httpslink[#3]{stackoverflow.com/users/#3}}} {}% - \ifthenelse{\equal{#1}{bitbucket}} {\collectionadd[bitbucket]{socials}{\protect\httplink[#3]{www.bitbucket.org/#3}}} {}% + \ifthenelse{\equal{#1}{bitbucket}} {\collectionadd[bitbucket]{socials}{\protect\httplink[#3]{www.bitbucket.org/#3}}} {}% \ifthenelse{\equal{#1}{skype}} {\collectionadd[skype]{socials} {#3}} {}% \ifthenelse{\equal{#1}{orcid}} {\collectionadd[orcid]{socials} {\protect\httpslink[#3]{orcid.org/#3}}} {}% \ifthenelse{\equal{#1}{researchgate}} {\collectionadd[researchgate]{socials} {\protect\httpslink[#3]{www.researchgate.net/profile/#3}}}{}% \ifthenelse{\equal{#1}{researcherid}} {\collectionadd[researcherid]{socials} {\protect\httpslink[#3]{www.researcherid.com/rid/#3}}} {}% - } + \ifthenelse{\equal{#1}{telegram}} {\collectionadd[telegram]{socials} {\protect\httpslink[#3]{t.me/#3}}} {}% + } {\collectionadd[#1]{socials}{\protect\httpslink[#3]{#2}}}} % defines additional personal information (optional) @@ -325,6 +326,8 @@ \newcommand*{\researchgatesocialsymbol} {} \newcommand*{\researchidsocialsymbol} {} \newcommand*{\googlescholarsocialsymbol}{} +\newcommand*{\telegramsocialsymbol} {} + % other %------ % fonts diff --git a/moderncviconsawesome.sty b/moderncviconsawesome.sty index 2348364..270fc34 100644 --- a/moderncviconsawesome.sty +++ b/moderncviconsawesome.sty @@ -46,6 +46,7 @@ \renewcommand*{\orcidsocialsymbol} {{\small\aiOrcid}~} \renewcommand*{\researchgatesocialsymbol} {{\small\aiResearchGate}~} \renewcommand*{\researchidsocialsymbol} {{\small\aiResearchID}~} +\renewcommand*{\telegramsocialsymbol} {{\small\faTelegram}~} \endinput diff --git a/moderncviconsletters.sty b/moderncviconsletters.sty index 25c06d6..8234805 100644 --- a/moderncviconsletters.sty +++ b/moderncviconsletters.sty @@ -51,6 +51,8 @@ \renewcommand*{\orcidsocialsymbol} {\textbf{orcid}~} \renewcommand*{\researchgatesocialsymbol} {\textbf{rg}~} \renewcommand*{\researchidsocialsymbol} {\textbf{ri}~} +\renewcommand*{\telegramsocialsymbol} {\textbf{tg}~} + \renewcommand*{\listitemsymbol} {\labelitemi~} diff --git a/moderncviconsmarvosym.sty b/moderncviconsmarvosym.sty index f1aaf2c..73de7f7 100644 --- a/moderncviconsmarvosym.sty +++ b/moderncviconsmarvosym.sty @@ -225,6 +225,7 @@ ~} \renewcommand*{\gitlabsocialsymbol}{} \renewcommand*{\stackoverflowsocialsymbol}{} +\renewcommand*{\telegramsocialsymbol}{} \renewcommand*{\orcidsocialsymbol}{} \renewcommand*{\researchgatesocialsymbol}{} \renewcommand*{\researchidsocialsymbol}{} diff --git a/template.tex b/template.tex index d184d3f..049040f 100644 --- a/template.tex +++ b/template.tex @@ -32,6 +32,8 @@ \phone[fax]{+3~(456)~789~012} \email{john@doe.org} % optional, remove / comment the line if not wanted \homepage{www.johndoe.com} % optional, remove / comment the line if not wanted + +% Social icons \social[linkedin]{john.doe} % optional, remove / comment the line if not wanted \social[xing]{john\_doe} % optional, remove / comment the line if not wanted \social[twitter]{jdoe} % optional, remove / comment the line if not wanted @@ -43,6 +45,8 @@ \social[orcid]{0000-0000-000-000} % optional, remove / comment the line if not wanted \social[researchgate]{jdoe} % optional, remove / comment the line if not wanted \social[researcherid]{jdoe} % optional, remove / comment the line if not wanted +\social[telegram]{jdoe} % optional, remove / comment the line if not wanted + \extrainfo{additional information} % optional, remove / comment the line if not wanted \photo[64pt][0.4pt]{picture} % optional, remove / comment the line if not wanted; '64pt' is the height the picture must be resized to, 0.4pt is the thickness of the frame around it (put it to 0pt for no frame) and 'picture' is the name of the picture file \quote{Some quote} % optional, remove / comment the line if not wanted