aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2024-12-05 12:49:14 +0800
committerAaron LI <aly@aaronly.me>2024-12-05 12:49:14 +0800
commit10c44067bd8d7a231759484a59d87d973fb690a0 (patch)
tree351b4405af95fa494211dd8fea460b3c8d05631e
parentb102be54f44377ab5e310a190f36c503d4e7b7a4 (diff)
downloadresume-10c44067bd8d7a231759484a59d87d973fb690a0.tar.bz2
class: Clean up pdftitle and pdfauthor
-rw-r--r--resume.cls19
1 files changed, 7 insertions, 12 deletions
diff --git a/resume.cls b/resume.cls
index 74a77a3..738a0c9 100644
--- a/resume.cls
+++ b/resume.cls
@@ -64,20 +64,15 @@
\hypersetup{%
pdfborder={0 0 0},% No border around links
pdfauthor={%
- \ifdef{\@zh}{%
- \@lastname\@firstname%
- }{%
- \@firstname{} \@lastname%
- }%
+ \ifdef{\@zh}%
+ {\@lastname\@firstname}%
+ {\@firstname{} \@lastname}%
},%
pdftitle={%
- \ifdef{\@zh}{%
- 简历 | \@lastname\@firstname{}
- \ifdef{\@tagline}{| \@tagline}{}%
- }{%
- Resume | \@firstname{} \@lastname{}
- \ifdef{\@tagline}{| \@tagline}{}%
- }%
+ \ifdef{\@zh}%
+ {简历 | \@lastname\@firstname{}}%
+ {Resume | \@firstname{} \@lastname{}}%
+ \ifdef{\@tagline}{ | \@tagline}{}%
},%
pdfkeywords={\ifdef{\@keywords}{\@keywords}{}},%
}%