29

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?

1
41

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}
1
  • @Gonzalo Medina shortlabels option saves a lot of writing! – hesham Oct 3 '18 at 19:56

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.