我用它\newtheoremstyle
来定义一个在标题后有换行符的定理样式。遵循模板这里,我有以下 MWE:
\documentclass{article}
\usepackage{amsthm}
\newtheoremstyle{custom}% <name>
{\topsep}% <space above>
{\topsep}% <space below>
{\itshape}% <body font>
{}% <indent amount>
{\bfseries}% <Theorem head font>
{.}% <punctuation after theorem head>
{\newline}% <space after theorem head> (default .5em)
{}% <Theorem head spec>
\theoremstyle{custom}
\newtheorem{thm}{Theorem}
\begin{document}
\begin{thm}[Knuth's Theorem]
\TeX is great.
\end{thm}
\end{document}
效果很好:
但如果我把定理的内容替换为
\begin{itemize}
\item \TeX is great.
\end{itemize}
然后换行符就消失了。
为什么会发生这种情况?我该如何解决?