diff options
author | Aaron LI <aly@aaronly.me> | 2024-12-05 15:22:05 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2024-12-05 15:22:05 +0800 |
commit | ddc7ca28fa62b933e72075b47c417868ea2289ab (patch) | |
tree | 78af2fcc14482212c39fdf64b841cd6d4246d6c9 /resume.cls | |
parent | 938bd91e0b085ed3ecd3c27b957f59f035ffd826 (diff) | |
download | resume-ddc7ca28fa62b933e72075b47c417868ea2289ab.tar.bz2 |
class: Fix error of undefined \@photo@width
Diffstat (limited to 'resume.cls')
-rw-r--r-- | resume.cls | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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 \\ |