Skip to content

Commit 6915646

Browse files
ShadowMitiamodulo11
authored andcommitted
Added stackoverflow option to \social
1 parent 8b047f6 commit 6915646

4 files changed

+9
-0
lines changed

moderncv.cls

+6
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,10 @@
258258
}
259259

260260

261+
% http://latex.org/forum/viewtopic.php?t=12239
262+
\def\SplitMyMacro#1/#2{#2}
263+
264+
261265
% adds a social link to one's personal information (optional)
262266
% usage: \social[<optional type>][<optional url>]{<account name>}
263267
% where <optional type> should be either "linkedin", "xing", "twitter", "github", "gitlab" or "skype"
@@ -270,6 +274,7 @@
270274
\ifthenelse{\equal{#1}{twitter}} {\collectionadd[twitter]{socials} {\protect\link[#3]{https://www.twitter.com/#3}}} {}%
271275
\ifthenelse{\equal{#1}{github}} {\collectionadd[github]{socials} {\protect\link[#3]{https://www.github.com/#3}}} {}%
272276
\ifthenelse{\equal{#1}{gitlab}} {\collectionadd[gitlab]{socials} {\protect\link[#3]{https://www.gitlab.com/#3}}} {}%
277+
\ifthenelse{\equal{#1}{stackoverflow}} {\collectionadd[stackoverflow]{socials} {\protect\link[\SplitMyMacro#3]{https://stackoverflow.com/users/#3}}} {}%
273278
\ifthenelse{\equal{#1}{skype}} {\collectionadd[skype]{socials} {#3}} {}%
274279
}
275280
{\collectionadd[#1]{socials}{\protect\link[#3]{#2}}}}
@@ -313,6 +318,7 @@
313318
\newcommand*{\githubsocialsymbol} {}
314319
\newcommand*{\gitlabsocialsymbol} {}
315320
\newcommand*{\skypesocialsymbol} {}
321+
\newcommand*{\stackoverflowsocialsymbol} {}
316322

317323
% other
318324
%------

moderncviconsawesome.sty

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
\renewcommand*{\githubsocialsymbol} {{\small\faGithub}~} % alternative: \faGithubSquare, \faGithubSquare
4040
\renewcommand*{\gitlabsocialsymbol} {{\small\faGitlab}~}
4141
\renewcommand*{\skypesocialsymbol} {{\small\faSkype}~}
42+
\renewcommand*{\stackoverflowsocialsymbol} {{\small\faStackOverflow}~}
4243

4344

4445
\endinput

moderncviconsletters.sty

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
\renewcommand*{\githubsocialsymbol} {\textbf{gh}~}
4747
\renewcommand*{\gitlabsocialsymbol} {\textbf{gl}~}
4848
\renewcommand*{\skypesocialsymbol} {\textbf{sk}~}
49+
\renewcommand*{\stackoverflowsymbol} {\textbf{so}~}
4950

5051
\renewcommand*{\listitemsymbol} {\labelitemi~}
5152

moderncviconsmarvosym.sty

+1
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@
224224
\protect\end{tikzpicture}}%
225225
~}
226226
\renewcommand*{\gitlabsocialsymbol}{}
227+
\renewcommand*{\stackoverflowsymbol}{}
227228
\renewcommand*{\skypesocialsymbol} {%
228229
\protect\raisebox{-0.15em}{%
229230
\protect\begin{tikzpicture}[y=0.08em, x=0.08em, xscale=0.020, yscale=-0.020, inner sep=0pt, outer sep=0pt]

0 commit comments

Comments
 (0)