-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path99-references.tex
114 lines (92 loc) · 3.19 KB
/
99-references.tex
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
% Provides: Styling and names for in-document references such as theorems.
% Requires: /
\usepackage{hyperref}
% Yes, hyperref, you do nothing in draft mode, it’s ok.
\WarningFilter[default-disabled]{hyperref}{Draft mode}
\hypersetup{
unicode=true,
colorlinks=true, % style links by coloring them (instead of boxes)
pdfstartview=FitV,
}
\urlstyle{same}
\iftoggle{is-beamer}{}{
% Automatically add the type of whatever is being referenced by ‘\cref{…}’ or ‘\Cref{…}’, e.g., ‘Figure 1’
% Not available in beamer class
\usepackage{cleveref}
\iftoggle{21-theorems}{
% teaches cleverref how to name links to objects of a certain type
\iftoggle{02-language-english}{
% Define everything lowercase. \Cref can still be used to achieve upper case.
\crefname{definition}{definition}{definitions}
\crefname{proposition}{proposition}{propositions}
\crefname{lemma}{lemma}{lemmas}
\crefname{axiom}{axiom}{axioms}
\crefname{theorem}{theorem}{theorems}
\crefname{corollary}{corollary}{corollaries}
\crefname{problem}{problem}{problems}
\crefname{notation}{notation}{notations}
\crefname{terminology}{terminology}{terminologies}
\crefname{remark}{remark}{remarks}
\crefname{example}{example}{examples}
\crefname{proof}{proof}{proofs}
}{}
\iftoggle{02-language-german}{
\crefname{definition}{Definition}{Definitionen}
\crefname{proposition}{Proposition}{Propositionen}
\crefname{lemma}{Lemma}{Lemmata}
\crefname{axiom}{Axiom}{Axiome}
\crefname{theorem}{Satz}{Sätze}
\crefname{corollary}{Korollar}{Korollare}
\crefname{problem}{Problem}{Probleme}
\crefname{notation}{Notation}{Notationen}
\crefname{terminology}{Terminologie}{Terminologien}
\crefname{remark}{Anmerkung}{Anmerkungen}
\crefname{example}{Beispiel}{Beispiele}
\crefname{proof}{Beweis}{Beweise}
}{}
% By default cleveref determines a links type by looking at the counter.
% However, all my mdframed and newtheorem environments use the same counter ‘definition’.
% The following introduces a new type for each environment (how they are spelled out is handled above).
\let\oldproposition\proposition
\renewcommand{\proposition}{%
\crefalias{definition}{proposition}%
\oldproposition}
\let\oldlemma\lemma
\renewcommand{\lemma}{%
\crefalias{definition}{lemma}
\oldlemma}
\let\oldaxiom\axiom
\renewcommand{\axiom}{%
\crefalias{definition}{axiom}
\oldaxiom}
\let\oldtheorem\theorem
\renewcommand{\theorem}{%
\crefalias{definition}{theorem}
\oldtheorem}
\let\oldcorollary\corollary
\renewcommand{\corollary}{%
\crefalias{definition}{corollary}
\oldcorollary}
\let\oldproblem\problem
\renewcommand{\problem}{%
\crefalias{definition}{problem}
\oldproblem}
\let\oldnotation\notation
\renewcommand{\notation}{%
\crefalias{definition}{notation}
\oldnotation}
\let\oldterminology\terminology
\renewcommand{\terminology}{%
\crefalias{definition}{terminology}
\oldterminology}
\let\oldremark\remark
\renewcommand{\remark}{%
\crefalias{definition}{remark}
\oldremark}
\let\oldexample\example
\renewcommand{\example}{%
\crefalias{definition}{example}
\oldexample}
}{}
}
\toggletrue{99-references}