I'm getting this error when trying to itemize
in a renewed \cventry
in a moderncv
:
Use of \@@array doesn't match its definition. \end{itemize}}
My modified cventry
looks like this:
\renewcommand*{\cventry}[7][.25em]{
\begin{tabular}{@{}>{\raggedleft}p{.2\textwidth-\tabcolsep}p{.8\textwidth-\tabcolsep}@{}}%
{\bfseries #2} & {\bfseries #3} \\%
{\itshape #5} & {\itshape #4}\\%
\ifthenelse{\equal{#7}{}}%
{\end{tabular}}%
{{} & {#7}\\\end{tabular}}%
\par\addvspace{#1}}
This is what I want to do:
\cventry{2016--2019}{Did this and that, including these tasks:%
\begin{itemize}%
\item 1;
\item 2, with sub-items:
\begin{itemize}%
\item Sub-item (a)
\item Sub-item (b)
\end{itemize}
\item item 3.
\end{itemize}}
}
I do callout \usepackage{array}
.
I tried the alternatives proposed by @gonzalo-medina in this post: Bulleted lists in moderncv cventry.
They didn't work for me. I keep on getting the same error. Maybe this happens as I am using a modified version of the \cventry
?
Update on @mensch request
Here the compilable snippet:
\documentclass[11pt,a4paper,sans]{moderncv}
\moderncvstyle{banking}
\moderncvcolor{blue}
\usepackage[scale=0.80]{geometry}
%__________________________________________________________________________________
% Customization:
%\usepackage{fontspec}%Rendering must be done with XeLatex, not with PDFLatex.
\renewcommand\rmdefault{cmr} %Sets roman default font to Computer Modern
\usepackage{microtype}
\usepackage{array}
%This is @gonzalo-medina's suggestion:
\usepackage{enumitem}
%The following resets the way of cv entries:
\usepackage{array}
\setlength{\tabcolsep}{1ex}
\renewcommand*{\cventry}[7][.25em]{
\begin{tabular}{@{}>{\raggedleft}p{.2\textwidth-\tabcolsep}p{.8\textwidth-\tabcolsep}@{}}%
{\bfseries #2} & {\bfseries #3} \\%
{\itshape #5} & {\itshape #4}\\%
\ifthenelse{\equal{#7}{}}%
{\end{tabular}}%
{{} & {#7}\\\end{tabular}}%
\par\addvspace{#1}}
%__________________________________________________________________________________
% personal data
\name{Carl}{Sagan}
\title{\large \textbf{Populists Buster}}
%----------------------------------------------------------------------------------
% content
%----------------------------------------------------------------------------------
\begin{document}
%\begin{CJK*}{UTF8}{gbsn} % to typeset your resume in Chinese using CJK
%----- resume ---------------------------------------------------------
\makecvtitle
\section{Experience}
\subsection{Vocational}
\cventry{year--year}{Job title}{Employer}{City}{}{General description no longer than 1--2 lines.\newline{}%
Detailed achievements:%
\begin{itemize}[label=\textbullet]%
\item Achievement 1;
\item Achievement 2, with sub-achievements:
\begin{itemize}%
\item Sub-achievement (a);
\item Sub-achievement (b), with sub-sub-achievements (don't do this!);
\begin{itemize}
\item Sub-sub-achievement i;
\item Sub-sub-achievement ii;
\item Sub-sub-achievement iii;
\end{itemize}
\item Sub-achievement (c);
\end{itemize}
\item Achievement 3.
\end{itemize}
}
\cventry{year--year}{Job title}{Employer}{City}{}{Description line 1\newline{}Description line 2}
\end{document}
I'm running it in the latest moderncv
package available from its CTAN repo here.
cventry
with respect to the default one? why the default one does not fit your need?\setlength{\hintscolumnwidth}{3cm}
is not the alignment you are looking for. Am I right?