forked from vagdur/Kombinatorik-1MA020
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmathcommands.extratex
144 lines (111 loc) · 4.12 KB
/
mathcommands.extratex
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
\usepackage[activate={true,nocompatibility},final,tracking=true,kerning=true,spacing=true,factor=1100,stretch=10,shrink=10]{microtype}
\microtypecontext{spacing=nonfrench}
\usepackage{amsmath}%
\usepackage{amsfonts}%
\usepackage{amssymb}%
\usepackage{amsthm}
\usepackage{dsfont}
\usepackage[shortlabels]{enumitem}
\usepackage[swedish]{babel}
\usepackage{tabularx}
\usepackage{tikz}
\def\checkmark{\tikz\fill[scale=0.4](0,.35) -- (.25,0) -- (1,.7) -- (.25,.15) -- cycle;}
\usepackage{algorithm}
\usepackage{algpseudocode}
\usepackage{soulutf8}
\makeatletter
\newcommand{\ostar}{\mathbin{\mathpalette\make@circled\star}}
\newcommand{\make@circled}[2]{%
\ooalign{$\m@th#1\smallbigcirc{#1}$\cr\hidewidth$\m@th#1#2$\hidewidth\cr}%
}
\newcommand{\smallbigcirc}[1]{%
\vcenter{\hbox{\scalebox{0.77778}{$\m@th#1\bigcirc$}}}%
}
\makeatother
\newtheorem{theorem}{Teorem}%[subsection]
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{cor}[theorem]{Korollarium}
\newtheorem{conjecture}[theorem]{Hypotes}
\newtheorem{claim}[theorem]{Påstående}
\newtheorem{axiom}[theorem]{Axiom}
\theoremstyle{definition}
\newtheorem{definition}[theorem]{Definition}
\newtheorem{example}[theorem]{Exempel}
\newtheorem{xca}{Övning}
\newtheorem{solution}{Lösning}
\newtheorem*{tips}{Tips}
\theoremstyle{remark}
\newtheorem{remark}[theorem]{Kommentar}
% Absolutbelopp
\newcommand{\abs}[1]{{\left\lvert#1\right\rvert}}
% Avrunda uppåt och nedåt
\newcommand{\ceil}[1]{\left\lceil#1\right\rceil}
\newcommand{\floor}[1]{\left\lfloor#1\right\rfloor}
% Nyttiga mängder:
\newcommand{\R}{\mathbb{R}}
\newcommand{\Q}{\mathbb{Q}}
\newcommand{\N}{\mathbb{N}}
\newcommand{\Z}{\mathbb{Z}}
%\newcommand{\C}{\mathbb{C}}
\newcommand{\D}{\mathcal{D}}
\newcommand{\F}{\mathcal{F}}
%Fouriertransform:
\newcommand{\Fou}{\mathscr{F}}
\newcommand{\Hatf}{\mathscr{H}}
% Punkt som placeholder i funktioner:
\newcommand{\vardot}{\ \cdot\ }
% Väntevärde, varians, sannolikhet, kovarians, indikatorfunktion
\newcommand{\E}[1]{\mathbb{E}\left[ #1 \right]}
\newcommand{\Var}[1]{\operatorname{Var}\left(#1\right)}
\newcommand{\Prob}[1]{\mathbb{P}\left( #1 \right)}
\newcommand{\ProbP}{\mathbb{P}}
\newcommand{\Cov}[2]{\operatorname{Cov}\left(#1,#2\right)}
\newcommand{\ind}[1]{\mathds{1}_{\left\{#1\right\}}}
\newcommand{\indSet}[1]{\mathds{1}_{#1}}
\newcommand{\given}{\ \middle|\ }
\newcommand{\uniformIn}{\mathrel{\stackrel{\makebox[0pt]{\mbox{\normalfont\tiny u}}}{\in}}}
\newcommand{\e}{\mathfrak{e}}
\newcommand{\Pset}{\mathcal{P}}
\DeclareMathOperator{\Piv}{Piv}
%% Följande kod gör att \Re och \Im inte skrivs med gotiska kapitaler:
\renewcommand{\Re}[1]{\operatorname{Re}(#1)}
\renewcommand{\Im}[1]{\operatorname{Im}(#1)}
%% Skapar ett kommando för komplexa konjugatet och slutna höljet:
\newcommand{\conj}[1]{\overline{#1}}
\newcommand{\close}[1]{\overline{#1}}
%% Skapar ett kommando \grad för graden av ett polynom
\newcommand{\grad}[1]{\operatorname{grad}#1}
%% Massor av olika differentialer
\newcommand{\df}{\mathrm{d}f}
\newcommand{\dx}{\mathrm{d}x}
\newcommand{\dy}{\mathrm{d}y}
\newcommand{\dt}{\mathrm{d}t}
\newcommand{\du}{\mathrm{d}u}
\newcommand{\ds}{\mathrm{d}s}
\newcommand{\dmu}{\mathrm{d}\mu}
\newcommand{\dnu}{\mathrm{d}\nu}
% Samt för när man vill integrera dgamma eller något
\newcommand{\intd}{\mathrm{d}}
% Svag och vag konvergens av slumpvariabler:
\newcommand{\weakly}{\xrightarrow[]{\text{w.}}}
\newcommand{\vaguely}{\xrightarrow[]{\text{v.}}}
%Inre produkt och norm
\newcommand{\inpr}[2]{\langle#1,#2\rangle}
\newcommand{\norm}[1]{\left\lVert#1\right\rVert}
% Automorfigrupp, identitet, spår av en matris, signum, bild, och spann
\DeclareMathOperator{\Aut}{Aut}
\DeclareMathOperator{\Id}{Id}
\DeclareMathOperator{\tr}{tr}
\DeclareMathOperator{\sgn}{sgn}
\DeclareMathOperator{\im}{im}
\DeclareMathOperator{\lspan}{span}
\DeclareMathOperator{\Vol}{Vol}
% Mängddifferens
\newcommand{\symdiff}{\mathbin{\triangle}}
% Stirlingtal
\DeclareRobustCommand{\stirlingPart}{\genfrac\{\}{0pt}{}}
\DeclareRobustCommand{\stirlingCycle}{\genfrac{[}{]}{0pt}{}}
% Specialcell i tabell:
\newcommand{\specialcell}[2][c]{%
\begin{tabular}[#1]{@{}c@{}}#2\end{tabular}}