From ddc7ca28fa62b933e72075b47c417868ea2289ab Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Thu, 5 Dec 2024 15:22:05 +0800 Subject: class: Fix error of undefined \@photo@width --- resume.cls | 9 +++++++-- 1 file 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 \\ -- cgit v1.2.2