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




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.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.