mirror of
https://github.com/moderncv/moderncv.git
synced 2026-02-06 10:05:19 +01:00
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:
parent
6e315221ce
commit
edc3e409cf
5 changed files with 47 additions and 23 deletions
|
|
@ -137,11 +137,17 @@
|
|||
\rlap{\usebox{\makecvheaddetailsbox}}% \llap is used to suppress the width of the box, allowing overlap if the value of makecvheadnamewidth is forced
|
||||
\hfill%
|
||||
\usebox{\makecvheadnamebox}\fi%
|
||||
\\[2.5em]%
|
||||
% optional quote
|
||||
\ifthenelse{\isundefined{\@quote}}%
|
||||
{}%
|
||||
{{\centering\begin{minipage}{\quotewidth}\centering\quotestyle{\@quote}\end{minipage}\\[2.5em]}}%
|
||||
{\vspace{2.5em}}%
|
||||
{%
|
||||
\\[2.5em]%
|
||||
{%
|
||||
\centering%
|
||||
\begin{minipage}{\quotewidth}%
|
||||
\centering%
|
||||
\quotestyle{\@quote}%
|
||||
\end{minipage}\\[2.5em]}}%
|
||||
\par}% to avoid weird spacing bug at the first section if no blank line is left after \makecvhead
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -158,15 +158,18 @@
|
|||
\titlestyle{\MakeLowercase\@title}%
|
||||
\else%
|
||||
\titlestyle{\@title}\fi%
|
||||
}\\[2.5em]%
|
||||
}
|
||||
% optional quote
|
||||
\ifthenelse{\isundefined{\@quote}}%
|
||||
{}%
|
||||
{{\null\hfill%
|
||||
{\vspace{2.5em}}%
|
||||
{%
|
||||
\\[2.5em]%
|
||||
{%
|
||||
\centering%
|
||||
\begin{minipage}{\quotewidth}%
|
||||
\centering%
|
||||
\quotestyle{\@quote}%
|
||||
\end{minipage}\hfill\null\\[2.5em]}}%
|
||||
\end{minipage}\\[2.5em]}}%
|
||||
\par}% to avoid weird spacing bug at the first section if no blank line is left after \maketitle
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@
|
|||
\collectionloop{socials}{% the key holds the social type (=symbol command prefix), the item holds the link
|
||||
\addtomakeheaddetails{\csname\collectionloopkey socialsymbol\endcsname\collectionloopitem}}%
|
||||
\ifthenelse{\isundefined{\@extrainfo}}{}{\addtomakeheaddetails{\@extrainfo}}%
|
||||
\flushmakeheaddetails}\fi}\\[2.5em]}% need to force a \par after this to avoid weird spacing bug at the first section if no blank line is left after \makehead
|
||||
\flushmakeheaddetails}\fi}}% need to force a \par after this to avoid weird spacing bug at the first section if no blank line is left after \makehead
|
||||
|
||||
|
||||
%-------------------------------------------------------------------------------
|
||||
|
|
@ -118,8 +118,15 @@
|
|||
\makehead%
|
||||
% optional quote
|
||||
\ifthenelse{\isundefined{\@quote}}%
|
||||
{}%
|
||||
{{\centering\begin{minipage}{\quotewidth}\centering\quotestyle{\@quote}\end{minipage}\\[2.5em]}}%
|
||||
{\vspace{2.5em}}%
|
||||
{%
|
||||
\\[2.5em]%
|
||||
{%
|
||||
\centering%
|
||||
\begin{minipage}{\quotewidth}%
|
||||
\centering%
|
||||
\quotestyle{\@quote}%
|
||||
\end{minipage}\\[2.5em]}}%
|
||||
\par}% to avoid weird spacing bug at the first section if no blank line is left after \maketitle}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -279,4 +279,3 @@ Albert Einstein discovered that $e=mc^2$ in 1905.
|
|||
|
||||
|
||||
%% end of file `template.tex'.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue