# Escape the ] character [duplicate]

Possible Duplicate:
Enumerated list with square brackets

Using the help of this answer, I am trying to create a list in which each item is numbered by [1], [2], etc.

\documentclass{article}
\usepackage{enumitem}
\begin{document}
\begin{enumerate}[label=[\arabic*]]
\item First item
\item Second item
\end{enumerate}
\end{document}


However, because the ] character signifies the end of the [label=, I'm getting lots of errors.

Is there a way to "escape" the ] character so that this does not happen? Or is there a better way to make this list in the first place?

-

## marked as duplicate by Werner, Thorsten, Ulrich Schwarz, Joseph Wright♦Apr 19 '12 at 6:40

You need to enclose the label within a {} as in label={[\arabic*]}:

\documentclass{article}
\usepackage{enumitem}
\begin{document}
\begin{enumerate}[label={[\arabic*]}]
\item First item
\item Second item
\end{enumerate}
\end{document}​

-
Another option, not requiring additional braces, is to use \lbrack, \rbrack as in \begin{enumerate}[label=\lbrack\arabic*\rbrack]. –  Gonzalo Medina Apr 19 '12 at 2:44
@GonzaloMedina Thanks! Peter's answer is more convenient to implement, but your solution more directly addresses the question I posed. I'm sure that if you turn it into an answer, you'll get some upvotes! :) –  jamaicanworm Apr 19 '12 at 3:57