3

I want to have sublists in my CV, like so:

enter image description here

possibly with more than one item. For instance, the first line being the thesis title and the second line the supervisor and its name. Suggestions?

MWE:

\documentclass[11pt,a4paper,sans]{moderncv}        
\moderncvstyle{classic}                    
\moderncvcolor{blue}                              
\usepackage[scale=0.75]{geometry}
\name{John}{Doe}
\title{Resumé title}
\begin{document}
\makecvtitle
\section{Education}
\cventry{2011--2014}{Degree}{Institution}{City}{\textit{Grade}}{Description}
\end{document}

1 Answer 1

3

Without much else to go by, perhaps the following suits your needs:

enter image description here

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

\let\oldcventry\cventry
\renewcommand{\cventry}{\par\addvspace{.5em}\oldcventry}
\newcommand{\cvsublistentry}[3][.25em]{%
  \hspace*{\dimexpr\hintscolumnwidth+\separatorcolumnwidth}%
  {\footnotesize\qquad\makebox[5em][r]{#2:} #3}\par}

\name{John}{Doe}
\title{Resum\'e title}

\begin{document}
\makecvtitle

\section{Education}

\cventry{2011--2014}{Degree}{Institution}{City}{\textit{Grade}}{Description}
\cvsublistentry{Supervisor}{Prof.\ Who Cares}
\cvsublistentry{Examiner}{Dr.\ Cares Somewhat}

%\medskip% Maybe add some more space here...

\cventry{2015--}{Degree}{Institution}{City}{\textit{Grade}}{Description}
\cvsublistentry{Supervisor}{Prof.\ Who Cares}
\cvsublistentry{Examiner}{Dr.\ Cares Somewhat}

\end{document}

\cvsublistentry uses some of the same techniques employed by \cventry (copied from there), with the added font/vertical spacing changes.

Depending on your usage, additional vertical spacing may be required if you don't like the gap between a \cvsublistentry and a subsequent \cventry.

8
  • Thanks. I need the words supervisor and examiner to be right-aligned though,and the ensuing Prof. and Dr. to be left-aligned. Also, I think it'd look a little nicer if slightly smaller fonts were used for sublists.
    – the_fox
    Mar 19, 2015 at 21:52
  • @StefanosAivazidis: See the updated answer. I've used \footnotesize, but you can adjust that. Same goes for virtually everything I added. :)
    – Werner
    Mar 19, 2015 at 21:57
  • Thank you. Can I control the space between supervisor and the name?
    – the_fox
    Mar 19, 2015 at 22:02
  • @StefanosAivazidis: Of course. In my definition I've used \makebox[.][.]{#2:} #3 which leaves a regular inter-word space between : and #3. You can change this to (say) \makebox[.][.]{#2:}\hspace{<len>}#3 where you supply <len>. <len>=1em is similar to \quad; <len>=2em is similar to \qquad. Otherwise you can specify what you want (even negative).
    – Werner
    Mar 19, 2015 at 22:08
  • 1
    @DiaaAbidou: Use \cvitem{supervisors}{\begin{tabular}[t]{@{}l@{}}Supervisor A \\ Supervisor B \end{tabular}}; output.
    – Werner
    Sep 13, 2017 at 0:39

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.