aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2019-08-17 11:34:06 +0800
committerAaron LI <aly@aaronly.me>2019-08-17 11:59:38 +0800
commitf9a2d84b301d250908af8aa3681b11d698cd5868 (patch)
tree44fda08c8a1ae51e2f9709695316d3654b6284d1
parent7a741161d8944ac507238131afbbaa8bfd6ca8e6 (diff)
downloadresume-f9a2d84b301d250908af8aa3681b11d698cd5868.tar.bz2
class: Add '\iconsize' to adjust the icon size
For example, use '\iconsize{\Large}' in resume-{zh,en}.tex to enlarge icons relative to the text.
-rw-r--r--resume.cls12
1 files changed, 7 insertions, 5 deletions
diff --git a/resume.cls b/resume.cls
index 9247d40..4580d60 100644
--- a/resume.cls
+++ b/resume.cls
@@ -12,7 +12,7 @@
%% https://www.latextemplates.com/template/plasmati-graduate-cv
%%
-\ProvidesClass{resume}[2019/08/17 v2.4.5 Resume Class]
+\ProvidesClass{resume}[2019/08/17 v2.4.6 Resume Class]
\LoadClass{article}
%%
@@ -175,15 +175,17 @@
}
\newcommand*{\githublink}[2]{%
- \href{http://github.com/#1/#2}%
- {\githubSymbol{} #1/#2}%
+ \href{http://github.com/#1/#2}{\githubSymbol{} #1/#2}%
}
\newcommand*{\link}[2]{\textcolor{linkcolor}{\href{#1}{#2}}}
+\def\@iconsize{\normalsize}
+\newcommand*{\iconsize}[1]{\def\@iconsize{#1}}
+
\newcommand*{\icon}[1]{%
- \makebox[1em][c]{\textcolor{symbolcolor}{#1}}%
- \hspace{0.2em}%
+ {\@iconsize\makebox[1em][c]{\textcolor{symbolcolor}{#1}}}%
+ \hspace{0.2em}\strut%
}
% Test whether the command argument is given and is not empty