Correct line spacing with multi-line names and titles

See https://tex.stackexchange.com/q/661729/113546
and https://github.com/xdanaux/moderncv/issues/99
This commit is contained in:
Pieter van Oostrum 2022-10-15 20:00:33 +02:00
commit febe25906b
5 changed files with 12 additions and 12 deletions

View file

@ -38,8 +38,8 @@
\renewcommand*{\quotefont}{\large\itshape}
% styles
\renewcommand*{\namestyle}[1]{{\namefont\textcolor{color0}{#1}}}
\renewcommand*{\titlestyle}[1]{{\titlefont\textcolor{color2}{#1}}}
\renewcommand*{\namestyle}[1]{{\namefont\textcolor{color0}{#1}\par}}
\renewcommand*{\titlestyle}[1]{{\titlefont\textcolor{color2}{#1}\par}}
\renewcommand*{\addressstyle}[1]{{\addressfont\textcolor{color2}{#1}}}
\renewcommand*{\quotestyle}[1]{{\quotefont\textcolor{color1}{#1}}}
@ -92,7 +92,7 @@
{}%
\begin{minipage}[b]{\makecvheadnamewidth}%
\namestyle{\@firstname\ \@lastname}%
\ifthenelse{\equal{\@title}{}}{}{\\[1.25em]\titlestyle{\@title}}%
\ifthenelse{\equal{\@title}{}}{}{\vspace{1.25em}\titlestyle{\@title}}%
\end{minipage}%
% optional photo
\usebox{\makecvheadpicturebox}\\[2.5em]%