From f9a2d84b301d250908af8aa3681b11d698cd5868 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Sat, 17 Aug 2019 11:34:06 +0800 Subject: 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. --- resume.cls | 12 +++++++----- 1 file 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 -- cgit v1.2.2