From 5b3cccc32e5cab3ac78d6cd30a5cc129cd8efb8e Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Sun, 1 Jul 2018 20:56:20 +0800 Subject: class: Update tagline, keywords, etc. handling --- resume.cls | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) (limited to 'resume.cls') diff --git a/resume.cls b/resume.cls index b86347b..d3f249f 100644 --- a/resume.cls +++ b/resume.cls @@ -12,7 +12,7 @@ %% https://www.latextemplates.com/template/plasmati-graduate-cv %% -\ProvidesClass{resume}[2018/04/17 v2.2.1 Resume Class] +\ProvidesClass{resume}[2018/07/01 v2.3.0 Resume Class] \LoadClass{article} %% @@ -70,13 +70,14 @@ },% pdftitle={% \ifdef{\@zh}{% - 简历 | \@lastname{} \@firstname{} | \@tagline% + 简历 | \@lastname{} \@firstname{} + \ifdef{\@tagline}{| \@tagline}{}% }{% - Resume | \@firstname{} \@lastname{} | \@tagline% + Resume | \@firstname{} \@lastname{} + \ifdef{\@tagline}{| \@tagline}{}% }% },% - pdfsubject={\@tagline},% - pdfkeywords={\@keywords},% + pdfkeywords={\ifdef{\@keywords}{\@keywords}{}},% }% } \RequirePackage{hyperref} @@ -134,8 +135,8 @@ % Last-page style \def\ps@lastpage{% - \def\@oddfoot{\textcolor{lightgray}{\footnotesize\@fileinfo}\hfil}% - \def\@evenfoot{\textcolor{lightgray}{\footnotesize\@fileinfo}\hfil}% + \def\@oddfoot{\textcolor{gray}{\footnotesize\@fileinfo}\hfil}% + \def\@evenfoot{\textcolor{gray}{\footnotesize\@fileinfo}\hfil}% } \AtEndDocument{\thispagestyle{lastpage}} @@ -321,12 +322,14 @@ \begin{minipage}{\dimexpr\linewidth-\@photodiameter-2em} } \user{\@firstname}{\@lastname} - \smallskip \\ - \ifdef{\@taglineicon}{% - \resumetitle{\icon{\@taglineicon}\@tagline} - }{% - \resumetitle{\@tagline} - } + \ifdef{\@tagline}{% + \smallskip \\ + \ifdef{\@taglineicon}{% + \resumetitle{\icon{\@taglineicon}\@tagline} + }{% + \resumetitle{\@tagline} + } + }{} \smallskip \\ \@socialinfo \end{minipage} -- cgit v1.2.2