amsthm 下的标准定理环境有定理 n。我们怎么才能只有定理 n,而 n 后面没有标点符号呢?
答案1
您可以在以下位置找到默认参数https://tex.stackexchange.com/a/17555/4427
\newtheoremstyle{plain}
{\topsep} % ABOVESPACE
{\topsep} % BELOWSPACE
{\itshape} % BODYFONT
{0pt} % INDENT (empty value is the same as 0pt)
{\bfseries} % HEADFONT
{.} % HEADPUNCT
{5pt plus 1pt minus 1pt} % HEADSPACE
{} % CUSTOM-HEAD-SPEC
在此基础上定义你自己的定理样式。例如:
\documentclass{article}
\usepackage{amsthm}
\newtheoremstyle{plainnopunct}
{\topsep} % ABOVESPACE
{\topsep} % BELOWSPACE
{\itshape} % BODYFONT
{0pt} % INDENT (empty value is the same as 0pt)
{\bfseries} % HEADFONT
{} % HEADPUNCT
{5pt plus 1pt minus 1pt} % HEADSPACE
{} % CUSTOM-HEAD-SPEC
\newtheoremstyle{definitionnopunct}
{\topsep} % ABOVESPACE
{\topsep} % BELOWSPACE
{\upshape} % BODYFONT
{0pt} % INDENT (empty value is the same as 0pt)
{\bfseries} % HEADFONT
{} % HEADPUNCT
{5pt plus 1pt minus 1pt} % HEADSPACE
{} % CUSTOM-HEAD-SPEC
\theoremstyle{plainnopunct}
\newtheorem{theorem}{Theorem}
\theoremstyle{definitionnopunct}
\newtheorem{definition}[theorem]{Definition}
\begin{document}
\begin{theorem}
This is a theorem statement.
\end{theorem}
\begin{definition}
This is a \emph{definition}.
\end{definition}
\begin{theorem}[Attribution]
This is a theorem statement.
\end{theorem}
\end{document}