28

If I compile the following:

\documentclass[]{article}
\usepackage{enumerate}
\usepackage{enumitem}

\begin{document}

\begin{enumerate}[1.]
    \item This is the first
    \item This is the second
\end{enumerate}

\end{document}

I get the error message:

Package enumitem Error: 1. undefined.

But if I compile the following:

\documentclass[]{article}
\usepackage{enumerate}
% \usepackage{enumitem}

\begin{document}

\begin{enumerate}[1.]
    \item This is the first
    \item This is the second
\end{enumerate}

\end{document}

It works fine. What am I missing when I load enumitem?

Amaru
  • 283

1 Answers1

43

You need to use the shortlabels option to have compatibility with the enumerate-like scheme for labels:

\documentclass[]{article}
\usepackage{enumerate}
\usepackage[shortlabels]{enumitem}

\begin{document}

\begin{enumerate}[1.]
    \item This is the first
    \item This is the second
\end{enumerate}

\end{document}

enter image description here

but I would suggest to load only enumitem with the shortlabels option:

\documentclass[]{article}
\usepackage[shortlabels]{enumitem}

\begin{document}

\begin{enumerate}[1.]
    \item This is the first
    \item This is the second
\end{enumerate}

\end{document}
Gonzalo Medina
  • 505,128