I have a resume that I'm building in LaTeX. On my resume, under my name is the contact / social personal info. It puts the social info on two lines, with github being on the second line by itself, even though there's enough room for the github on the same line as the rest.

Is there a way to force the personal info (excluding Name, Address) to be all on one line? I'm using ModernCV and banking style.

Here's an example of what I have:


% modern themes

% character encoding

% adjust the page margins

% personal data
\email{[email protected]}     




1 Answer 1


The header under moderncv's banking style is moderncvheaderiii.sty. This header is set within a fixed-width 0.8\textwidth block (hard-coded). You can patch \makehead to increase the header width; add the following to your preamble after \moderncvstyle{banking}:

\patchcmd{\makehead}% <cmd>
  {0.8\textwidth}% <search>
  {\textwidth}% <replace>
  {}{}% <success><failure>

enter image description here

The above patch increases the box width from 0.8\textwidth to \textwidth.


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .