The following does not compile because of the [
after the \item
. I presume it is because LaTeX expects a ]
as per the \item[option
] syntax. However, I just want to insert the [
character into the text as the first character of the enumerated item.
\documentclass[oneside,12pt]{article}
\begin{document}
\begin{enumerate}
\item before
\item [ random text
\item after
\end{enumerate}
\end{document}
I would like LaTeX to generate a document:
before
[ random text
after
One way I've come up with is to put a \
in front of the [
, however I'd appreciate thoughts on the least invasive way to do this.
displaymath
environment.