diff --git a/awesome-cv.cls b/awesome-cv.cls index e1511cd..31b33a1 100644 --- a/awesome-cv.cls +++ b/awesome-cv.cls @@ -47,6 +47,8 @@ \RequirePackage{ifxetex} % Needed to use \if-\then-\else statement \RequirePackage{ifthen} +% Needed to use a tollbox of programming tools +\RequirePackage{etoolbox} % Needed to manage fonts \ifxetex \RequirePackage[quiet]{fontspec} @@ -269,11 +271,29 @@ % Usage: \linkedin{} \newcommand*{\linkedin}[1]{\def\@linkedin{#1}} +% Defines writer's skype (optional) +% Usage: \skype{} +\newcommand*{\skype}[1]{\def\@skype{#1}} + +% Defines writer's twitter (optional) +% Usage: \twitter{} +\newcommand*{\twitter}[1]{\def\@twitter{#1}} + % Defines writer's quote (optional) % Usage: \quote{} \renewcommand*{\quote}[1]{\def\@quote{#1}} +%------------------------------------------------------------------------------- +% Commands for extra +%------------------------------------------------------------------------------- +% Define separator for social informations in header +% Usage: \headersocialsep{} +% Default: \quad\textbar\quad +\newcommand*{\headersocialsep}[1][\quad\textbar\quad]{\def\@headersocialsep{#1}} +\headersocialsep + + %------------------------------------------------------------------------------- % Commands for utilities %------------------------------------------------------------------------------- @@ -312,20 +332,74 @@ } \\ \vspace{-0.5mm} \headersocialstyle{ + \newbool{isstart} + \setbool{isstart}{true} \ifthenelse{\isundefined{\@mobile}} - {}{\faMobile\ \@mobile} - \quad\textbar\quad + {} + { + \faMobile\ \@mobile + \setbool{isstart}{false} + } \ifthenelse{\isundefined{\@email}} - {}{\href{mailto:\@email}{\faEnvelope\ \@email}} - \quad\textbar\quad + {} + { + \ifbool{isstart} + { + \setbool{istart}{false} + } + {\@headersocialsep} + \href{mailto:\@email}{\faEnvelope\ \@email} + } \ifthenelse{\isundefined{\@homepage}} - {}{\href{http://\@homepage}{\faHome\ \@homepage}} - \quad\textbar\quad + {} + { + \ifbool{isstart} + { + \setbool{istart}{false} + } + {\@headersocialsep} + \href{http://\@homepage}{\faHome\ \@homepage} + } \ifthenelse{\isundefined{\@github}} - {}{\href{http://github.com/\@github}{\faGithubSquare\ \@github}} - \quad\textbar\quad + {} + { + \ifbool{isstart} + { + \setbool{istart}{false} + } + {\@headersocialsep} + \href{http://github.com/\@github}{\faGithubSquare\ \@github} + } \ifthenelse{\isundefined{\@linkedin}} - {}{\href{http://www.linkedin.com/in/\@linkedin}{\faLinkedinSquare\ \@linkedin}} + {} + { + \ifbool{isstart} + { + \setbool{istart}{false} + } + {\@headersocialsep} + \href{http://www.linkedin.com/in/\@linkedin}{\faLinkedinSquare\ \@linkedin} + } + \ifthenelse{\isundefined{\@twitter}} + {} + { + \ifbool{isstart} + { + \setbool{istart}{false} + } + {\@headersocialsep} + \href{https://twitter.com/\@twitter}{\faTwitter\ \@twitter} + } + \ifthenelse{\isundefined{\@skype}} + {} + { + \ifbool{isstart} + { + \setbool{istart}{false} + } + {\@headersocialsep} + \faSkype\ \@skype + } } \\ \end{center} } diff --git a/examples/cv.pdf b/examples/cv.pdf index 0123629..239e080 100644 Binary files a/examples/cv.pdf and b/examples/cv.pdf differ diff --git a/examples/cv.tex b/examples/cv.tex index 610e66d..c807394 100644 --- a/examples/cv.tex +++ b/examples/cv.tex @@ -23,6 +23,9 @@ % Define your custom color if you don't like awesome colors %\definecolor{awesome}{HTML}{CA63A8} +% Override a separator for social informations in header(default: ' | ') +%\headersocialsep[\quad\textbar\quad] + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % 3rd party packages diff --git a/examples/resume.pdf b/examples/resume.pdf index 977a7d7..bdc13ad 100644 Binary files a/examples/resume.pdf and b/examples/resume.pdf differ diff --git a/examples/resume.tex b/examples/resume.tex index aa1b11c..17655c6 100644 --- a/examples/resume.tex +++ b/examples/resume.tex @@ -11,7 +11,7 @@ \documentclass[11pt, a4paper]{awesome-cv} % Override a directory location for fonts(default: 'fonts/') -% \fontdir[fonts/] +\fontdir[fonts/] % Configure a directory location for sections \newcommand*{\sectiondir}{resume/} @@ -23,6 +23,9 @@ % Define your custom color if you don't like awesome colors %\definecolor{awesome}{HTML}{CA63A8} +% Override a separator for social informations in header(default: ' | ') +%\headersocialsep[\quad\textbar\quad] + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % 3rd party packages