Basically I want to do something like this
\newenvironment{myenv}
{\begin{enumerate}[\bfseries 1.]}
{\end{enumerate}}
It works if I leave out the argument ([\bfseries 1.]
), but with the argument, when I use my environment I get:
! LaTeX Error: Something's wrong--perhaps a missing \item.
How could I achieve this?
Doing the same thing with the package listings (\begin{lstlistings}
) doesn't even work without any arguments. This of course has something to do with how TeX works and I really don't understand its internals. Please illuminate me.