Added stackoverflow, makefile for testing changes.

This commit is contained in:
ebadf 2015-12-05 15:05:24 -06:00
parent 5c500a9a07
commit 7e67b01813
2 changed files with 19 additions and 0 deletions

3
Makefile Normal file
View file

@ -0,0 +1,3 @@
test:
cd examples/ ; for f in *.tex; do xelatex $$f; done

View file

@ -293,6 +293,12 @@
% Usage: \quote{<quote>}
\renewcommand*{\quote}[1]{\def\@quote{#1}}
% Defines writer's stackoverflow profile (optional)
% Usage: \stackoverflow{<so userid>}{so username}
% e.g.https://stackoverflow.com/users/123456/sam-smith
% would be \stackoverflow{123456}{sam-smith}
\newcommand*{\stackoverflow}[2]{\def\@stackoverflowid{#1}\def\@stackoverflowname{#2}}
%-------------------------------------------------------------------------------
% Commands for extra
@ -376,6 +382,16 @@
{\@headersocialsep}
\href{https://github.com/\@github}{\faGithubSquare\ \@github}
}
\ifthenelse{\isundefined{\@stackoverflowid}}
{}
{
\ifbool{isstart}
{
\setbool{istart}{false}
}
{\@headersocialsep}
\href{https://stackoverflow.com/users/\@stackoverflowid}{\faStackOverflow\ \@stackoverflowname}
}
\ifthenelse{\isundefined{\@linkedin}}
{}
{