Fix \makecvtitlenamewidth backward compatibility (github: closes #4)
This commit is contained in:
@ -21,7 +21,7 @@
|
||||
% adjust the page margins
|
||||
\usepackage[scale=0.75]{geometry}
|
||||
%\setlength{\hintscolumnwidth}{3cm} % if you want to change the width of the column with the dates
|
||||
%\setlength{\makecvtitlenamewidth}{10cm} % for the 'classic' style, if you want to force the width allocated to your name and avoid line breaks. be careful though, the length is normally calculated to avoid any overlap with your personal info; use this at your own typographical risks...
|
||||
%\setlength{\makecvheadnamewidth}{10cm} % for the 'classic' style, if you want to force the width allocated to your name and avoid line breaks. be careful though, the length is normally calculated to avoid any overlap with your personal info; use this at your own typographical risks...
|
||||
|
||||
% personal data
|
||||
\name{John}{Doe}
|
||||
|
||||
@ -97,6 +97,9 @@
|
||||
\newcommand*{\mobilesymbol}{\mobilephonesymbol}
|
||||
\newcommand*{\faxsymbol}{\faxphonesymbol}
|
||||
|
||||
% compatibility with versions <= 1.5.1
|
||||
\newcommand*{\makecvtitlenamewidth}{\makecvheadnamewidth} % only used in header variants 1 and 4, themself used by the classic and oldstyle styles
|
||||
|
||||
|
||||
\endinput
|
||||
|
||||
|
||||
@ -54,8 +54,7 @@
|
||||
%-------------------------------------------------------------------------------
|
||||
% lengths
|
||||
\@initializelength{\quotewidth}
|
||||
% optional makecvheadname width to force a certain width (if set/remains to 0pt, the width is calculated automatically)
|
||||
\@initializelength{\makecvheadnamewidth}
|
||||
\@initializelength{\makecvheadnamewidth}% optional makecvheadname width to force a certain width (if set/remains to 0pt, the width is calculated automatically)
|
||||
\renewcommand*{\recomputecvheadlengths}{%
|
||||
\setlength{\quotewidth}{0.65\textwidth}}
|
||||
|
||||
|
||||
@ -93,8 +93,6 @@
|
||||
%-------------------------------------------------------------------------------
|
||||
% lengths
|
||||
\@initializelength{\quotewidth}
|
||||
% optional makecvheadname width to force a certain width (if set/remains to 0pt, the width is calculated automatically)
|
||||
\@initializelength{\makecvheadnamewidth}
|
||||
\renewcommand*{\recomputecvheadlengths}{%
|
||||
\setlength{\makeheaddetailswidth}{\textwidth}%
|
||||
\setlength{\quotewidth}{0.65\textwidth}}
|
||||
|
||||
@ -49,6 +49,7 @@
|
||||
%-------------------------------------------------------------------------------
|
||||
% lengths
|
||||
\@initializelength{\quotewidth}
|
||||
\@initializelength{\makecvheadnamewidth}% optional makecvheadname width to force a certain width (if set/remains to 0pt, the width is calculated automatically)
|
||||
\setlength{\marginparwidth}{0\p@}
|
||||
\setlength{\marginparsep}{0\p@}
|
||||
\renewcommand*{\recomputecvheadlengths}{%
|
||||
@ -86,7 +87,9 @@
|
||||
\framebox{\includegraphics[width=\@photowidth]{\@photo}}}}%
|
||||
% name and optional title
|
||||
\newlength{\makecvheadpicturewidth}\settowidth{\makecvheadpicturewidth}{\usebox{\makecvheadpicturebox}}%
|
||||
\newlength{\makecvheadnamewidth}\setlength{\makecvheadnamewidth}{\textwidth-\makecvheadpicturewidth}%
|
||||
\ifthenelse{\lengthtest{\makecvheadnamewidth=0pt}}% check for dummy value (equivalent to \ifdim\makecvheadnamewidth=0pt)
|
||||
{\setlength{\makecvheadnamewidth}{\textwidth-\makecvheadpicturewidth}}%
|
||||
{}%
|
||||
\begin{minipage}[b]{\makecvheadnamewidth}%
|
||||
\namestyle{\@firstname\ \@lastname}%
|
||||
\ifthenelse{\equal{\@title}{}}{}{\\[1.25em]\titlestyle{\@title}}%
|
||||
|
||||
@ -48,8 +48,6 @@
|
||||
%-------------------------------------------------------------------------------
|
||||
% lengths
|
||||
\@initializelength{\quotewidth}
|
||||
% optional makecvheadname width to force a certain width (if set/remains to 0pt, the width is calculated automatically)
|
||||
\@initializelength{\makecvheadnamewidth}
|
||||
\renewcommand*{\recomputecvheadlengths}{%
|
||||
\setlength{\quotewidth}{0.65\textwidth}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user