introduce threema social icon - at least as tikz icon

This commit is contained in:
LLdaniel 2024-12-07 20:29:39 +01:00
commit 954d56d5f4
6 changed files with 35 additions and 1 deletions

View file

@ -4,7 +4,7 @@ version next
- Fix spacing between first and last name (#204) - Fix spacing between first and last name (#204)
- Include social icons in cover letter for styles classic, fancy and banking (#170) - Include social icons in cover letter for styles classic, fancy and banking (#170)
- Update Oldstyle to use symbols instead of marvosym (#209) - 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) version 2.4.1 (18 Jul 2024)
- Fix commons/colors.tex not found in package (#194) - Fix commons/colors.tex not found in package (#194)

View file

@ -357,6 +357,7 @@ The following values are supported for \code{<platform>}:
\item \code{stackoverflow} \item \code{stackoverflow}
\item \code{steam} \item \code{steam}
\item \code{telegram} \item \code{telegram}
\item \code{threema}
\item \code{tiktok} \item \code{tiktok}
\item \code{twitch} \item \code{twitch}
\item \code{twitter} \item \code{twitter}

View file

@ -291,6 +291,7 @@
% - "arxiv" % - "arxiv"
% - "inspire" % - "inspire"
% - "simplex" % - "simplex"
% - "threema"
\collectionnew{socials} \collectionnew{socials}
\NewDocumentCommand{\social}{O{}O{}m}{% \NewDocumentCommand{\social}{O{}O{}m}{%
\ifthenelse{\equal{#2}{}}% \ifthenelse{\equal{#2}{}}%
@ -326,6 +327,7 @@
\ifthenelse{\equal{#1}{arxiv}} {\collectionadd[arxiv]{socials} {\protect\httpslink[#3]{arxiv.org/a/#3}}} {}% \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}{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}{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}}}}% {\collectionadd[#1]{socials}{\protect\httpslink[#3]{#2}}}}%
@ -394,6 +396,7 @@
\newcommand*{\arxivsocialsymbol} {} \newcommand*{\arxivsocialsymbol} {}
\newcommand*{\inspiresocialsymbol} {} \newcommand*{\inspiresocialsymbol} {}
\newcommand*{\simplexsocialsymbol} {} \newcommand*{\simplexsocialsymbol} {}
\newcommand*{\threemasocialsymbol} {}
% other % other
%------ %------

View file

@ -59,6 +59,7 @@
\renewcommand*{\arxivsocialsymbol} {\textbf{arx}~} \renewcommand*{\arxivsocialsymbol} {\textbf{arx}~}
\renewcommand*{\inspiresocialsymbol} {\textbf{ins}~} \renewcommand*{\inspiresocialsymbol} {\textbf{ins}~}
\renewcommand*{\simplexsocialsymbol} {\textbf{splx}~} \renewcommand*{\simplexsocialsymbol} {\textbf{splx}~}
\renewcommand*{\simplexsocialsymbol} {\textbf{thr}~}
\renewcommand*{\listitemsymbol} {\labelitemi~} \renewcommand*{\listitemsymbol} {\labelitemi~}

View file

@ -478,6 +478,34 @@
~} ~}
}{}\par }{}\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 \endinput
%% end of file `moderncviconstikz.sty'. %% end of file `moderncviconstikz.sty'.

View file

@ -106,6 +106,7 @@
\social[arxiv]{doe\_j\_1} % optional, remove / comment the line if not wanted \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[inspire]{0000000} % optional, remove / comment the line if not wanted
\social[simplex]{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 \extrainfo{additional information} % optional, remove / comment the line if not wanted