0

I'm trying to make my CV using modercv classic theme. When I type dates (Month-Year) I don't want that it makes a line break between Month and Year in the beginning of the line.

I'm using this LaTeX code:

\section{Projets Académiques}
  \cventry{Décembre2016}{Recherche Opérationnelle}{Problème du voyageur de 
  commerce avec Python}{}{}{\newline{}}

How can I fix it please?

2

The width of the "date" field within \cventry is dependent on the length \hintscolumnwidth. If you want things to stick together, you can use a tie (Décembre~2016), but this would cause overfull boxes:

enter image description here

\section{Projets Académiques}

\cventry
  {Décembre~2016}
  {Recherche Opérationnelle}
  {Problème du voyageur de commerce avec Python}
  {}{}{}

Instead, set the appropriate width within your preamble:

enter image description here

\documentclass{moderncv}

\usepackage[utf8]{inputenc}

\moderncvtheme[green]{classic}

\firstname{John}
\familyname{Doe}
\settowidth{\hintscolumnwidth}{Décembre 2016}

\begin{document}

\section{Projets Académiques}

\cventry
  {Décembre 2016}
  {Recherche Opérationnelle}
  {Problème du voyageur de commerce avec Python}
  {}{}{}

\end{document}

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.