Theoreme mit Bindestrich zwischen Zahlen

Theoreme mit Bindestrich zwischen Zahlen

Ich möchte Theoreme aufstellen, die so aussehen, aber mit besserer Abstufung:

1-1 Satz ( Name des Theorems ) Formulierung des Theorems.

Folgendes habe ich derzeit:

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

Ich weiß nur nicht, wie ich den Punkt in einen Strich ändere.

Antwort1

Wie im Kommentar erwähnt, können Sie einfach Folgendes verwenden:

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

Das Ergebnis könnte etwa wie folgt aussehen:

Bildbeschreibung hier eingeben

Der wichtige Teil ist dieser:

\renewcommand{\thethm}{\thesection\ --\ \arabic{thm}}



Dort können Sie auch die Leerzeichen entfernen, die ich dort eingefügt habe:

\renewcommand{\thethm}{\thesection--\arabic{thm}}

Bildbeschreibung hier eingeben

Oder kreieren Sie etwas ganz anderes:

\renewcommand{\thethm}{\thesection\ $\cdot$ \Roman{thm}}

Bildbeschreibung hier eingeben

verwandte Informationen