0

I'm using moderncv document class with classic style. Instead of the normal formatting that I receive for

\documentclass{moderncv}
\moderncvstyle{classic}
\name{first}{last}


\begin{document}
\makecvhead

\cventry{09/2016 - 05/2017}{Tutor in Mathematics and Physics}{Personal tutor for High School Students}{NY, USA}{}{} 
\end{document} 

which is the following:enter image description here

I would like to have the cv entries with a new line after the "title" (in this case "Tutor in Mathematics and Physics").

I tried with \hfill and so but it doesn't work. But also checking: Understanding \cventry from moderncv I couldn't find where \cventry is defined.

Thanks in advance

1
  • 1
    Please don't post code fragments. Instead edit your question to include a minimal compilable document that people can play with.
    – Alan Munn
    Jun 17, 2020 at 20:40

1 Answer 1

2

Probably the following does something closer to the expected output:

enter image description here

\documentclass{moderncv}
\moderncvstyle{classic}
\name{first}{last}

\renewcommand*{\cventry}[7][.25em]{%
  \cvitem[#1]{#2}{%
    {\bfseries#3}%
    \ifthenelse{\equal{#4}{}}{}{,\newline {\slshape#4}}%
    \ifthenelse{\equal{#5}{}}{}{, #5}%
    \ifthenelse{\equal{#6}{}}{}{, #6}%
    .\strut%
    \ifx&#7&%
    \else{\newline{}\begin{minipage}[t]{\linewidth}\small#7\end{minipage}}\fi}}

\begin{document}
\makecvhead

\cventry{09/2016 - 05/2017}{Tutor in Mathematics and Physics}{Personal tutor for High School Students}{NY, USA}{}{} 
\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.