From 954d56d5f42419a34f464c44e092f3ba69f096a2 Mon Sep 17 00:00:00 2001 From: LLdaniel Date: Sat, 7 Dec 2024 20:29:39 +0100 Subject: [PATCH] introduce threema social icon - at least as tikz icon --- CHANGELOG | 2 +- manual/moderncv_userguide.tex | 1 + moderncv.cls | 3 +++ moderncviconsletters.sty | 1 + moderncviconstikz.sty | 28 ++++++++++++++++++++++++++++ template.tex | 1 + 6 files changed, 35 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 48d2859..219cb09 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -4,7 +4,7 @@ version next - Fix spacing between first and last name (#204) - Include social icons in cover letter for styles classic, fancy and banking (#170) - Update Oldstyle to use symbols instead of marvosym (#209) -- Added simplex social (#217) +- Added SimpleX and Threema social (#217) version 2.4.1 (18 Jul 2024) - Fix commons/colors.tex not found in package (#194) diff --git a/manual/moderncv_userguide.tex b/manual/moderncv_userguide.tex index b193f0c..ab7ba7f 100644 --- a/manual/moderncv_userguide.tex +++ b/manual/moderncv_userguide.tex @@ -357,6 +357,7 @@ The following values are supported for \code{}: \item \code{stackoverflow} \item \code{steam} \item \code{telegram} + \item \code{threema} \item \code{tiktok} \item \code{twitch} \item \code{twitter} diff --git a/moderncv.cls b/moderncv.cls index 744fa02..23bff53 100644 --- a/moderncv.cls +++ b/moderncv.cls @@ -291,6 +291,7 @@ % - "arxiv" % - "inspire" % - "simplex" +% - "threema" \collectionnew{socials} \NewDocumentCommand{\social}{O{}O{}m}{% \ifthenelse{\equal{#2}{}}% @@ -326,6 +327,7 @@ \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}}} {}% \ifthenelse{\equal{#1}{simplex}} {\collectionadd[simplex]{socials} {\protect\httpslink[#3]{simplex.chat/#3}}} {}% + \ifthenelse{\equal{#1}{threema}} {\collectionadd[threema]{socials} {\protect\httpslink[#3]{threema.id/#3}}} {}% } {\collectionadd[#1]{socials}{\protect\httpslink[#3]{#2}}}}% @@ -394,6 +396,7 @@ \newcommand*{\arxivsocialsymbol} {} \newcommand*{\inspiresocialsymbol} {} \newcommand*{\simplexsocialsymbol} {} +\newcommand*{\threemasocialsymbol} {} % other %------ diff --git a/moderncviconsletters.sty b/moderncviconsletters.sty index 5cda3e1..85ae5ae 100644 --- a/moderncviconsletters.sty +++ b/moderncviconsletters.sty @@ -59,6 +59,7 @@ \renewcommand*{\arxivsocialsymbol} {\textbf{arx}~} \renewcommand*{\inspiresocialsymbol} {\textbf{ins}~} \renewcommand*{\simplexsocialsymbol} {\textbf{splx}~} +\renewcommand*{\simplexsocialsymbol} {\textbf{thr}~} \renewcommand*{\listitemsymbol} {\labelitemi~} diff --git a/moderncviconstikz.sty b/moderncviconstikz.sty index 4d4f707..1510354 100644 --- a/moderncviconstikz.sty +++ b/moderncviconstikz.sty @@ -478,6 +478,34 @@ ~} }{}\par +\ifdefempty{\threemasocialsymbol} { + \renewcommand*{\threemasocialsymbol} { + \protect\raisebox{-0.12em}{ + \protect\begin{tikzpicture}[y=0.8pt, x=0.8pt, yscale=-1.0, xscale=1.0, inner sep=0pt, outer sep=0pt] + \protect\begin{scope}[shift={(507,387)}] + \protect\path[fill=default-socialicon-color, scale=0.015] + % speech bubble + (137,25) ellipse (400 and 350) + % lock shackle + (244.5,-51) arc [start angle=0, end angle=-180, radius=107] + (199.5,-51) arc [start angle=0, end angle=-180, radius=62] + (199.5,-51) rectangle +(45,52) + (30.5,-51) rectangle +(45,52) + % lock body + (0, 0) rectangle +(274, 196); + % triangle + \protect\path[fill=default-socialicon-color, scale=0.015] + (-200,213) -- +(-41,168) -- +(157,120) -- cycle; + % three dots + \protect\path[fill=default-socialicon-color, scale=0.015] + (-94,553) circle (68) + (144,553) circle (68) + (390,553) circle (68); + \protect\end{scope} + \protect\end{tikzpicture}} + ~} +}{}\par + \endinput %% end of file `moderncviconstikz.sty'. diff --git a/template.tex b/template.tex index 6c923a3..f08609c 100644 --- a/template.tex +++ b/template.tex @@ -106,6 +106,7 @@ \social[arxiv]{doe\_j\_1} % optional, remove / comment the line if not wanted \social[inspire]{0000000} % optional, remove / comment the line if not wanted \social[simplex]{0000000} % optional, remove / comment the line if not wanted +\social[threema]{0000000} % optional, remove / comment the line if not wanted \extrainfo{additional information} % optional, remove / comment the line if not wanted