-
Notifications
You must be signed in to change notification settings - Fork 2
/
defs.tex
97 lines (83 loc) · 2.55 KB
/
defs.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
%
% From: http://www.ams.org/authors/monopackages.html
%
\newtheorem{theorem}{Theorem}[chapter]
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{property}[theorem]{Property}
\theoremstyle{definition}
\newtheorem{definition}[theorem]{Definition}
\theoremstyle{definition}
\newtheorem{example}[theorem]{Example}
\newtheoremstyle{exercise}% name
{3pt}% Space above
{6pt}% Space below
{}% Body font
{}% Indent amount (empty = no indent, \parindent = para indent)
{}% Thm head font
{)}% Punctuation after thm head
{.5em}% Space after thm head: " " = normal interword space;
% \newline = linebreak
{}
\newcounter{exercount}
\theoremstyle{exercise}
\newtheorem{exercise}[exercount]{}
\renewcommand{\theexercount}{\thechapter.\arabic{exercount}}
\theoremstyle{remark}
\newtheorem{remark}[theorem]{Remark}
\numberwithin{section}{chapter}
\numberwithin{equation}{chapter}
\makeatletter
\renewcommand\paragraph{%
\@startsection{paragraph}{4}{0mm}%
{-\baselineskip}%
{-\baselineskip}%
{\normalfont\normalsize\bfseries}}
\makeatother
\newcommand{\eref}[1]{(\ref{#1})} % FOR EQUATION REFERENCES
\newcommand{\defeq}{\triangleq} % DEFINED TO BE EQUAL TO
\newcommand{\nats}{\mathbb{N}}
\newcommand{\positives}{\mathbb{P}}
\newcommand{\reals}{\mathbb{R}}
\newcommand{\ints}{\mathbb{Z}}
\newcommand{\rats}{\mathbb{Q}}
\newcommand{\complexes}{\mathbb{C}}
\newcommand{\vvec}[2]{ \left ( \begin{array}{c} #1 \\ #2 \end{array} \right ) }
\newcommand{\vvvec}[3]{ \left ( \begin{array}{c} #1 \\ #2 \\ #3 \end{array} \right ) }
\newcommand{\pd}[2]{\frac{\partial #1}{\partial #2}}
\newcommand{\enx}{ % TO END EXAMPLES
\hfill
{\small $\blacktriangle$}
\bigskip
}
\newcommand{\ev}[1]{\langle #1 \rangle}
\newcommand{\react}[1]{\xrightharpoon[]{#1}}
\newcommand{\rreact}[2]{\xrightleftharpoons[#2]{#1}}
\makeatletter
\newcommand{\xrightharpoon}[2][]{%
\ensuremath{%
\mathrel{%
\settoheight{\dimen@}{\raise 2pt\hbox{$\rightharpoonup$}}%
\setlength{\dimen@}{-\dimen@}%
\edef\CA@temp{\the\dimen@}%
\settoheight\dimen@{$\rightleftharpoons$}%
\addtolength{\dimen@}{\CA@temp}%
\raisebox{\dimen@}{%
\rlap{%
\raisebox{2pt}{%
$%
\ext@arrow 0359\rightharpoonupfill@{\hphantom{#1}}{#2}%
$%
}%
}%
\hbox{%
\raisebox{2pt}{%
$%
\ext@arrow 0359\rightharpoonupfill@{\hphantom{#1}}{#2}%
$%
}%
}%
}%
}%
}%
}
\makeatother