-
Notifications
You must be signed in to change notification settings - Fork 0
/
preamble.tex
131 lines (107 loc) · 3.14 KB
/
preamble.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
\usepackage{booktabs}
\usepackage{longtable}
\usepackage{framed,color}
\usepackage{amsfonts}
\usepackage{bm}
\definecolor{shadecolor}{RGB}{248,248,248}
\ifxetex
\usepackage{letltxmacro}
\setlength{\XeTeXLinkMargin}{1pt}
\LetLtxMacro\SavedIncludeGraphics\includegraphics
\def\includegraphics#1#{% #1 catches optional stuff (star/opt. arg.)
\IncludeGraphicsAux{#1}%
}%
\newcommand*{\IncludeGraphicsAux}[2]{%
\XeTeXLinkBox{%
\SavedIncludeGraphics#1{#2}%
}%
}%
\fi
\newenvironment{rmdblock}[1]
{\begin{shaded*}
\begin{itemize}
\renewcommand{\labelitemi}{
\raisebox{-.7\height}[0pt][0pt]{
{\setkeys{Gin}{width=3em,keepaspectratio}\includegraphics{images/#1}}
}
}
\item
}
{
\end{itemize}
\end{shaded*}
}
\newenvironment{rmdnote}
{\begin{rmdblock}{note}}
{\end{rmdblock}}
\newenvironment{rmdcaution}
{\begin{rmdblock}{caution}}
{\end{rmdblock}}
\newenvironment{rmdimportant}
{\begin{rmdblock}{important}}
{\end{rmdblock}}
\newenvironment{rmdtip}
{\begin{rmdblock}{tip}}
{\end{rmdblock}}
\newenvironment{rmdwarning}
{\begin{rmdblock}{warning}}
{\end{rmdblock}}
% Use the theorem package
\usepackage{amsthm}
\makeatletter
\def\thm@space@setup{%
\thm@preskip=8pt plus 2pt minus 4pt
\thm@postskip=\thm@preskip
}
\makeatother
\newtheorem{theorem}{Theorem}
\newtheorem{example}{Example}
\let\oldexample\example
\renewcommand{\example}{\oldexample\normalfont}
\newtheorem{remark}{Remark}
\let\oldremark\remark
\renewcommand{\remark}{\oldremark\normalfont}
\newtheorem{lemma}{Lemma}
\newtheorem{corollary}{Corollary}
\newtheorem{proposition}{Proposition}
\newtheorem{definition}{Definition}
\newcommand{\notimplies}{%
\mathrel{{\ooalign{\hidewidth$\not\phantom{=}$\hidewidth\cr$\implies$}}}}
\DeclareMathOperator*{\mean}{mean}
\DeclareMathOperator*{\var}{var}
\DeclareMathOperator*{\tr}{tr}
\DeclareMathOperator*{\cov}{cov}
\DeclareMathOperator*{\corr}{corr}
\DeclareMathOperator*{\argmax}{argmax}
\DeclareMathOperator*{\argmin}{argmin}
\DeclareMathOperator*{\card}{card}
\DeclareMathOperator*{\diag}{diag}
\DeclareMathOperator*{\rank}{rank}
\DeclareMathOperator*{\length}{length}
\renewcommand{\C}{\text{C}}
% New math symbols
\newcommand{\0}{\boldsymbol{0}}
\newcommand{\I}{\boldsymbol{\mathbf{I}}}
\renewcommand{\S}{\boldsymbol{S}}
\newcommand{\y}{\boldsymbol{y}}
\newcommand{\X}{\boldsymbol{X}}
\newcommand{\bbeta}{\boldsymbol{\beta}}
\newcommand{\bepsilon}{\boldsymbol{\varepsilon}}
\newcommand{\norm}{\mathcal{N}}
\renewcommand{\epsilon}{\varepsilon}
\newcommand{\btheta}{\boldsymbol{\theta}}
\newcommand{\e}[1]{{\mathbb E}\left[ #1 \right]}
\newcommand{\ind}{\boldsymbol{1}}
\newcommand{\normal}{\mathcal{N}}
% Model Selection
\newcommand{\KL}{\text{KL}}
\newcommand{\AIC}{\text{AIC}}
\newcommand{\BIC}{\text{BIC}}
% Different Number sets
\DeclareSymbolFont{lettersA}{U}{txmia}{m}{it}
\DeclareMathSymbol{\real}{\mathord}{lettersA}{"92}
\DeclareMathSymbol{\integers}{\mathord}{lettersA}{154}
\DeclareMathSymbol{\natural}{\mathord}{lettersA}{142}
\DeclareMathSymbol{\rational}{\mathord}{lettersA}{"91}
\DeclareMathSymbol{\irrational}{\mathord}{lettersA}{"90}
\DeclareMathSymbol{\field}{\mathord}{lettersA}{"83}