# ModernCV banking style default space between address and phone

Moderncv has a line of empty space between address and phone/email, like this:

MWE:

\documentclass[12pt]{moderncv}
\moderncvstyle{banking}
\name{Sherlock}{Holmes}
\phone[mobile] {+44~(0)71234 00000}    % Your mobile phone number
\email{superdetective@mail.com}
\begin{document}
\makecvtitle
\end{document}

How do I remove/decrease that space by shifting the phone and email line up?

For the current version of moderncv you can use the following "hack". But please keep an eye on the version number moderncv.cls 2015/07/28 v2.0.0 modern curriculum vitae and letter document class. If the version changes it could be that this code can't work longer ...

In line 21 of the following MWE (marked with <===============) you see the code:

In the original file moderncvheadiii.sty in line 91 you will find:

The changing of \\ to \par\vspace{-\baselineskip} gives the result you want.

BTW: I would not do this, the cv looks better with the space, I think.

Complete code:

\listfiles
\documentclass[12pt]{moderncv}
\moderncvstyle{banking}

\makeatletter
\hfil%
\centering%
% name and title
\namestyle{\@firstname~\@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{%
\collectionloop{phones}{% the key holds the phone type (=symbol command prefix), the item holds the number
\collectionloop{socials}{% the key holds the social type (=symbol command prefix), the item holds the link
\makeatother

\name{Sherlock}{Holmes}
\phone[mobile] {+44~(0)71234 00000}    % Your mobile phone number
\email{superdetective@mail.com}
\begin{document}
\makecvtitle
\end{document}

Result:

A second way is to use command patchcmd of package etoolbox to change the line showed above.

The code for \patchcmd is (\makeatletter and \makeatother are needed because @ is used in the searched line):

\makeatletter
}{%failure
}
\makeatother

Then you have the complete MWE:

\documentclass[12pt]{moderncv}
\moderncvstyle{banking}

\makeatletter
}{%failure
}
\makeatother

\name{Sherlock}{Holmes}