-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmh_theorems.sty
51 lines (46 loc) · 1.47 KB
/
mh_theorems.sty
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
%% mh_theorems -- theorem definitions by Michael Helmling.
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{mh_theorems}
\RequirePackage[amsmath,thmmarks]{ntheorem}
\def\theoremCountBasis{None}
\DeclareOption{chapter}{
\def\theoremCountBasis{chapter}
}
\DeclareOption{section}{
\def\theoremCountBasis{section}
}
\ProcessOptions
\relax
%Theorem-Umgebungen
%\swapnumbers
%\theoremheaderfont{\normalfont\bfseries\scshape}
\qedsymbol{\ensuremath{_\Box}}
%Aussagen in Kursiv
\theorembodyfont{\itshape}
\theoremseparator{:}
\ifthenelse{\equal{\theoremCountBasis}{None}}
{\theoremstyle{plain} % erst name dann zahl
\newtheorem{theorem}{Theorem}
}
{\theoremstyle{change} %erst Zahl dann Name
\newtheorem{theorem}{Theorem}[\theoremCountBasis]}
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{corollary}[theorem]{Corollary}
\newtheorem{algo}[theorem]{Algorithm}
\newtheorem{observation}[theorem]{Observation}
% Anderes in normaler Schrift, dafür mit Dreieck am Ende
\theorembodyfont{\normalfont}
\theoremsymbol{\ensuremath{_\lhd}} %ein Dreieck am Ende von Beispielen ist cool
\newtheorem{definition}[theorem]{Definition}
\newtheorem{example}[theorem]{Example}
\newtheorem{problem}[theorem]{Problem}
\newtheorem{remark}[theorem]{Remark}
\theoremstyle{nonumberplain}
\theoremseparator{.}
\theoremheaderfont{\normalfont\bfseries\itshape}
\theoremsymbol{\ensuremath{_\Box}}
\newtheorem{proof}{Proof}
\theoremseparator{}
\theoremindent0cm
\newtheorem{fakeproof}{}