-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathabbreviations1.tex
157 lines (134 loc) · 5.29 KB
/
abbreviations1.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
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
145
146
147
148
149
150
151
152
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% Mathematical Formulae
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\vec#1{\underline{#1}} % vector
\def\mat#1{{\mathbf #1}} % matrix
\def\rvec#1{\vec{\pmb{#1}}} % random vector
\def\rv#1{{\pmb{#1}}} % random variable
\def\Cov#1{\op{Cov}\!\braces{#1}} % covariance
\def\Var#1{\op{Var}\!\braces{#1}} % variance
\def\E#1{\op{E}\!\braces{#1}} % expectation value
\def\EHat#1{\hat{\op{E}}\!\braces{#1}} % expectation value with hat
\def\Menge#1{{\cal #1}} % set font
\def\trace#1{\op{trace}(#1)} % trace spur
\def\1_2{{\frac{1}{2}}} % 1/2 fraction half
\def\dd{{\,\op{d}}} % "d" operator for integration
\def\T{ ^\top } % Transpose
\def\op#1{{\operatorfont{#1}}} % operatorfont
\def\Gauss{{\cal N}}
\RequirePackage{amsmath}
\DeclareMathOperator{\rect}{rect}
\DeclareMathOperator{\I}{i}
\DeclareMathOperator{\real}{real}
\DeclareMathOperator{\sinc}{sinc}
\DeclareMathOperator{\erf}{erf}
\DeclareMathOperator{\xlog}{xlog}
\DeclareMathOperator{\Ei}{Ei}
\DeclareMathOperator{\diag}{diag}
\DeclareMathOperator{\EVOp}{E}
\DeclareMathOperator*{\argmin}{arg\,min}
\DeclareMathOperator*{\argmax}{arg\,max}
\def\ds{\displaystyle}
\def\ns{\textstyle}
\newcommand \NewN { \mathbb{N} } % Natural numbers
\newcommand \NewR { \mathbb{R} } % Real numbers
\newcommand \NewZ { \mathbb{Z} } % Integers
\newcommand \NewC { \mathbb{C} } % Complex numbers
\newcommand \NewS { \mathbb{S} } % Sphere
\newcommand \NewT { \mathbb{T} } % Torus
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% Cross references
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Use \cref{label} for everything: figures, equations, sections, ...
\RequirePackage[capitalise]{cleveref} % \cref{fig:abc}, \cref{eq:3}
% cleveref adaptions:
%\creflabelformat{equation}{#2(#1)#3} % #1: number; #2: href begin; #3: href end
\crefname{equation}{}{} % prefix
\crefname{figure}{Figure}{Figures} % figure prefix
%\crefname{paragraph}{Paragraph}{Paragraphs} % paragraph prefix
%\crefname{chapter}{Chapter}{Chapters} % chapter prefix
%\crefname{section}{Section}{Sections} % section prefix
%\crefname{appendix}{Appendix}{Appendices}
\crefname{subsubsubappendix}{Appendix}{Appendices}
%\crefname{lemma}{Lemma}{Lemmas}
%\crefname{theorem}{Theorem}{Theorems}
%\crefname{example}{Example}{Example}
% Compatibility
\def\Eq#1{\cref{#1}}
\def\Chap#1{\cref{#1}}
\def\Sec#1{\cref{#1}}
\def\SubSec#1{\cref{#1}}
\def\Ex#1{\cref{#1}}
\def\Fig#1{\cref{#1}}
\def\Tab#1{\cref{#1}}
\def\Alg#1{\cref{#1}}
\def\Line#1{\cref{#1}}
\def\Appendix#1{\cref{#1}}
\def\Def#1{\cref{#1}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Brackets
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand\mathoc[1]{\mathopen{}#1\mathclose{}} % Helper for correct spacing around parentheses
\newcommand\bk[2]{\langle #1,\; #2 \rangle} % \bk{a}{b} <a,b> (bra ket)
\newcommand\paren[1]{\mathoc{\left( #1 \right)}} % \paren{a} (a) (normal parentheses)
\newcommand\brackets[1]{\mathoc{\left[ #1 \right]}} % \brackets{a} [a] (square brackets)
\newcommand\braces[1]{\mathoc{\left\lbrace #1 \right\rbrace}} % \braces{a} {a}
\newcommand\abs[1]{\mathoc{\left| #1 \right|}} % \abs{a} |a|
\newcommand\abss[1]{\mathoc{\left\| #1 \right\|}} % \abss{a} ||a||
\newcommand\hint[1]{\quad \left\vert \; #1 \right.} % \hint{x^2} |hint (on the right of an equation)
\newcommand\ceil[1]{\mathoc{\left \lceil #1 \right \rceil}} % \ceil{a} ⌈a⌉
\newcommand\floor[1]{\mathoc{\left\lfloor #1 \right\rfloor}} % \ceil{a} ⌊a⌋
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Densities
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\fd#1#2{f_{{#1}}^{#2\!}} % \fd{k}{v}(v) apperas as f_k^v(v)
\def\fdp#1{\fd{#1}{\op{p}}} % prior fp
\def\fde#1{\fd{#1}{\op{e}}} % posterior fe
\def\fdL#1{\fd{#1}{\op{L}}} % likelihood fL
\def\fdT#1{\fd{#1}{\op{T}}} % transition density fT
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Figures
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Figure
% Usage: \Figure{width} {label} {filename} {caption}
% Generating Code: abc.m
\newcommand{\Figure}[4]{%
\begin{figure*}[t]
\begin{center}
\includegraphics[width=#1]{figures/#3}
\end{center}
\caption{#4}
\label{#2}
\end{figure*}
}
% Subfigure. Usage:
% ----------------------
%\begin{figure*}
% \newcommand{\SubFigureWidth}{.3} \centering
% \Subfigure{\SubFigureWidth\textwidth} {label} {filename} {caption}
% \Subfigure{\SubFigureWidth\textwidth} {label} {filename} {caption}
% \caption{abc}
% \label{fig:abc}
% % Generating Code: abc.m
%\end{figure*}
% ---------------------
\newcommand{\Subfigure}[4] {%
\subcaptionbox{#4 \label{#2}}
{\includegraphics[width=#1]{figures/#3}}
}
\RequirePackage{comment}
\begin{comment}
\newcommand{\Subfigure}[4]{%
\begin{subfigure}[b]{#1}
\centering
\captionsetup{justification=centering}
\includegraphics[width=\textwidth] {figures/#3}
\caption{#4}
\label{#2}
\end{subfigure}
}
\end{comment}