-
Notifications
You must be signed in to change notification settings - Fork 0
/
Commands.tex
83 lines (76 loc) · 2.78 KB
/
Commands.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
% !TeX root = Project.tex
\newcommand{\A}{\mathcal{A}}
\newcommand{\B}{\mathcal{B}}
\newcommand{\G}{\mathcal{G}}
\newcommand{\J}{\mathcal{J}^{o,n}}
\renewcommand{\P}{\mathcal{P}}
\newcommand{\E}{\mathcal{E}}
\newcommand{\Lb}{\mathcal{L}}
\newcommand{\eB}{\bar \B}
\newcommand{\eR}{\bar \R}
\newcommand{\R}{\mathbb{R}}
\newcommand{\N}{\mathbb{N}}
\newcommand{\C}{\mathbb{C}}
\newcommand{\Q}{\mathbb{Q}}
\newcommand{\Z}{\mathbb{Z}}
\newcommand{\Ln}{\lambda^n}
\newcommandx{\intx}[4][2=x, 3=a, 4=b]{\int_{#3}^{#4} {#1} \, d{#2}}
\newcommand{\LI}[1]{\int {#1} \, d(\Ln)}
\newcommand{\MI}[1]{\int {#1} \, d(\mu)}
\newcommand{\allstep}{\mathcal{S}([a, b])}
\newcommand{\function}{f\colon [a, b] \rightarrow \R}
\newcommand{\measurespace}{\bigl(\R, \B(\R)\bigr)}
\newcommandx{\indi}[2][1={\Q}, 2=x]{\mathbbm{1}_{#1}(#2)}
\newcommand{\logeq}{\mathrel{\vcentcolon\Leftrightarrow}}
\newcommand{\defcol}{mygrey}
\newcommand{\thmcol}{cyan}
\definecolor{mygrey}{gray}{0.5}
\newcommandx{\tref}[2][2=Theorem]{\hypersetup{linkcolor=\thmcol}{\hyperref[#1]{#2}}\hypersetup{linkcolor=RoyalBlue}}
\newcommandx{\dref}[2][2=Definition]{\hypersetup{linkcolor=\defcol}{\hyperref[#1]{#2}}\hypersetup{linkcolor=RoyalBlue}}
\newcommandx{\drefn}[2][2=Definition]{\hypersetup{linkcolor=\defcol}{\hyperref[#1]{#2} \ref{#1}}\hypersetup{linkcolor=RoyalBlue}}
\newtheoremstyle{defrule}%
{8pt}%
{5pt}{}{}{}%
{.}%
{.5em}%
{\thmname{\color{\defcol}\bf #1}\thmnumber{ #2}\thmnote{\bf\em\color{\defcol}\ (#3)}}
\newtheoremstyle{thm}%
{8pt}%
{5pt}%
{\it}{}{}%
{.}%
{.5em}%
{\thmname{\color{\thmcol}\bf #1}\thmnumber{ #2}\thmnote{\bf\em\color{\thmcol}\ (#3)}}
\theoremstyle{defrule}
\newtheorem{define}{Definition}
\newenvironment{definition}[1][]%
{\begin{define}[#1]}%
{\par\noindent\color{\defcol}\hfil{\large* * *}\hfil\end{define} }
\theoremstyle{thm}
\newtheorem{theorem}{Theorem}
\newtheorem{prop}[theorem]{Proposition}
\newenvironment{cproof}[1][Proof]%
{\begin{proof}[\color{\thmcol}#1]}%
{\end{proof} }
\numberwithin{equation}{section}
\numberwithin{define}{section}
\numberwithin{theorem}{section}
\numberwithin{figure}{section}
\hypersetup{
%draft,
colorlinks=true, linktoc=all, pdfstartpage=5, pdfstartview=FitV,
%colorlinks=false, linktocpage=false, pdfstartpage=3, pdfstartview=FitV,
breaklinks=true, pageanchor=true, pdfpagemode=UseOutlines,
hypertexnames=true, pdfhighlight=/I,
urlcolor=WildStrawberry, linkcolor=RoyalBlue, citecolor=webgreen, pagecolor=RoyalBlue,
}
\makeatletter
\newcommand*{\defeq}{\mathrel{\rlap{%
\raisebox{0.3ex}{$\m@th\cdot$}}%
\raisebox{-0.3ex}{$\m@th\cdot$}}%
=}
\newcommand*{\eqdef}{\mathrel{
{=}\rlap{%
\raisebox{0.3ex}{$\m@th\cdot$}}%
\raisebox{-0.3ex}{$\m@th\cdot$}}}
\makeatother