Added support for Xing to \social (github: closes #12)
This commit is contained in:
10
moderncv.cls
10
moderncv.cls
@ -256,14 +256,15 @@
|
||||
|
||||
% adds a social link to one's personal information (optional)
|
||||
% 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}
|
||||
\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} {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user