2

Is there a way to make an enumerated list in moderncv that is formatted similar to \cvlistitem? I tried just using a regular \begin{enumerate} ... \end{enumerate} but then the list is aligned too far to the left rather than being aligned with the section headers as \cvlistitems are.

I saw a lot of other threads here about customizing bullets in moderncv but most or all deal with changing the bullet style; I couldn't find anything about changing the itemize-type list to an enumerate-type list.

Update: Here is an MWE:

\documentclass[10pt,legalpaper,roman]{moderncv}

\moderncvstyle{classic}
\moderncvcolor{blue}

\name{Art}{Vandelay}

\begin{document}

\makecvtitle

\section{Work History}

\cvlistitem {\LaTeX~salesperson}
\cvlistitem {Importer/exporter}

\begin{enumerate}
\item \LaTeX~salesperson
\item Importer/exporter
\end{enumerate}

\end{document}

enter image description here

I would like the enumerated list to be formatted like the bulleted list.

7
  • Could you post a minimal example code?
    – Bernard
    Commented Apr 1, 2017 at 0:47
  • 1
    If I understood your question correct than you can use \cvitem{}{% \begin{enumerate} \item \LaTeX~salesperson \item Importer/exporter \end{enumerate}% } Commented Apr 1, 2017 at 8:42
  • @MarcoDaniel Perfect, didn't realize it was that simple. If you write it up as an answer I'll accept it. Commented Apr 1, 2017 at 13:34
  • One more question -- what's the purpose of the % at the end of two of the lines? Commented Apr 1, 2017 at 13:38
  • 4
    I'm voting to close this question as off-topic because it is solved by comments
    – Mensch
    Commented Sep 3, 2017 at 19:08

1 Answer 1

1

I wound up doing the following, hacked from https://tex.stackexchange.com/a/139128/63847:

% customize the enumerate environments (i.e. enumerate, itemize, ...)
\usepackage{enumitem}
\setlist{nolistsep}

% A custom version of the enumerate environment that sets the appropriate left margin 
\newlist{cvenumerate}{enumerate}{1}
\setlist[cvenumerate]{label=\arabic*.,%
leftmargin=\hintscolumnwidth+\separatorcolumnwidth+\labelwidth+\labelsep}

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