From d7e0e4966eb98cc755abce8ca1a75b896bf76f5f Mon Sep 17 00:00:00 2001 From: AlexVonB Date: Tue, 10 Dec 2024 23:24:40 +0100 Subject: [PATCH] Allowing long names to break in the cv title again (#221) * allow long names in titles to break Until now, a `~` (non breaking space) connects first and last name in the cv title. This prevents long names to break correctly. This commit replaces the space with `\ `, a space that allows breaking. Fixes #220 * added changelog entry * removed non-breaking space in names from other headlines, too --- CHANGELOG | 1 + moderncvheadi.sty | 2 +- moderncvheadiii.sty | 2 +- moderncvheadiv.sty | 2 +- moderncvheadv.sty | 2 +- moderncvheadvi.sty | 2 +- 6 files changed, 6 insertions(+), 5 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 6531a79..b834048 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -4,6 +4,7 @@ version next - Fix spacing between first and last name (#204) - Include social icons in cover letter for styles classic, fancy and banking (#170) - Update Oldstyle to use symbols instead of marvosym (#209) +- Fix spacing between first and last name again (#220) version 2.4.1 (18 Jul 2024) - Fix commons/colors.tex not found in package (#194) diff --git a/moderncvheadi.sty b/moderncvheadi.sty index 33ed6b1..2a59a1e 100644 --- a/moderncvheadi.sty +++ b/moderncvheadi.sty @@ -120,7 +120,7 @@ \begin{minipage}[b]{\makecvheadnamewidth}% \if@left\raggedright\fi% \if@right\raggedleft\fi% - \firstnamestyle{\@firstname~}\lastnamestyle{\@lastname}% + \firstnamestyle{\@firstname\ }\lastnamestyle{\@lastname}% \ifthenelse{\equal{\@title}{}}{}{\\[1.25em]\titlestyle{\@title}}% \end{minipage}}% % raise boxes if top option is set diff --git a/moderncvheadiii.sty b/moderncvheadiii.sty index fa80e59..6919dee 100644 --- a/moderncvheadiii.sty +++ b/moderncvheadiii.sty @@ -83,7 +83,7 @@ \parbox{\makeheaddetailswidth}{% \centering% % name and title - \firstnamestyle{\@firstname~}\lastnamestyle{\@lastname}% + \firstnamestyle{\@firstname\ }\lastnamestyle{\@lastname}% \ifthenelse{\equal{\@title}{}}{}{\titlestyle{~|~\@title}}% \isundefined doesn't work on \@title, as LaTeX itself defines \@title (before it possibly gets redefined by \title) % optional detailed information \if@details{% diff --git a/moderncvheadiv.sty b/moderncvheadiv.sty index eb12d40..c856a95 100644 --- a/moderncvheadiv.sty +++ b/moderncvheadiv.sty @@ -93,7 +93,7 @@ {\setlength{\makecvheadnamewidth}{\textwidth-\makecvheadpicturewidth}}% {}% \begin{minipage}[b]{\makecvheadnamewidth}% - \firstnamestyle{\@firstname~}\lastnamestyle{\@lastname}% + \firstnamestyle{\@firstname\ }\lastnamestyle{\@lastname}% \ifthenelse{\equal{\@title}{}}{}{\\[1.25em]\titlestyle{\@title}}% \end{minipage}% % optional photo diff --git a/moderncvheadv.sty b/moderncvheadv.sty index 5c25083..2431ab3 100644 --- a/moderncvheadv.sty +++ b/moderncvheadv.sty @@ -94,7 +94,7 @@ % name and optional title \newlength{\makecvheadpictureboxskip}% \setlength{\makecvheadpictureboxskip}{\totalheightof{\usebox{\makecvheadpicturebox}}}% - \firstnamestyle{\@firstname~}\lastnamestyle{\@lastname}% + \firstnamestyle{\@firstname\ }\lastnamestyle{\@lastname}% \ifthenelse{\equal{\@title}{}}{ \ifthenelse{\isundefined{\@quote}}% {}% diff --git a/moderncvheadvi.sty b/moderncvheadvi.sty index 2b6971e..405fdf2 100644 --- a/moderncvheadvi.sty +++ b/moderncvheadvi.sty @@ -55,7 +55,7 @@ \setlength{\makeheaddetailswidth}{\textwidth}% % name and title \if@left\hfill\fi% - \firstnamestyle{\@firstname~}\lastnamestyle{\@lastname}% + \firstnamestyle{\@firstname\ }\lastnamestyle{\@lastname}% \ifthenelse{\equal{\@title}{}}{}{\titlestyle{~|~\@title}}\\[-.35em]% \isundefined doesn't work on \@title, as LaTeX itself defines \@title (before it possibly gets redefined by \title) % rule {\color{bodyrulecolor}\rule{\textwidth}{.25ex}}}