mirror of
https://github.com/moderncv/moderncv.git
synced 2026-02-06 10:05:19 +01:00
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
This commit is contained in:
parent
14deb59ddb
commit
d7e0e4966e
6 changed files with 6 additions and 5 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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{%
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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}}%
|
||||
{}%
|
||||
|
|
|
|||
|
|
@ -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}}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue