Added support for Xing to \social (github: closes #12)

This commit is contained in:
Stefanus
2016-11-15 10:17:09 +01:00
committed by Xavier Danaux
parent ff9f58b350
commit a15973f242
6 changed files with 11 additions and 4 deletions

View File

@ -33,6 +33,7 @@
\email{john@doe.org} % optional, remove / comment the line if not wanted \email{john@doe.org} % optional, remove / comment the line if not wanted
\homepage{www.johndoe.com} % 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[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[twitter]{jdoe} % optional, remove / comment the line if not wanted
\social[github]{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 \extrainfo{additional information} % optional, remove / comment the line if not wanted

View File

@ -33,6 +33,7 @@
\email{john@doe.org} % optional, remove / comment the line if not wanted \email{john@doe.org} % optional, remove / comment the line if not wanted
\homepage{www.johndoe.com} % 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[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[twitter]{jdoe} % optional, remove / comment the line if not wanted
\social[github]{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 \extrainfo{additional information} % optional, remove / comment the line if not wanted

View File

@ -256,12 +256,13 @@
% adds a social link to one's personal information (optional) % adds a social link to one's personal information (optional)
% usage: \social[<optional type>][<optional url>]{<account name>} % usage: \social[<optional type>][<optional url>]{<account name>}
% where <optional type> should be either "linkedin", "twitter" or "github" % where <optional type> should be either "linkedin", "xing", "twitter" or "github"
\collectionnew{socials} \collectionnew{socials}
\NewDocumentCommand{\social}{O{}O{}m}{% \NewDocumentCommand{\social}{O{}O{}m}{%
\ifthenelse{\equal{#2}{}}% \ifthenelse{\equal{#2}{}}%
{% {%
\ifthenelse{\equal{#1}{linkedin}}{\collectionadd[linkedin]{socials}{\protect\httplink[#3]{www.linkedin.com/in/#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}{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}{github}} {\collectionadd[github]{socials} {\protect\httplink[#3]{www.github.com/#3}}} {}%
} }
@ -301,6 +302,7 @@
\newcommand*{\emailsymbol} {} \newcommand*{\emailsymbol} {}
\newcommand*{\homepagesymbol} {} \newcommand*{\homepagesymbol} {}
\newcommand*{\linkedinsocialsymbol}{} \newcommand*{\linkedinsocialsymbol}{}
\newcommand*{\xingsocialsymbol} {}
\newcommand*{\twittersocialsymbol} {} \newcommand*{\twittersocialsymbol} {}
\newcommand*{\githubsocialsymbol} {} \newcommand*{\githubsocialsymbol} {}

View File

@ -34,6 +34,7 @@
\renewcommand*{\emailsymbol} {{\small\faEnvelopeO}~} % alternative: \faInbox \renewcommand*{\emailsymbol} {{\small\faEnvelopeO}~} % alternative: \faInbox
\renewcommand*{\homepagesymbol} {{\small\faGlobe}~} % alternative: \faHome \renewcommand*{\homepagesymbol} {{\small\faGlobe}~} % alternative: \faHome
\renewcommand*{\linkedinsocialsymbol}{{\small\faLinkedin}~} % alternative: \faLinkedinSquare \renewcommand*{\linkedinsocialsymbol}{{\small\faLinkedin}~} % alternative: \faLinkedinSquare
\renewcommand*{\xingsocialsymbol} {{\small\faXing}~} % alternative: \faXingSquare
\renewcommand*{\twittersocialsymbol} {{\small\faTwitter}~} % alternative: \faTwitterSquare \renewcommand*{\twittersocialsymbol} {{\small\faTwitter}~} % alternative: \faTwitterSquare
\renewcommand*{\githubsocialsymbol} {{\small\faGithub}~} % alternative: \faGithubSquare, \faGithubSquare \renewcommand*{\githubsocialsymbol} {{\small\faGithub}~} % alternative: \faGithubSquare, \faGithubSquare

View File

@ -41,6 +41,7 @@
\renewcommand*{\emailsymbol} {\textbf{E}~} \renewcommand*{\emailsymbol} {\textbf{E}~}
\renewcommand*{\homepagesymbol} {\textbf{W}~} \renewcommand*{\homepagesymbol} {\textbf{W}~}
\renewcommand*{\linkedinsocialsymbol}{\textbf{in}~} \renewcommand*{\linkedinsocialsymbol}{\textbf{in}~}
\renewcommand*{\xingsocialsymbol} {\textbf{xi}~}
\renewcommand*{\twittersocialsymbol} {\textbf{tw}~} \renewcommand*{\twittersocialsymbol} {\textbf{tw}~}
\renewcommand*{\githubsocialsymbol} {\textbf{gh}~} \renewcommand*{\githubsocialsymbol} {\textbf{gh}~}

View File

@ -222,6 +222,7 @@
\protect\end{scope}% \protect\end{scope}%
\protect\end{tikzpicture}}% \protect\end{tikzpicture}}%
~} ~}
\newcommand*{\xingsocialsymbol}{}
\endinput \endinput