Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question
2  
Welcome to TeX.SE. –  Peter Grill Jun 7 '12 at 1:50
add comment

1 Answer

up vote 7 down vote accepted

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}
share|improve this answer
1  
Thank you very much. The solution worked perfectly. –  Amaru Jun 7 '12 at 1:45
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.