summaryrefslogtreecommitdiffstats
path: root/yaac-another-awesome-cv.cls
diff options
context:
space:
mode:
authoralcysec <alcysec@users.noreply.github.com>2018-10-12 19:22:01 +0300
committerGitHub <noreply@github.com>2018-10-12 19:22:01 +0300
commitb22b437093cbcda52f92a743d667cdd3685cc6e1 (patch)
treeb8e8f838154782af120374e538a5a891445252f2 /yaac-another-awesome-cv.cls
parentd1a1539eb795b2d4ab5625fe278b4db726e6c717 (diff)
downloadcv-b22b437093cbcda52f92a743d667cdd3685cc6e1.tar.gz
cv-b22b437093cbcda52f92a743d667cdd3685cc6e1.tar.bz2
cv-b22b437093cbcda52f92a743d667cdd3685cc6e1.tar.xz
cv-b22b437093cbcda52f92a743d667cdd3685cc6e1.zip
Header icons aligned
Diffstat (limited to 'yaac-another-awesome-cv.cls')
-rwxr-xr-xyaac-another-awesome-cv.cls24
1 files changed, 15 insertions, 9 deletions
diff --git a/yaac-another-awesome-cv.cls b/yaac-another-awesome-cv.cls
index 4b75448..0bf2eaf 100755
--- a/yaac-another-awesome-cv.cls
+++ b/yaac-another-awesome-cv.cls
@@ -73,6 +73,7 @@
\RequirePackage{tikz}
\RequirePackage[skins]{tcolorbox}
\RequirePackage{fancyhdr}
+\RequirePackage{xparse}
\DeclareUnicodeCharacter{00E9}{\'{e}}
@@ -165,16 +166,21 @@
\newlength{\leftcolumn}
\setlength{\leftcolumn}{2.5cm}
+% Font Awesome icons box
+\NewDocumentCommand\faIconBox{m s O{solid}}{
+ \makebox[1.5em][c]{\IfBooleanTF{#2}{\csname fa#1\endcsname*}{\csname fa#1\endcsname}[#3]}
+}
+
% Font Awesome icons aliases
-\newcommand{\mailSymbol}{\faAt}
-\newcommand{\locationSymbol}{\faMapMarker*}
-\newcommand{\infoSymbol}{\faInfo}
-\newcommand{\linkedinSymbol}{\faLinkedinIn}
-\newcommand{\viadeoSymbol}{\faViadeo}
-\newcommand{\mobileSymbol}{\faMobile*}
-\newcommand{\githubSymbol}{\faGithub}
-\newcommand{\mediumSymbol}{\faMedium}
-\newcommand{\bitbucketSymbol}{\faBitbucket}
+\newcommand{\mailSymbol}{\faIconBox{At}}
+\newcommand{\locationSymbol}{\faIconBox{MapMarker}*}
+\newcommand{\infoSymbol}{\faIconBox{Info}}
+\newcommand{\linkedinSymbol}{\faIconBox{LinkedinIn}}
+\newcommand{\viadeoSymbol}{\faIconBox{Viadeo}}
+\newcommand{\mobileSymbol}{\faIconBox{Mobile}*}
+\newcommand{\githubSymbol}{\faIconBox{Github}}
+\newcommand{\mediumSymbol}{\faIconBox{Medium}}
+\newcommand{\bitbucketSymbol}{\faIconBox{Bitbucket}}
\newcommand\link[2]{\color{linkcolor}\href{#1}{#2}\color{Black} }
\newcommand\important[1]{\textbf #1}