From 011913a5c8c37bd5e0cf5033dd750a3887c1ac16 Mon Sep 17 00:00:00 2001 From: Johannes Lange Date: Thu, 8 Oct 2020 22:18:14 +0200 Subject: [PATCH] added bitbucket option to \social (#18) --- examples/template-multibib.tex | 1 + examples/template.tex | 1 + moderncv.cls | 4 +++- moderncviconsawesome.sty | 1 + moderncviconsletters.sty | 1 + moderncviconsmarvosym.sty | 1 + 6 files changed, 8 insertions(+), 1 deletion(-) diff --git a/examples/template-multibib.tex b/examples/template-multibib.tex index b0dedbd..cbeab92 100644 --- a/examples/template-multibib.tex +++ b/examples/template-multibib.tex @@ -37,6 +37,7 @@ \social[twitter]{jdoe} % 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[bitbucket]{jdoe} % optional, remove / comment the line if not wanted \social[skype]{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 diff --git a/examples/template.tex b/examples/template.tex index e8ed794..7deff43 100644 --- a/examples/template.tex +++ b/examples/template.tex @@ -38,6 +38,7 @@ \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[bitbucket]{jdoe} % 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 diff --git a/moderncv.cls b/moderncv.cls index eb9d87d..3a3af31 100644 --- a/moderncv.cls +++ b/moderncv.cls @@ -261,7 +261,7 @@ % adds a social link to one's personal information (optional) % usage: \social[][]{} -% where should be either "linkedin", "xing", "twitter", "github", "gitlab" or "skype" +% where should be either "linkedin", "xing", "twitter", "github", "gitlab", "bitbucket" or "skype" \collectionnew{socials} \NewDocumentCommand{\social}{O{}O{}m}{% \ifthenelse{\equal{#2}{}}% @@ -272,6 +272,7 @@ \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}{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}}}{}% @@ -318,6 +319,7 @@ \newcommand*{\githubsocialsymbol} {} \newcommand*{\gitlabsocialsymbol} {} \newcommand*{\stackoverflowsocialsymbol}{} +\newcommand*{\bitbucketsocialsymbol} {} \newcommand*{\skypesocialsymbol} {} \newcommand*{\orcidsocialsymbol} {} \newcommand*{\researchgatesocialsymbol} {} diff --git a/moderncviconsawesome.sty b/moderncviconsawesome.sty index e7ccc23..11fd421 100644 --- a/moderncviconsawesome.sty +++ b/moderncviconsawesome.sty @@ -41,6 +41,7 @@ \renewcommand*{\githubsocialsymbol} {{\small\faGithub}~} % alternative: \faGithubSquare, \faGithubSquare \renewcommand*{\gitlabsocialsymbol} {{\small\faGitlab}~} \renewcommand*{\stackoverflowsocialsymbol}{{\small\faStackOverflow}~} +\renewcommand*{\bitbucketsocialsymbol} {{\small\faBitbucket}~} \renewcommand*{\skypesocialsymbol} {{\small\faSkype}~} \renewcommand*{\orcidsocialsymbol} {{\small\aiOrcid}~} \renewcommand*{\researchgatesocialsymbol} {{\small\aiResearchGate}~} diff --git a/moderncviconsletters.sty b/moderncviconsletters.sty index f1e2619..25c06d6 100644 --- a/moderncviconsletters.sty +++ b/moderncviconsletters.sty @@ -46,6 +46,7 @@ \renewcommand*{\githubsocialsymbol} {\textbf{gh}~} \renewcommand*{\gitlabsocialsymbol} {\textbf{gl}~} \renewcommand*{\stackoverflowsocialsymbol}{\textbf{so}~} +\renewcommand*{\bitbucketsocialsymbol} {\textbf{bb}~} \renewcommand*{\skypesocialsymbol} {\textbf{sk}~} \renewcommand*{\orcidsocialsymbol} {\textbf{orcid}~} \renewcommand*{\researchgatesocialsymbol} {\textbf{rg}~} diff --git a/moderncviconsmarvosym.sty b/moderncviconsmarvosym.sty index b9e57f8..f1aaf2c 100644 --- a/moderncviconsmarvosym.sty +++ b/moderncviconsmarvosym.sty @@ -228,6 +228,7 @@ \renewcommand*{\orcidsocialsymbol}{} \renewcommand*{\researchgatesocialsymbol}{} \renewcommand*{\researchidsocialsymbol}{} +\renewcommand*{\bitbucketsocialsymbol}{} \renewcommand*{\skypesocialsymbol} {% \protect\raisebox{-0.15em}{% \protect\begin{tikzpicture}[y=0.08em, x=0.08em, xscale=0.020, yscale=-0.020, inner sep=0pt, outer sep=0pt]