1

I am trying to add a separation between the beginning of a theorem environment and an enumeration. I want this:

Theorem
 (1)
 (2)
 (3)

And not this:

Theorem (1)
 (2)
 (3)

I know a solution is using \leavevmode, but what I want to do is to automatically include this command inside my theorem environment, so I tried this:

\theoremstyle{definition}
\newtheorem*{demo}{Demostración:}
\BeforeBeginEnvironment{demo}{\begin{adjustwidth}{1cm}{1cm}}
\AtBeginEnvironment{demo}{\leavevmode}
\AfterEndEnvironment{demo}{\end{adjustwidth}}

But this is doing nothing. I mean, it doesn't give me an error, it just does nothing (but if I include \leavevmode after the \begin{demo} it works. I think I'm loading all the necessary packages.

Hope you can help me :)

Andrew Swann
  • 95,762

1 Answers1

2

You can do this with a new environment, built around a standard theorem.

Sample output

\documentclass{amsart}

\newtheorem{theorem}{Theorem}
\newenvironment{ltheorem}{\begin{theorem}\leavevmode}{\end{theorem}}

\begin{document}

\begin{ltheorem}
  \begin{enumerate}
  \item One
  \item Two
  \item Three
  \end{enumerate}
\end{ltheorem}

\end{document}
Andrew Swann
  • 95,762