On 09/25/2013 04:07 AM, Fabio S. wrote:

Hi,

I have a little problem with nested environments.

I want to enumerate statements in a theorem without any test before the enumeration, so that the latex should be something like

\begin{thm}
\begin{enumerate}
\item First statement
\item Second statement
\end{enumerate}
\end{thm}

You can guess: when I try to insert the enumerate environment, the theorem enviroment disappear. I can work around this inserting a forced space (Ctrl+Space), then I insert the enumerate environment, then I nest it inside the theorem environment.
The resulting latex looks like

\begin{thm}
~
\begin{enumerate}
\item First statement
\item Second statement
\end{enumerate}
\end{thm}

It works, but I am wondering there is a "clean" way to obtain the intended result.

No, that's the sort of trick you have to use. Unless you set "KeepEmpty" to 1 in your theorem environment, which would allow you not to put the ~.

Richard

Reply via email to