Sunday, 19 May 2013

Description environment doesn't like ] in item [duplicate]

Description environment doesn't like ] in item [duplicate]

This question already has an answer here:
] inside an optional argument 1 answer
Consider the following MWE
\documentclass{standalone}
\begin{document}
\begin{description}
    \item[$[1]$] Some item
\end{description}
\end{document}
Notice especially the \item[$[1]$]. When I am now compiling using pdflatex I get the error message
! LaTeX Error: Something's wrong--perhaps a missing \item.
...
l.4     \item[$[1]
               $] Some item
It seems to me that the closing ] inside mathmode gets misinterpreted as a closing bracket for the \item.
Question: How can I overcome this issue?

No comments:

Post a Comment