我想要制作看起来像这样的定理,但具有更好的间距:
1-1 定理 ( 定理名称 ) 定理的陈述。
以下是我目前拥有的:
\documentclass{article}
\usepackage{amsthm}
\newtheoremstyle{theorem}
{1.5em} % Space above
{} % Space below
{\itshape} % Body font
{} % Indent amount
% Indent amount: empty = no indent; \parindent = normal paragraph indent
{\bfseries\itshape} % Theorem head font
{} % Punctuation after theorem head
{1em} % Space after theorem head
% Space after theorem head: { } = normal interword space; \newline = line break
{\thmnumber{#2}\thmname{\hspace{1em}#1}\thmnote{ \textup({#3}\textup)}}
% Theorem head spec (can be left empty, meaning `normal`)
\theoremstyle{theorem}
\newtheorem{thm}{Theorem}[section]
\begin{document}
\begin{thm}[Theorem name] Statement of the theorem.
\end{thm}
\end{document}
我只是不知道如何将点改为破折号。
答案1
正如评论中提到的,您可以简单地使用它:
\newtheoremstyle{theorem}
{1.5em} % Space above
{} % Space below
{\itshape} % Body font
{} % Indent amount
% Indent amount: empty = no indent; \parindent = normal paragraph indent
{\bfseries\itshape} % Theorem head font
{} % Punctuation after theorem head
{1em} % Space after theorem head
% Space after theorem head: { } = normal interword space; \newline = line break
{\thmnumber{#2}\thmname{\hspace{1em}#1}\thmnote{ \textup({#3}\textup)}}
% Theorem head spec (can be left empty, meaning `normal`)
\theoremstyle{theorem}
\newtheorem{thm}{Theorem}[section]
\renewcommand{\thethm}{\thesection\ --\ \arabic{thm}}
这将创建如下内容:
重要的部分是这样的:
\renewcommand{\thethm}{\thesection\ --\ \arabic{thm}}
您还可以删除我放在那里的空格:
\renewcommand{\thethm}{\thesection--\arabic{thm}}
或者创建一些完全不同的东西:
\renewcommand{\thethm}{\thesection\ $\cdot$ \Roman{thm}}