aboutsummaryrefslogtreecommitdiffstats
path: root/resume.cls
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2024-12-05 15:22:05 +0800
committerAaron LI <aly@aaronly.me>2024-12-05 15:22:05 +0800
commitddc7ca28fa62b933e72075b47c417868ea2289ab (patch)
tree78af2fcc14482212c39fdf64b841cd6d4246d6c9 /resume.cls
parent938bd91e0b085ed3ecd3c27b957f59f035ffd826 (diff)
downloadresume-ddc7ca28fa62b933e72075b47c417868ea2289ab.tar.bz2
class: Fix error of undefined \@photo@width
Diffstat (limited to 'resume.cls')
-rw-r--r--resume.cls9
1 files changed, 7 insertions, 2 deletions
diff --git a/resume.cls b/resume.cls
index 5970fc2..6dab43f 100644
--- a/resume.cls
+++ b/resume.cls
@@ -12,7 +12,7 @@
%% https://www.latextemplates.com/template/plasmati-graduate-cv
%%
-\ProvidesClass{resume}[2024/12/05 v2.5.10 Resume Class]
+\ProvidesClass{resume}[2024/12/05 v2.5.11 Resume Class]
\LoadClass{article}
%%
@@ -315,8 +315,13 @@
% Render resume header
\newcommand*{\makeheader}{
+ \ifdef{\@photo@width}{
+ \def\@profile@width{\dimexpr \linewidth - \@photo@width - 1em}%
+ }{
+ \def\@profile@width{\linewidth}
+ }%
\ifdef{\@photo}{\@photo\hspace{1em}}{}%
- \begin{minipage}{\dimexpr \linewidth - \@photo@width - 1em}
+ \begin{minipage}{\@profile@width}
{\LARGE\bfseries\color{accentcolor} \@name}
\ifdef{\@tagline}{%
\medskip \\