Fix Underfull \hbox (badness 10000) warning in \makecvtitle (#162)

* Fix underfull \hbox warning in classic style

* Fix underfull \hbox warning in casual style

* Fix underfull \hbox warning in banking style

* Fix underfull \hbox warning in fancy style
This commit is contained in:
Tianyi Zheng 2023-06-04 03:22:34 -07:00 committed by GitHub
commit edc3e409cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 47 additions and 23 deletions

View file

@ -95,14 +95,23 @@
\namestyle{\@firstname\ \@lastname}%
\ifthenelse{\equal{\@title}{}}{
\ifthenelse{\isundefined{\@quote}}%
{}%
{\\[1.25em]\begin{minipage}{\quotewidth}\quotestyle{\@quote}\end{minipage}\\[2.5em]}
}{
\\[1.25em]\titlestyle{\@title}\\[2.5em]%
{}%
{%
\\[1.25em]%
\begin{minipage}{\quotewidth}%
\quotestyle{\@quote}%
\end{minipage}}%
}{%
\\[1.25em]%
\titlestyle{\@title}
% optional quote
\ifthenelse{\isundefined{\@quote}}%
{}%
{\begin{minipage}{\quotewidth}\quotestyle{\@quote}\end{minipage}\\[2.5em]}}}%
{\vspace{2.5em}}%
{%
\\[2.5em]%
\begin{minipage}{\quotewidth}%
\quotestyle{\@quote}
\end{minipage}}}}%
\par}% to avoid weird spacing bug at the first section if no blank line is left after \makecvhead
% underlying command to implement \makecvtitle, identical to \@cvitem from moderncvbodyv