From d6d3ef7f1314f62f4179f490f5ff8d3f74d5126c Mon Sep 17 00:00:00 2001 From: daniel Date: Mon, 5 Aug 2024 17:58:13 +0200 Subject: [PATCH] in case no photo is set: define photoframewidth nevertheless (#202) --- CHANGELOG | 3 +++ moderncvheadvii.sty | 2 ++ 2 files changed, 5 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index bcfdad1..d35444c 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +version next +- Fix error when omitting the photo in contemporary style (#201) + version 2.4.1 (18 Jul 2024) - Fix commons/colors.tex not found in package (#194) diff --git a/moderncvheadvii.sty b/moderncvheadvii.sty index f0c259e..85653e9 100644 --- a/moderncvheadvii.sty +++ b/moderncvheadvii.sty @@ -145,6 +145,8 @@ % Users may define `\@moderncvheadBackground` for additional background decoration \ifthenelse{\isundefined{\@moderncvheadBackground}}{}{\@moderncvheadBackground} + % case with no photo: assure defined \@photoframewidth with 2pt + \ifthenelse{\isundefined{\@photo}}{\@initializelength{\@photoframewidth}\setlength{\@photoframewidth}{2pt}}{}% \path[draw,line width=\@photoframewidth] (head-bg.south west) edge[color=headhr!85!black] ([xshift=8em]head-bg.south west) ([xshift=8em]head-bg.south west) edge[color=headhr] ([xshift=-8em]head-bg.south east)