From f63680333ac284d6fe93940e80db93a2e1a56a5c Mon Sep 17 00:00:00 2001 From: "Mark E. Fuller" Date: Mon, 14 Feb 2022 23:44:25 +0200 Subject: [PATCH] implement codeberg social and tikz icon --- moderncv.cls | 4 +++- moderncviconsletters.sty | 1 + moderncviconstikz.sty | 19 +++++++++++++++++++ 3 files changed, 23 insertions(+), 1 deletion(-) diff --git a/moderncv.cls b/moderncv.cls index 160fbdf..e69352d 100644 --- a/moderncv.cls +++ b/moderncv.cls @@ -271,7 +271,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}}}}% @@ -325,6 +326,7 @@ \newcommand*{\whatsappsocialsymbol} {} \newcommand*{\matrixsocialsymbol} {} \newcommand*{\signalsocialsymbol} {} +\newcommand*{\codebergsocialsymbol} {} % other %------ diff --git a/moderncviconsletters.sty b/moderncviconsletters.sty index edce723..59219f1 100644 --- a/moderncviconsletters.sty +++ b/moderncviconsletters.sty @@ -45,6 +45,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 967d284..d16a11f 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