在 Newtheoremstyle 中,为什么我不能将条目留空?

在 Newtheoremstyle 中,为什么我不能将条目留空?

以下代码抛出了“缺失数字,视为零”的错误。但它说这里我保留的定理样式中的任何参数都将被视为默认值。发生了什么?

\documentclass{article}
\usepackage{amsthm, amsmath}
\usepackage{enumitem}


\newtheoremstyle{MyTheorem}% name of the style to be used
  {}% measure of space to leave above the theorem. E.g.: 3pt
  {}% measure of space to leave below the theorem. E.g.: 3pt
  {}% name of font to use in the body of the theorem
  {}% measure of space to indent
  {}% name of head font
  {}% punctuation between head and body
  {}% space after theorem head; " " = normal interword space
  {}% Manually specify head


\theoremstyle{MyTheorem}
\newtheorem*{theorem}{Theorem}


\begin{document}

\begin{theorem}
Any $\ell \in L$ is a root of an irreducible polynomial $p \in F[x]$ which splits in $L$ into distinct linear factors.
\end{theorem}

\end{document}

答案1

的文档amsthm是 amsthdoc.pdf ( texdoc amsthm),其中第 9 页描述了此命令。

对空有特殊含义的论点用脚注注明,这不包括定理头之后的倒数第二个空间论点,因此将其留空就像\hspace{}是错误。

相关内容