-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsettings.tex
67 lines (61 loc) · 2.53 KB
/
settings.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
\newcommand{\ucite}[1]{\textsuperscript{\cite{#1}}}
% 参考文献引用:上标用 \ucite{ }, 文中用 \cite{ }
\newcommand{\red}[1]{{\color{red}#1}}
\newcommand{\widesim}[2][1.5]{
\mathrel{\overset{#2}{\scalebox{#1}[1]{$\sim$}}}
}
\newcommand{\iidsim}{\widesim[2.33]{\mathrm{i.i.d.}}} % independent and identically distributed
\newcommand{\iid}{\, \mathrm{i.i.d.}}
\newcommand{\indep}{\Vbar} % independent
\newcommand{\X}{\mathcal{X}} %
\newcommand{\1}[1]{\mathbbm{1}_{#1}} % indicator
\renewcommand{\P}{\mathbb{P}} % probability
\newcommand{\as}{\mathrm{a.s.}} % almost surely
\newcommand{\E}{\mathbb{E}} % expectation
\newcommand{\Var}{\operatorname{Var}} % variance
\newcommand{\Cov}{\operatorname{Cov}} % covariance
\newcommand{\Corr}{\operatorname{Corr}} % correlation
\newcommand{\MSE}{\operatorname{MSE}} % mean square error
\newcommand{\mean}[1]{\overline{#1}}
\newcommand{\abs}[1]{\left\lvert#1\right\rvert} % absolute value
\newcommand{\norm}[1]{\left\lVert#1\right\rVert}
\newcommand{\rank}[1]{\operatorname{rank}\left(#1\right)}
\newcommand{\tr}[1]{\operatorname{tr}\left(#1\right)} % trace
\newcommand{\diag}[1]{\operatorname{diag}\!\left(#1\right)} % diagonal
\newcommand{\vspan}[1]{\operatorname{span}\left(#1\right)} % vector span
\newcommand{\proj}[2]{\operatorname{proj}_{#2}#1} % projection
\newcommand{\inprod}[2]{\left\langle #1, #2 \right\rangle} % inner product
\newcommand{\R}{\mathbb{R}} % real
\renewcommand{\Rn}{\mathbb{R}^n} % real n dimensions
\renewcommand{\d}{\mathrm{d}} % differential
\newcommand{\pd}{\partial} % partial differential
\newcommand{\p}[3][]{\frac{\pd^{#1}#2}{\pd{#3}^{#1}}} % partial derivative
\newcommand{\e}{\varepsilon}
\newcommand{\st}{\, \mathrm{s.t.}\, } % subject to, so that
\newcommand{\argmin}{\operatornamewithlimits{arg\,min}}
\newcommand{\argmax}{\operatornamewithlimits{arg\,max}}
\newcommand{\N}{\mathcal{N}} % normal, not natural numbers XD
\newcommand{\ee}{\mathrm e}
\newcommand{\dd}{\mathop{}\!\mathrm d}
\newcommand{\textop}[1]{\relax\ifmmode\mathop{\text{#1}}\else\text{#1}\fi}
\newcommand{\TT}{^{\mathrm T}}
\newcommand{\U}{\mathrm{U}}
\newcommand{\Uniform}{\mathrm{Uniform}}
\renewcommand\arraystretch{2}
\setlist[description]{
labelindent = 3em,
labelwidth = 7em,
leftmargin = 10em,
labelsep = 0em,
parsep = 0.75em,
topsep = 0.75em,
}
\tikzset{
box/.style ={
rectangle, %矩形节点
rounded corners =5pt, %圆角
minimum width =50pt, %最小宽度
minimum height =20pt, %最小高度
inner sep=5pt, %文字和边框的距离
draw=blue %边框颜色
}}