
Я хочу сформулировать теоремы, которые будут выглядеть примерно так, но с лучшими интервалами:
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}}