数字の間にダッシュがある定理

数字の間にダッシュがある定理

次のような定理を作りたいのですが、間隔を広く取りたいです。

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}}

ここに画像の説明を入力してください

関連情報