I am creating my resume in moderncv style format.

I wanted to enter a period like (eg: 05/2017--09/2017), and should be in a straight line.

But with the code \cventry{05/2017--09/2017} I am getting it like the image below.

enter image description here

I tried to use \setlength{\hintscolumnwidth}{0.25\textwidth} but, then my contents on the right are also moving.

Could some one suggest how I can get my month and year typed in a straight line.

  • 1
    Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with \documentclass{...} and ending with \end{document}.
    – Astrinus
    Jun 13, 2018 at 9:58
  • 1
    Anyway, your text simply does not fit into the space. You should enlarge the page margin (with the geometry package) and set an appropriate \hintscolumnwidth length (that might be fixed, thus not depending on \textwidth).
    – Astrinus
    Jun 13, 2018 at 9:59
  • had the same problem. I set \setlength{\hintscolumnwidth}{3cm} and dropped the leading 0 from the months.
    – naphaneal
    Jun 13, 2018 at 12:27

1 Answer 1


The layout of command


is defined in two columns: the first column takes the date {05/2017--09/2017}, the second column takes all other text.

With command \setlength{\hintscolumnwidth}{3cm} you can define 3cm to be used for the first column. In your case 3cm solved your problem ...

Please see the following MWE


% moderncv themes
\moderncvstyle{classic} % casual, classic, banking, oldstyle and fancy



\setlength{\hintscolumnwidth}{3cm} % <==================================

% personal data
\title{Resumé title}
\address{street and number}{postcode city}{country}
\email{[email protected]}
\extrainfo{additional information}
\quote{Some quote}




\cventry{year--year}{Degree}{Institution--3}{City--4}{\textit{Grade}--5}{Description--6}  % arguments 3 to 6 can be left empty


and its result:

enter image description here

You must log in to answer this question.

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