diff --git a/CHANGELOG b/CHANGELOG index 9676618..56af016 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,6 @@ version next - Change moderncvcolors.tex to a .sty file for MikTeX compatibility (#199) +- 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)