Fix \makecvtitlenamewidth backward compatibility (github: closes #4)

This commit is contained in:
Xavier Danaux
2015-09-01 00:31:21 -07:00
parent c91b6ca77c
commit 5a6a8f59cf
6 changed files with 9 additions and 8 deletions

View File

@ -21,7 +21,7 @@
% adjust the page margins % adjust the page margins
\usepackage[scale=0.75]{geometry} \usepackage[scale=0.75]{geometry}
%\setlength{\hintscolumnwidth}{3cm} % if you want to change the width of the column with the dates %\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 % personal data
\name{John}{Doe} \name{John}{Doe}

View File

@ -97,6 +97,9 @@
\newcommand*{\mobilesymbol}{\mobilephonesymbol} \newcommand*{\mobilesymbol}{\mobilephonesymbol}
\newcommand*{\faxsymbol}{\faxphonesymbol} \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 \endinput

View File

@ -54,8 +54,7 @@
%------------------------------------------------------------------------------- %-------------------------------------------------------------------------------
% lengths % lengths
\@initializelength{\quotewidth} \@initializelength{\quotewidth}
% optional makecvheadname width to force a certain width (if set/remains to 0pt, the width is calculated automatically) \@initializelength{\makecvheadnamewidth}% optional makecvheadname width to force a certain width (if set/remains to 0pt, the width is calculated automatically)
\@initializelength{\makecvheadnamewidth}
\renewcommand*{\recomputecvheadlengths}{% \renewcommand*{\recomputecvheadlengths}{%
\setlength{\quotewidth}{0.65\textwidth}} \setlength{\quotewidth}{0.65\textwidth}}

View File

@ -93,8 +93,6 @@
%------------------------------------------------------------------------------- %-------------------------------------------------------------------------------
% lengths % lengths
\@initializelength{\quotewidth} \@initializelength{\quotewidth}
% optional makecvheadname width to force a certain width (if set/remains to 0pt, the width is calculated automatically)
\@initializelength{\makecvheadnamewidth}
\renewcommand*{\recomputecvheadlengths}{% \renewcommand*{\recomputecvheadlengths}{%
\setlength{\makeheaddetailswidth}{\textwidth}% \setlength{\makeheaddetailswidth}{\textwidth}%
\setlength{\quotewidth}{0.65\textwidth}} \setlength{\quotewidth}{0.65\textwidth}}

View File

@ -49,6 +49,7 @@
%------------------------------------------------------------------------------- %-------------------------------------------------------------------------------
% lengths % lengths
\@initializelength{\quotewidth} \@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{\marginparwidth}{0\p@}
\setlength{\marginparsep}{0\p@} \setlength{\marginparsep}{0\p@}
\renewcommand*{\recomputecvheadlengths}{% \renewcommand*{\recomputecvheadlengths}{%
@ -86,7 +87,9 @@
\framebox{\includegraphics[width=\@photowidth]{\@photo}}}}% \framebox{\includegraphics[width=\@photowidth]{\@photo}}}}%
% name and optional title % name and optional title
\newlength{\makecvheadpicturewidth}\settowidth{\makecvheadpicturewidth}{\usebox{\makecvheadpicturebox}}% \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}% \begin{minipage}[b]{\makecvheadnamewidth}%
\namestyle{\@firstname\ \@lastname}% \namestyle{\@firstname\ \@lastname}%
\ifthenelse{\equal{\@title}{}}{}{\\[1.25em]\titlestyle{\@title}}% \ifthenelse{\equal{\@title}{}}{}{\\[1.25em]\titlestyle{\@title}}%

View File

@ -48,8 +48,6 @@
%------------------------------------------------------------------------------- %-------------------------------------------------------------------------------
% lengths % lengths
\@initializelength{\quotewidth} \@initializelength{\quotewidth}
% optional makecvheadname width to force a certain width (if set/remains to 0pt, the width is calculated automatically)
\@initializelength{\makecvheadnamewidth}
\renewcommand*{\recomputecvheadlengths}{% \renewcommand*{\recomputecvheadlengths}{%
\setlength{\quotewidth}{0.65\textwidth}} \setlength{\quotewidth}{0.65\textwidth}}