숫자 사이에 대시가 있는 정리

숫자 사이에 대시가 있는 정리

나는 다음과 같은 정리를 만들고 싶지만 더 나은 간격을 두고 싶습니다.

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

여기에 이미지 설명을 입력하세요

관련 정보