From 52ef4af481056e2efffa16000a3f13f01226e14c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20W=C3=BCrfl?= Date: Sun, 23 Apr 2017 13:45:45 +0200 Subject: [PATCH] Add \dateofbirth command (#124) Closes #124 Closes #154 --- awesome-cv.cls | 11 +++++++++++ examples/coverletter.tex | 1 + examples/cv.tex | 1 + examples/resume.tex | 1 + 4 files changed, 14 insertions(+) diff --git a/awesome-cv.cls b/awesome-cv.cls index 565a4ec..9c74a18 100644 --- a/awesome-cv.cls +++ b/awesome-cv.cls @@ -281,6 +281,10 @@ % Usage: \email{} \newcommand*{\email}[1]{\def\@email{#1}} +% Defines writer's date of birth (optional) +% Usage: \dateofbirth{} +\newcommand*{\dateofbirth}[1]{\def\@dateofbirth{#1}} + % Defines writer's homepage (optional) % Usage: \homepage{} \newcommand*{\homepage}[1]{\def\@homepage{#1}} @@ -475,6 +479,13 @@ \ifbool{isstart}{\setbool{isstart}{false}}{\acvHeaderSocialSep}% \href{mailto:\@email}{\faEnvelope\acvHeaderIconSep\@email}% }% + \ifthenelse{\isundefined{\@dateofbirth}}% + {}% + {% + \ifbool{isstart}{\setbool{isstart}{false}}{\acvHeaderSocialSep}% + % \mbox prevents wrapping of elements% + \mbox{\faBirthdayCake\acvHeaderIconSep\@dateofbirth}% + }% \ifthenelse{\isundefined{\@homepage}}% {}% {% diff --git a/examples/coverletter.tex b/examples/coverletter.tex index e68b675..a2e7485 100644 --- a/examples/coverletter.tex +++ b/examples/coverletter.tex @@ -59,6 +59,7 @@ \mobile{(+82) 10-9030-1843} \email{posquit0.bj@gmail.com} +%\dateofbirth{January 1st, 1970} \homepage{www.posquit0.com} \github{posquit0} \linkedin{posquit0} diff --git a/examples/cv.tex b/examples/cv.tex index 3e40431..a24c452 100644 --- a/examples/cv.tex +++ b/examples/cv.tex @@ -59,6 +59,7 @@ \mobile{(+82) 10-9030-1843} \email{posquit0.bj@gmail.com} +%\dateofbirth{January 1st, 1970} \homepage{www.posquit0.com} \github{posquit0} \linkedin{posquit0} diff --git a/examples/resume.tex b/examples/resume.tex index c8ceb1b..0e3a980 100644 --- a/examples/resume.tex +++ b/examples/resume.tex @@ -59,6 +59,7 @@ \mobile{(+82) 10-9030-1843} \email{posquit0.bj@gmail.com} +%\dateofbirth{January 1st, 1970} \homepage{www.posquit0.com} \github{posquit0} \linkedin{posquit0}