From a15973f24215ed0e8bbc76866f46c0212c3134b8 Mon Sep 17 00:00:00 2001 From: Stefanus Date: Tue, 15 Nov 2016 10:17:09 +0100 Subject: [PATCH] Added support for Xing to \social (github: closes #12) --- examples/template-multibib.tex | 1 + examples/template.tex | 1 + moderncv.cls | 10 ++++++---- moderncviconsawesome.sty | 1 + moderncviconsletters.sty | 1 + moderncviconsmarvosym.sty | 1 + 6 files changed, 11 insertions(+), 4 deletions(-) diff --git a/examples/template-multibib.tex b/examples/template-multibib.tex index cade26d..851687a 100644 --- a/examples/template-multibib.tex +++ b/examples/template-multibib.tex @@ -33,6 +33,7 @@ \email{john@doe.org} % optional, remove / comment the line if not wanted \homepage{www.johndoe.com} % optional, remove / comment the line if not wanted \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]{jdoe} % optional, remove / comment the line if not wanted \social[github]{jdoe} % optional, remove / comment the line if not wanted \extrainfo{additional information} % optional, remove / comment the line if not wanted diff --git a/examples/template.tex b/examples/template.tex index ea0b9ff..c6d9251 100644 --- a/examples/template.tex +++ b/examples/template.tex @@ -33,6 +33,7 @@ \email{john@doe.org} % optional, remove / comment the line if not wanted \homepage{www.johndoe.com} % optional, remove / comment the line if not wanted \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]{jdoe} % optional, remove / comment the line if not wanted \social[github]{jdoe} % optional, remove / comment the line if not wanted \extrainfo{additional information} % optional, remove / comment the line if not wanted diff --git a/moderncv.cls b/moderncv.cls index d0c6c93..e487535 100644 --- a/moderncv.cls +++ b/moderncv.cls @@ -256,14 +256,15 @@ % adds a social link to one's personal information (optional) % usage: \social[][]{} -% where should be either "linkedin", "twitter" or "github" +% where should be either "linkedin", "xing", "twitter" or "github" \collectionnew{socials} \NewDocumentCommand{\social}{O{}O{}m}{% \ifthenelse{\equal{#2}{}}% {% - \ifthenelse{\equal{#1}{linkedin}}{\collectionadd[linkedin]{socials}{\protect\httplink[#3]{www.linkedin.com/in/#3}}}{}% - \ifthenelse{\equal{#1}{twitter}} {\collectionadd[twitter]{socials} {\protect\httplink[#3]{www.twitter.com/#3}}} {}% - \ifthenelse{\equal{#1}{github}} {\collectionadd[github]{socials} {\protect\httplink[#3]{www.github.com/#3}}} {}% + \ifthenelse{\equal{#1}{linkedin}}{\collectionadd[linkedin]{socials}{\protect\httplink[#3]{www.linkedin.com/in/#3}}} {}% + \ifthenelse{\equal{#1}{xing}} {\collectionadd[xing]{socials} {\protect\httplink[#3]{www.xing.com/profile/#3}}}{}% + \ifthenelse{\equal{#1}{twitter}} {\collectionadd[twitter]{socials} {\protect\httplink[#3]{www.twitter.com/#3}}} {}% + \ifthenelse{\equal{#1}{github}} {\collectionadd[github]{socials} {\protect\httplink[#3]{www.github.com/#3}}} {}% } {\collectionadd[#1]{socials}{\protect\httplink[#3]{#2}}}} @@ -301,6 +302,7 @@ \newcommand*{\emailsymbol} {} \newcommand*{\homepagesymbol} {} \newcommand*{\linkedinsocialsymbol}{} +\newcommand*{\xingsocialsymbol} {} \newcommand*{\twittersocialsymbol} {} \newcommand*{\githubsocialsymbol} {} diff --git a/moderncviconsawesome.sty b/moderncviconsawesome.sty index 0631c65..9e0c533 100644 --- a/moderncviconsawesome.sty +++ b/moderncviconsawesome.sty @@ -34,6 +34,7 @@ \renewcommand*{\emailsymbol} {{\small\faEnvelopeO}~} % alternative: \faInbox \renewcommand*{\homepagesymbol} {{\small\faGlobe}~} % alternative: \faHome \renewcommand*{\linkedinsocialsymbol}{{\small\faLinkedin}~} % alternative: \faLinkedinSquare +\renewcommand*{\xingsocialsymbol} {{\small\faXing}~} % alternative: \faXingSquare \renewcommand*{\twittersocialsymbol} {{\small\faTwitter}~} % alternative: \faTwitterSquare \renewcommand*{\githubsocialsymbol} {{\small\faGithub}~} % alternative: \faGithubSquare, \faGithubSquare diff --git a/moderncviconsletters.sty b/moderncviconsletters.sty index 8339b01..ca971a1 100644 --- a/moderncviconsletters.sty +++ b/moderncviconsletters.sty @@ -41,6 +41,7 @@ \renewcommand*{\emailsymbol} {\textbf{E}~} \renewcommand*{\homepagesymbol} {\textbf{W}~} \renewcommand*{\linkedinsocialsymbol}{\textbf{in}~} +\renewcommand*{\xingsocialsymbol} {\textbf{xi}~} \renewcommand*{\twittersocialsymbol} {\textbf{tw}~} \renewcommand*{\githubsocialsymbol} {\textbf{gh}~} diff --git a/moderncviconsmarvosym.sty b/moderncviconsmarvosym.sty index c6ab035..b660d6d 100644 --- a/moderncviconsmarvosym.sty +++ b/moderncviconsmarvosym.sty @@ -222,6 +222,7 @@ \protect\end{scope}% \protect\end{tikzpicture}}% ~} +\newcommand*{\xingsocialsymbol}{} \endinput