aboutsummaryrefslogtreecommitdiffstats
path: root/resume.cls
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-07-01 20:56:20 +0800
committerAaron LI <aly@aaronly.me>2018-07-01 20:56:20 +0800
commit5b3cccc32e5cab3ac78d6cd30a5cc129cd8efb8e (patch)
tree7ec2e08be00bffe9637dc56a654f106cc3246602 /resume.cls
parent8f4c5c02195416fdd6ca78040d07996cf922309e (diff)
downloadresume-5b3cccc32e5cab3ac78d6cd30a5cc129cd8efb8e.tar.bz2
class: Update tagline, keywords, etc. handling
Diffstat (limited to 'resume.cls')
-rw-r--r--resume.cls29
1 files changed, 16 insertions, 13 deletions
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}