From 913c0859efc13511ac7529777fb08880846a0d55 Mon Sep 17 00:00:00 2001 From: dilippuri Date: Tue, 9 Aug 2016 13:56:52 +0530 Subject: [PATCH] Add newcommand lastupdate to print last date of updation --- awesome-cv.cls | 15 +++++++++++---- examples/resume.tex | 3 ++- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/awesome-cv.cls b/awesome-cv.cls index 6569d46..deef398 100644 --- a/awesome-cv.cls +++ b/awesome-cv.cls @@ -10,7 +10,7 @@ % % Notes: % 1) This class file defines the structure and layout of the template file (cv.tex, resume.tex). -% 2) It has been written in such a way that under most circumstances you +% 2) It has been written in such a way that under most circumstances you % should not need to edit it. % % Class license: @@ -263,6 +263,10 @@ %------------------------------------------------------------------------------- % Commands for personal information %------------------------------------------------------------------------------- +% Define last update date +% Usage: \lastupdate{} +\newcommand*{\lastupdate}[1]{\def\@lastupdate{#1}} + % Define writer's name % Usage: \name{}{} % Usage: \firstname{} @@ -406,6 +410,9 @@ % Define a header for CV % Usage: \makecvheader \newcommand*{\makecvheader}{% + \begin{flushright} + \@lastupdate + \end{flushright} \begin{center} \headerfirstnamestyle{\@firstname}\headerlastnamestyle{{}\acvHeaderNameDelim\@lastname}% \\[\acvHeaderAfterNameSkip]% @@ -493,7 +500,7 @@ \fancyfoot{} \fancyfoot[L]{\footerstyle{#1}} \fancyfoot[C]{\footerstyle{#2}} - \fancyfoot[R]{\footerstyle{#3}} + \fancyfoot[R]{\footerstyle{#3}} } % Define a section for CV @@ -560,7 +567,7 @@ \begin{tabular*}{\textwidth}{@{\extracolsep{\fill}} L{\textwidth - 4.5cm} R{4.5cm}} \setlength\leftskip{0.2cm} \subentrytitlestyle{#2} & \ifthenelse{\equal{#1}{}} - {\subentrydatestyle{#3}}{} + {\subentrydatestyle{#3}}{} \ifthenelse{\equal{#1}{}} {} {\subentrypositionstyle{#1} & \subentrydatestyle{#3} \\} @@ -654,7 +661,7 @@ \ifthenelse{\isundefined{\@lettertitle}} {} {\lettertitlestyle{\@lettertitle} \\} - \lettertextstyle{\@letteropening} + \lettertextstyle{\@letteropening} } % Define a closing of the cover letter diff --git a/examples/resume.tex b/examples/resume.tex index 7199cdb..da476e3 100644 --- a/examples/resume.tex +++ b/examples/resume.tex @@ -51,11 +51,12 @@ % PERSONAL INFORMATION % Comment any of the lines below if they are not required %------------------------------------------------------------------------------- +\lastupdate{Last updated on \today} \name{Claud D.}{Park} \position{Software Engineer{\enskip\cdotp\enskip}Security Expert} \address{246-1002, Gwangmyeongmayrouge Apt. 86, Cheongna lime-ro, Seo-gu, Incheon-si, 404-180, Rep. of KOREA} -\mobile{(+82) 10-9030-1843} +\mobile{(+82) 10-9030-1843} \email{posquit0.bj@gmail.com} \homepage{www.posquit0.com} \github{posquit0}