更改顯示的定理編號

更改顯示的定理編號

在我的LaTeX文檔中,我使用了編號定理

\newtheorem{theorem}{Theorem}[section]
\begin{theorem}
......
\end{theorem}

定理的編號類似於「定理 2.1」。

我的問題是:怎麼才能擺脫最後的月經呢?我想印出“定理2.1”。

答案1

以下解決方案基於直接改編這個答案經過@egreg

在此輸入影像描述

\documentclass{article}
\usepackage{amsthm}
%% Create a new theorem style called 'PlainNoDot':
\newtheoremstyle{PlainNoDot}% name of the style to be used
  {\topsep}% measure of space to leave above the theorem. E.g.: 3pt
  {\topsep}% measure of space to leave below the theorem. E.g.: 3pt
  {\itshape}% name of font to use in the body of the theorem
  {}% measure of space to indent
  {\bfseries}% name of head font
  {}% punctuation between head and body: NONE <-- only diff. from default
  { }% space after theorem head; " " = normal interword space
  {\thmname{#1}\thmnumber{ #2}\thmnote{ (#3)}}
%% Switch the active theorem style to 'PlainNoDot':
\theoremstyle{PlainNoDot}
%% Start creating theorem-like environments:
\newtheorem{theorem}{Theorem}[section]

\begin{document}
\setcounter{section}{2} % just for this example
\begin{theorem} Bla bla bla. \end{theorem}
\end{document}

相關內容