Corrects a bug introduced in v0.13 when no \photo is used in the classic style
This commit is contained in:
@ -132,15 +132,15 @@
|
|||||||
\ifnum\maketitlenamemaxwidth<\maketitlenamefullwidth\setlength{\maketitlenamewidth}{\maketitlenamemaxwidth}\else\setlength{\maketitlenamewidth}{\maketitlenamefullwidth}\fi
|
\ifnum\maketitlenamemaxwidth<\maketitlenamefullwidth\setlength{\maketitlenamewidth}{\maketitlenamemaxwidth}\else\setlength{\maketitlenamewidth}{\maketitlenamefullwidth}\fi
|
||||||
% other lengths
|
% other lengths
|
||||||
\newlength{\maketitlepicturewidth}
|
\newlength{\maketitlepicturewidth}
|
||||||
\setlength{\maketitlepicturewidth}{\@photowidth}
|
|
||||||
\newlength{\maketitledetailswidth}
|
\newlength{\maketitledetailswidth}
|
||||||
% recompute theme-specific lengths, called by class to recompute all lengths
|
% recompute theme-specific lengths, called by class to recompute all lengths
|
||||||
\renewcommand*{\recomputethemelengths}{%
|
\renewcommand*{\recomputethemelengths}{%
|
||||||
\setlength{\maketitledetailswidth}{\textwidth}%
|
\setlength{\maketitledetailswidth}{\textwidth}%
|
||||||
\addtolength{\maketitledetailswidth}{-\maketitlenamewidth}%
|
\addtolength{\maketitledetailswidth}{-\maketitlenamewidth}%
|
||||||
\ifthenelse{\lengthtest{\maketitlepicturewidth=0pt}}%
|
\ifthenelse{\isundefined{\@photo}}%
|
||||||
{}%
|
{}%
|
||||||
{\addtolength{\maketitledetailswidth}{-\separatorcolumnwidth}%
|
{\setlength{\maketitlepicturewidth}{\@photowidth}
|
||||||
|
\addtolength{\maketitledetailswidth}{-\separatorcolumnwidth}%
|
||||||
\addtolength{\maketitledetailswidth}{-\maketitlepicturewidth}}}
|
\addtolength{\maketitledetailswidth}{-\maketitlepicturewidth}}}
|
||||||
\recomputethemelengths
|
\recomputethemelengths
|
||||||
\newif\if@firstdetailselement\@firstdetailselementtrue
|
\newif\if@firstdetailselement\@firstdetailselementtrue
|
||||||
|
|||||||
Reference in New Issue
Block a user