mirror of
https://github.com/moderncv/moderncv.git
synced 2026-02-06 10:05:19 +01:00
Add stackoverflow to \social command (#11)
* Added stackoverflow option to \social * Update example for stackoverflow
This commit is contained in:
parent
8a66c4f990
commit
1463083706
5 changed files with 13 additions and 1 deletions
|
|
@ -32,6 +32,7 @@
|
||||||
\phone[fax]{+3~(456)~789~012}
|
\phone[fax]{+3~(456)~789~012}
|
||||||
\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[stackoverflow]{0000000/johndoe} % 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[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
|
||||||
|
|
@ -167,3 +168,4 @@ Albert Einstein discovered that $e=mc^2$ in 1905.
|
||||||
|
|
||||||
|
|
||||||
%% end of file `template.tex'.
|
%% end of file `template.tex'.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -255,6 +255,10 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
% http://latex.org/forum/viewtopic.php?t=12239
|
||||||
|
\def\SplitMyMacro#1/#2{#2}
|
||||||
|
|
||||||
|
|
||||||
% 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", "xing", "twitter", "github", "gitlab" or "skype"
|
% where <optional type> should be either "linkedin", "xing", "twitter", "github", "gitlab" or "skype"
|
||||||
|
|
@ -267,6 +271,7 @@
|
||||||
\ifthenelse{\equal{#1}{twitter}} {\collectionadd[twitter]{socials} {\protect\httpslink[#3]{www.twitter.com/#3}}} {}%
|
\ifthenelse{\equal{#1}{twitter}} {\collectionadd[twitter]{socials} {\protect\httpslink[#3]{www.twitter.com/#3}}} {}%
|
||||||
\ifthenelse{\equal{#1}{github}} {\collectionadd[github]{socials} {\protect\httpslink[#3]{www.github.com/#3}}} {}%
|
\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}{gitlab}} {\collectionadd[gitlab]{socials} {\protect\httpslink[#3]{www.gitlab.com/#3}}} {}%
|
||||||
|
\ifthenelse{\equal{#1}{stackoverflow}} {\collectionadd[stackoverflow]{socials} {\protect\httpslink[\SplitMyMacro#3]{stackoverflow.com/users/#3}}} {}%
|
||||||
\ifthenelse{\equal{#1}{skype}} {\collectionadd[skype]{socials} {#3}} {}%
|
\ifthenelse{\equal{#1}{skype}} {\collectionadd[skype]{socials} {#3}} {}%
|
||||||
}
|
}
|
||||||
{\collectionadd[#1]{socials}{\protect\httpslink[#3]{#2}}}}
|
{\collectionadd[#1]{socials}{\protect\httpslink[#3]{#2}}}}
|
||||||
|
|
@ -310,6 +315,7 @@
|
||||||
\newcommand*{\githubsocialsymbol} {}
|
\newcommand*{\githubsocialsymbol} {}
|
||||||
\newcommand*{\gitlabsocialsymbol} {}
|
\newcommand*{\gitlabsocialsymbol} {}
|
||||||
\newcommand*{\skypesocialsymbol} {}
|
\newcommand*{\skypesocialsymbol} {}
|
||||||
|
\newcommand*{\stackoverflowsocialsymbol} {}
|
||||||
|
|
||||||
% other
|
% other
|
||||||
%------
|
%------
|
||||||
|
|
@ -507,7 +513,8 @@
|
||||||
{\href{http://#2}{#2}}%
|
{\href{http://#2}{#2}}%
|
||||||
{\href{http://#2}{#1}}}
|
{\href{http://#2}{#1}}}
|
||||||
|
|
||||||
% makes a https hyperlink
|
|
||||||
|
% makes an https hyperlink
|
||||||
% usage: \httpslink[optional text]{link}
|
% usage: \httpslink[optional text]{link}
|
||||||
\newcommand*{\httpslink}[2][]{%
|
\newcommand*{\httpslink}[2][]{%
|
||||||
\ifthenelse{\equal{#1}{}}%
|
\ifthenelse{\equal{#1}{}}%
|
||||||
|
|
|
||||||
|
|
@ -39,6 +39,7 @@
|
||||||
\renewcommand*{\githubsocialsymbol} {{\small\faGithub}~} % alternative: \faGithubSquare, \faGithubSquare
|
\renewcommand*{\githubsocialsymbol} {{\small\faGithub}~} % alternative: \faGithubSquare, \faGithubSquare
|
||||||
\renewcommand*{\gitlabsocialsymbol} {{\small\faGitlab}~}
|
\renewcommand*{\gitlabsocialsymbol} {{\small\faGitlab}~}
|
||||||
\renewcommand*{\skypesocialsymbol} {{\small\faSkype}~}
|
\renewcommand*{\skypesocialsymbol} {{\small\faSkype}~}
|
||||||
|
\renewcommand*{\stackoverflowsocialsymbol} {{\small\faStackOverflow}~}
|
||||||
|
|
||||||
|
|
||||||
\endinput
|
\endinput
|
||||||
|
|
|
||||||
|
|
@ -46,6 +46,7 @@
|
||||||
\renewcommand*{\githubsocialsymbol} {\textbf{gh}~}
|
\renewcommand*{\githubsocialsymbol} {\textbf{gh}~}
|
||||||
\renewcommand*{\gitlabsocialsymbol} {\textbf{gl}~}
|
\renewcommand*{\gitlabsocialsymbol} {\textbf{gl}~}
|
||||||
\renewcommand*{\skypesocialsymbol} {\textbf{sk}~}
|
\renewcommand*{\skypesocialsymbol} {\textbf{sk}~}
|
||||||
|
\renewcommand*{\stackoverflowsymbol} {\textbf{so}~}
|
||||||
|
|
||||||
\renewcommand*{\listitemsymbol} {\labelitemi~}
|
\renewcommand*{\listitemsymbol} {\labelitemi~}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -224,6 +224,7 @@
|
||||||
\protect\end{tikzpicture}}%
|
\protect\end{tikzpicture}}%
|
||||||
~}
|
~}
|
||||||
\renewcommand*{\gitlabsocialsymbol}{}
|
\renewcommand*{\gitlabsocialsymbol}{}
|
||||||
|
\renewcommand*{\stackoverflowsymbol}{}
|
||||||
\renewcommand*{\skypesocialsymbol} {%
|
\renewcommand*{\skypesocialsymbol} {%
|
||||||
\protect\raisebox{-0.15em}{%
|
\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]
|
\protect\begin{tikzpicture}[y=0.08em, x=0.08em, xscale=0.020, yscale=-0.020, inner sep=0pt, outer sep=0pt]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue