From 1cbc09c75afbde3dfedfcd5dd7da309ddebb2ba1 Mon Sep 17 00:00:00 2001 From: Stefano Kowalke Date: Fri, 13 Nov 2015 09:29:38 +0100 Subject: [PATCH 1/2] Dont print the pipe for non-used social informations When I am not using one of the social informations (e.g. mobile), the pipe sign (|) will be print anyway. So I get something like this | mail@mail.org | . With this patch the pipe will only print when the social information is actually used. --- awesome-cv.cls | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/awesome-cv.cls b/awesome-cv.cls index e1511cd..1bc1774 100644 --- a/awesome-cv.cls +++ b/awesome-cv.cls @@ -313,19 +313,20 @@ \vspace{-0.5mm} \headersocialstyle{ \ifthenelse{\isundefined{\@mobile}} - {}{\faMobile\ \@mobile} - \quad\textbar\quad + {} + {\faMobile\ \@mobile \quad\textbar\quad} \ifthenelse{\isundefined{\@email}} - {}{\href{mailto:\@email}{\faEnvelope\ \@email}} - \quad\textbar\quad + {} + {\href{mailto:\@email}{\faEnvelope\ \@email} \quad\textbar\quad} \ifthenelse{\isundefined{\@homepage}} - {}{\href{http://\@homepage}{\faHome\ \@homepage}} - \quad\textbar\quad + {} + {\href{http://\@homepage}{\faHome\ \@homepage} \quad\textbar\quad} \ifthenelse{\isundefined{\@github}} - {}{\href{http://github.com/\@github}{\faGithubSquare\ \@github}} - \quad\textbar\quad + {} + {\href{http://github.com/\@github}{\faGithubSquare\ \@github} \quad\textbar\quad} \ifthenelse{\isundefined{\@linkedin}} - {}{\href{http://www.linkedin.com/in/\@linkedin}{\faLinkedinSquare\ \@linkedin}} + {} + {\href{http://www.linkedin.com/in/\@linkedin}{\faLinkedinSquare\ \@linkedin}} } \\ \end{center} } From c1b93205cdad96c06c068cfe3ad0e59bbf442be3 Mon Sep 17 00:00:00 2001 From: Stefano Kowalke Date: Fri, 13 Nov 2015 09:37:42 +0100 Subject: [PATCH 2/2] Add Twitter and Skype as social contacts --- awesome-cv.cls | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/awesome-cv.cls b/awesome-cv.cls index 1bc1774..dc7013c 100644 --- a/awesome-cv.cls +++ b/awesome-cv.cls @@ -249,6 +249,14 @@ % Usage: \name{} \newcommand*{\position}[1]{\def\@position{#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 mobile (optional) % Usage: \mobile{} \newcommand*{\mobile}[1]{\def\@mobile{#1}} @@ -312,6 +320,12 @@ } \\ \vspace{-0.5mm} \headersocialstyle{ + \ifthenelse{\isundefined{\@twitter}} + {} + {\faTwitter\ \@twitter \quad\textbar\quad} + \ifthenelse{\isundefined{\@skype}} + {} + {\faSkype\ \@skype \quad\textbar\quad} \ifthenelse{\isundefined{\@mobile}} {} {\faMobile\ \@mobile \quad\textbar\quad}