Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Is it possible to change the length or size of the box where the first text is placed in \cvitem{this text is too long}{...}

I doesn't fit and it looks kinda stupid. I get this message:

Overfull \hbox (6.6563pt too wide) in paragraph at lines 102--102

So is it possible to add 6.6563pt points of lenght to the first box in \cvitems entry.

MWE

\documentclass[11pt,a4paper,sans]{moderncv} 


\moderncvstyle{classic}                           
\moderncvcolor{blue}                               

\usepackage[scale=0.75]{geometry}

\name{John}{Doe}


\begin{document}
\section{Basic info}
\cvitem{this is fine}{derp}
\cvitem{verylongworddd}{Derpderpdep}
\end{document}

The second item is a bit too long and doesn't fit into the cvitem box. Can I make the word fit there and align better.

share|improve this question
    
Can you add a minimal example? –  egreg Mar 28 at 16:20
add comment

1 Answer 1

up vote 2 down vote accepted

The width of the left column is stored in the parameter

\hintscolumnwidth

The width of the right column is computed using this one, so you can do

\documentclass[11pt,a4paper,sans]{moderncv}
\usepackage[scale=0.75]{geometry}

\moderncvstyle{classic}
\moderncvcolor{blue}

\addtolength{\hintscolumnwidth}{6.7pt}

\name{John}{Doe}


\begin{document}
\section{Basic info}
\cvitem{this is fine}{derp}
\cvitem{verylongworddd}{Derpderpdep}

\end{document}

Use a bit more than the maximum overfull you get during the previous run. Hopefully this won't ruin paragraphs in the right hand column.

share|improve this answer
    
Worked perfectly! Thank you! –  wefwefwe Mar 28 at 18:11
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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