From 59aaae8264e6df2da3db4725cad8a23fe7d23cfb Mon Sep 17 00:00:00 2001 From: Mark E Fuller Date: Mon, 21 Feb 2022 14:52:36 +0200 Subject: [PATCH] Codeberg & Mastodon (#107) * implement codeberg social and tikz icon * add codeberg social to template, rearrange social icons list * implement mastodon social * implement mastodon social in template --- moderncv.cls | 6 +++++- moderncviconsawesome.sty | 1 + moderncviconsletters.sty | 2 ++ moderncviconstikz.sty | 19 +++++++++++++++++++ template.tex | 13 ++++++++++--- 5 files changed, 37 insertions(+), 4 deletions(-) diff --git a/moderncv.cls b/moderncv.cls index 44b9e35..aa93433 100644 --- a/moderncv.cls +++ b/moderncv.cls @@ -259,6 +259,7 @@ \ifthenelse{\equal{#1}{linkedin}} {\collectionadd[linkedin]{socials} {\protect\httpslink[#3]{www.linkedin.com/in/#3}}} {}% \ifthenelse{\equal{#1}{xing}} {\collectionadd[xing]{socials} {\protect\httpslink[#3]{www.xing.com/profile/#3}}} {}% \ifthenelse{\equal{#1}{twitter}} {\collectionadd[twitter]{socials} {\protect\httpslink[#3]{twitter.com/#3}}} {}% + \ifthenelse{\equal{#1}{mastodon}} {\collectionadd[mastodon]{socials} {\protect\httpslink[#3]{#3}}} {}% \ifthenelse{\equal{#1}{github}} {\collectionadd[github]{socials} {\protect\httpslink[#3]{github.com/#3}}} {}% \ifthenelse{\equal{#1}{gitlab}} {\collectionadd[gitlab]{socials} {\protect\httpslink[#3]{gitlab.com/#3}}} {}% \ifthenelse{\equal{#1}{stackoverflow}}{\collectionadd[stackoverflow]{socials}{\protect\httpslink[#3]{stackoverflow.com/users/#3}}} {}% @@ -271,7 +272,8 @@ \ifthenelse{\equal{#1}{whatsapp}} {\collectionadd[whatsapp]{socials} {\protect\httpslink[#3]{wa.me/#3}}} {}% \ifthenelse{\equal{#1}{signal}} {\collectionadd[signal]{socials} {#3}} {}% \ifthenelse{\equal{#1}{matrix}} {\collectionadd[matrix]{socials} {\httpslink[#3]{matrix.to/\#/#3}}} {}% - \ifthenelse{\equal{#1}{googlescholar}}{\collectionadd[googlescholar]{socials}{\protect\httpslink[#3]{scholar.google.com/citations?user=#3}}} {}% {}% + \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}}} {}% } {\collectionadd[#1]{socials}{\protect\httpslink[#3]{#2}}}}% @@ -312,6 +314,7 @@ \newcommand*{\linkedinsocialsymbol} {} \newcommand*{\xingsocialsymbol} {} \newcommand*{\twittersocialsymbol} {} +\newcommand*{\mastodonsocialsymbol} {} \newcommand*{\githubsocialsymbol} {} \newcommand*{\gitlabsocialsymbol} {} \newcommand*{\stackoverflowsocialsymbol}{} @@ -325,6 +328,7 @@ \newcommand*{\whatsappsocialsymbol} {} \newcommand*{\matrixsocialsymbol} {} \newcommand*{\signalsocialsymbol} {} +\newcommand*{\codebergsocialsymbol} {} % other %------ diff --git a/moderncviconsawesome.sty b/moderncviconsawesome.sty index 2a0ea3a..35250fd 100644 --- a/moderncviconsawesome.sty +++ b/moderncviconsawesome.sty @@ -36,6 +36,7 @@ \renewcommand*{\linkedinsocialsymbol} {{\small\faLinkedinIn}~} % alternative: \faLinkedin \renewcommand*{\xingsocialsymbol} {{\small\faXing}~} % alternative: \faXingSquare \renewcommand*{\twittersocialsymbol} {{\small\faTwitter}~} % alternative: \faTwitterSquare +\renewcommand*{\mastodonsocialsymbol} {{\small\faMastodon}~} \renewcommand*{\githubsocialsymbol} {{\small\faGithub}~} % alternative: \faGithubSquare, \faGithub* \renewcommand*{\gitlabsocialsymbol} {{\small\faGitlab}~} \renewcommand*{\stackoverflowsocialsymbol}{{\small\faStackOverflow}~} diff --git a/moderncviconsletters.sty b/moderncviconsletters.sty index 832e210..f0faa86 100644 --- a/moderncviconsletters.sty +++ b/moderncviconsletters.sty @@ -31,6 +31,7 @@ \renewcommand*{\linkedinsocialsymbol} {\textbf{in}~} \renewcommand*{\xingsocialsymbol} {\textbf{xi}~} \renewcommand*{\twittersocialsymbol} {\textbf{tw}~} +\renewcommand*{\mastodonsocialsymbol} {\textbf{ms}~} \renewcommand*{\githubsocialsymbol} {\textbf{gh}~} \renewcommand*{\gitlabsocialsymbol} {\textbf{gl}~} \renewcommand*{\stackoverflowsocialsymbol}{\textbf{so}~} @@ -45,6 +46,7 @@ \renewcommand*{\matrixsocialsymbol} {\textbf{ma}~} \renewcommand*{\googlescholarsocialsymbol}{\textbf{gs}~} \renewcommand*{\bornsymbol} {\textbf{B}~} +\renewcommand*{\codebergsocialsymbol} {\textbf{cb}~} \renewcommand*{\listitemsymbol} {\labelitemi~} diff --git a/moderncviconstikz.sty b/moderncviconstikz.sty index c3e9f40..73a7c3b 100644 --- a/moderncviconstikz.sty +++ b/moderncviconstikz.sty @@ -439,6 +439,25 @@ ~} }{}\par +\ifdefempty{\codebergsocialsymbol} { + \renewcommand*{\codebergsocialsymbol} { + \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[scale=0.265, opacity=0.500, line cap=butt, line join=miter, line width=0.779pt, miter limit=2.00] + (11249.8942,-1872.9296)arc(269.285:169.240:0.201313 and 0.150) -- + (11258.5852,-1839.4433)arc(66.699:32.084:23.067) -- + (11250.0698,-1872.8557)arc(329.460:269.346:0.201313 and 0.150) -- cycle; + + \protect\path[scale=0.265, fill=color2, line width=0.426pt] + (11249.3743,-1883.6959)arc(269.785:180.000:23.067)arc(180.001:147.920:23.067) + -- (11249.1480,-1873.2412)arc(209.929:330.071:0.360097 and 0.269) -- + (11269.0053,-1848.3766)arc(32.082:-0.002:23.067)arc(360.000:270.000:23.067)arc(270.108:269.892:23.067) + -- cycle; + \protect\end{scope} + \protect\end{tikzpicture}} + ~} +}{}\par \endinput diff --git a/template.tex b/template.tex index 38d313b..8c4b88e 100644 --- a/template.tex +++ b/template.tex @@ -54,20 +54,27 @@ % 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]{ji\_doe} % optional, remove / comment the line if not wanted + \social[github]{jdoe} % optional, remove / comment the line if not wanted \social[gitlab]{jdoe} % optional, remove / comment the line if not wanted -\social[stackoverflow]{0000000/johndoe} % optional, remove / comment the line if not wanted +\social[codeberg]{jdoe} % optional, remove / comment the line if not wanted \social[bitbucket]{jdoe} % optional, remove / comment the line if not wanted +\social[stackoverflow]{0000000/johndoe} % optional, remove / comment the line if not wanted + \social[skype]{jdoe} % optional, remove / comment the line if not wanted \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[googlescholar]{googlescholarid} % optional, remove / comment the line if not wanted + +\social[twitter]{ji\_doe} % optional, remove / comment the line if not wanted +\social[mastodon]{mastodon.social/web/@user} % optional, remove / comment the line if not wanted \social[telegram]{jdoe} % optional, remove / comment the line if not wanted \social[whatsapp]{12345678901} % optional, remove / comment the line if not wanted \social[signal]{12345678901} % optional, remove / comment the line if not wanted \social[matrix]{@johndoe:matrix.org} % optional, remove / comment the line if not wanted -\social[googlescholar]{googlescholarid} % optional, remove / comment the line if not wanted + + \extrainfo{additional information} % optional, remove / comment the line if not wanted