This question is related to this one.
I want to have theorem headers alone on a line like this:
Theorem 1.
some text...
In the amsthm
documentation, they suggest doing this:
\newtheoremstyle{mystyle}{3pt}{3pt}{}{0pt}{\bfseries}{.}{\newline}{}
\theoremstyle{mystyle}
And it works... as long as the text of the theorem doesn't start with an itemize or an enumeration.
How can I make it work with amsthm
in this case?
And... why does this work this (strange) way?
Here is a minimal example to show the problem:
\documentclass{article}
\usepackage{amsthm}
\newtheoremstyle{mystyle} % Name
{3pt} % Space above
{3pt} % Space below
{} % Body font
{0pt} % Indent amount
{\bfseries} % Theorem head font
{.} % Punctuation after theorem head
{\newline} % Space after theorem head
{} % Theorem head spec (can be left empty, meaning 'normal')
\theoremstyle{mystyle}
\newtheorem{Example}{Example}
\begin{document}
\begin{Example}
This is on the next line.
\end{Example}
\begin{Example}
\begin{itemize}
\item But this isn't!
\item \ldots
\end{itemize}
\end{Example}
\begin{Example}~
\begin{itemize}
\item And now, there is too much vertical space above
\item \ldots
\end{itemize}
\end{Example}
\end{document}