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 :)

theoremenvironment : interaction withenumerate/itemize– barbara beeton Jun 09 '18 at 20:41