-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpreamble.tex
259 lines (226 loc) · 10.2 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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
\usepackage{etex}
%\usepackage[T1]{fontenc}
\usepackage[letterpaper,text={5in,8in},inner=1.5in,outer=2.5in,twoside]{geometry}
\usepackage[bookmarks, backref, hidelinks]{hyperref} % generates pdf index
\usepackage{cclicenses}
\usepackage[english]{babel}
\usepackage{yfonts} % fancy first letters
\usepackage{graphicx} % to include figures
\usepackage{mathtools} % great math stuff
\usepackage{amsfonts} % for blackboard bold, etc
\usepackage{amsthm} % better theorem environments
\usepackage{thmtools} % better interaction with theorem environments
\usepackage{bigints} % big integrals
\usepackage{color} % color
\usepackage{datetime} % ctan.math.washington.edu/tex-archive/obsolete/macros/latex/contrib/datetime/datetime.pdf
\usepackage[usenames,dvipsnames]{xcolor} % more color
\usepackage{verbatim} % multiline comments
\usepackage{array} % better table formatting
\usepackage{microtype}
\usepackage{url} % urls
\usepackage{pgfplots} % sexier graphs
\usepackage{float} % more figure control
\usepackage{wrapfig} % wrapping text around figures
\usepackage{subfigure} % side-by-side figures
\usepackage{polynom} % polynomial long division
\usepackage{setspace} % used to set line spacing, e.g. \setstretch{1.3}
\usepackage{makeidx} % indexing
\usepackage[square, numbers, comma, sort&compress]{natbib} % Use the ``Natbib'' style for the references in the Bibliography
% \usepackage[backend=biber]{biblatex}
\usepackage{caption3} % load caption package kernel first
\usepackage{parskip} % disable ``parskip'' caption option
\usepackage[small]{caption}
\usepackage[europeancurrents, europeanvoltages, americanresistors, cuteinductors, americanports, nosiunitx, noarrowmos]{circuitikz} % logic gates
\usepackage{tikz} % stuff for circuits and more
\usepackage{booktabs} % book-like tables
\usepackage{multirow}
\usepackage{cancel}
\usepackage{fitch} % fitch-style proofs
\usepackage{amssymb}
\usepackage{mathrsfs} % fancy script
\usepackage{amsbsy} % fancy script
\usepackage{upgreek}
\usepackage{algorithmicx}
\usepackage{algorithm}
\usepackage{algpseudocode}
\usepackage{epigraph}
\usepackage{pstricks}
\usepackage{pst-all}
\usepackage{xr} %Allows us to cross-reference in external files
\usepackage{etoolbox}
\usepackage{charter}
\usepackage[expert]{mathdesign}
\usepackage{marginnote}
\setkomafont{dictumtext}{\normalfont}
\addtokomafont{disposition}{\rmfamily}
%%%%%%%%%%%%
% settings %
%%%%%%%%%%%%
% Bibliography punctuation for Natbib, see:
% <https://en.wikibooks.org/wiki/LaTeX/Bibliography_Management#Natbib>
\bibpunct{\small[}{]}{;}{n}{,}{,}
\microtypecontext{spacing=nonfrench}
% initialize indexing commands
\makeindex
% number equations by section
% \numberwithin{equation}{section}
\numberwithin{figure}{chapter}
\numberwithin{table}{chapter}
\numberwithin{subsection}{section}
% resize my tikz/pgf plots
\pgfplotsset{scale=0.5}
% better, explicit compat mode
\NeedsTeXFormat{LaTeX2e}
% draw a thin border around figures
%\floatstyle{boxed}
%\restylefloat{figure}
%%%%%%%%%%%%%%%%%%%% ABBREVIATIONS %%%%%%%%%%%%%%%%%%%%
%my abbreviations
\newcommand{\dash}{{---}}
\newcommand{\pha}{{}_\bullet}
\newcommand{\phb}{{}_\blacktriangle}
\newcommand{\phc}{\blacktriangle}
\newcommand{\dotleq}{\mathrel{\raisebox{1.2ex}{$¿$}\mkern-13.5mu \leq}}
\renewcommand{\projlim}{\varprojlim}
\renewcommand{\injlim}{\varinjlim}
\newcommand{\dottimes}{\stackrel[\cdot]{\times}}
%\newcommand{\xra}[1]{\xrightarrow{#1}}
\newcommand{\xra}[1]{\, \tikz[baseline] \draw (0pt,3.5pt) -- (7pt,3.5pt); {\raisebox{1.5pt}{\ensuremath{\scriptstyle #1}}} \tikz[baseline] \draw [->] (0pt,3.5pt) -- (7pt,3.5pt); \, }
%\renewcommand{\obar}[1]{\overline{#1}}
\newcommand{\ubar}[1]{\underline{#1}}
\newcommand{\set}[1]{\left\{#1\right\}}
\newcommand{\abs}[1]{\left|#1\right|}
\DeclareMathOperator{\arcsec}{arcsec}
\DeclareMathOperator{\arccot}{arccot}
\DeclareMathOperator{\arccsc}{arccsc}
%%%%%%%%%%%%%%%%%%%% LETTERS %%%%%%%%%%%%%%%%%%%%
\newcommand{\frakM}{\mathfrak{M}}
\newcommand{\frakm}{\mathfrak{m}}
%%%%%%%%%%%%%%%%%%%
% custom commands %
%%%%%%%%%%%%%%%%%%%
\newcommand{\margin}{\marginpar}
\newcommand{\ud}{\ensuremath{\,\mathrm{d}}}
\newcommand{\lets}{\text{let }}
\DeclareMathOperator{\=H}{\ensuremath{\stackrel{\text{H}}{=}}}
\newcommand{\ddx}{\ensuremath{\frac{\ud}{\ud x}}}
\newcommand{\szinfty}{\ensuremath{\sum_{n=0}^{\infty}}}
\newcommand{\eqshorthand}{Eq.}
\newcommand{\eref}[1]{\eqshorthand{}$\,$\eqref{#1}}
\newcommand{\etref}[2]{#1 (\eqshorthand{}$\,$\ref{#2})}
\newcommand{\exref}[1]{Ex.$\,$\ref{#1}}
\newcommand{\lleib}[1]{\ensuremath{\frac{\ud}{\ud #1}}}
\newcommand{\leib}[2]{\ensuremath{\frac{\ud #1}{\ud #2}}}
\newcommand{\wronk}[1]{\ensuremath{\mathrm{W}\left(#1\right)}}
\newcommand{\ec}{\mathrm e}
\newcommand{\iu}{\mathrm i}
\newcommand{\definition}[2]{{\textbf{#1}}\index{#2}}
\newcommand{\definitionintro}[1]{\emph{#1}}
\newcommand{\altdefinition}[2]{\emph{#1}\index{#2}}
\newcommand{\defi}[2]{\definition{#1}{#2}}
% Fourier series/fourier integral related commands
\newcommand{\FF}{\,\mathscr{F}}
\newcommand{\Fh}{\hat{f}_c}
\newcommand{\FFc}{\FF_c}
\newcommand{\keyword}[2]{\textbf{#1}\index{#2}}
\newcommand{\thref}[1]{Theorem~\ref{#1}}
\newcommand{\chref}[1]{Chapter~\ref{#1}}
\newcommand{\figref}[1]{Figure~\ref{#1}}
\newcommand{\tabref}[1]{Table~\ref{#1}}
\newcommand{\secref}[1]{Section~\ref{#1}}
\newcommand{\defnref}[1]{definition~\ref{#1}}
\newcommand{\pdefnref}[1]{(\defnref{#1})}
\newcommand{\axiomintro}[1]{\emph{#1}}
\newcommand{\thproofref}[1]{Proof of \thref{#1}}
\newcommand{\ltrue}{\textsc{true}}
\newcommand{\lfalse}{\textsc{false}}
\newcommand{\initialletter}[1]{%
{\frakfamily\Large\fraklines\textcolor{Maroon}{\textinit{#1}}}\,}
% Sets
\newcommand{\realnumbers}{\mathbb{R}}
\newcommand{\setbuilder}[2]{\{ { #1 } \,|\, { #2 } \}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% theorems %
% %
% \newtheoremstyle{stylename}% name of the style to be used %
% {spaceabove}% measure of space to leave above the theorem. E.g.: 3pt %
% {spacebelow}% measure of space to leave below the theorem. E.g.: 3pt %
% {bodyfont}% name of font to use in the body of the theorem %
% {indent}% measure of space to indent %
% {headfont}% name of head font %
% {headpunctuation}% punctuation between head and body %
% {headspace}% space after theorem head; " " = normal interword space %
% {headspec}% Manually specify head %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\definecolor{ScarletRed}{HTML}{cc0000}
\definecolor{ScarletRedDark}{HTML}{a40000}
\definecolor{Chameleon}{HTML}{73d216}
\definecolor{ChameleonDark}{HTML}{4e9a06}
\definecolor{SkyBlue}{HTML}{3465a4}
\definecolor{SkyBlueDark}{HTML}{204a87}
\newtheoremstyle{example}% name of the style to be used
{3ex}% measure of space to leave above the theorem. E.g.: 3pt
{1ex}% measure of space to leave below the theorem. E.g.: 3pt
{}% name of font to use in the body of the theorem
{}% measure of space to indent
{\bfseries}% name of head font
{.} % punctuation between head and body
{1em}% space after theorem head; " " = normal interword space
{}% Manually specify head
\newtheoremstyle{solution}% name of the style to be used
{1ex}% measure of space to leave above the theorem. E.g.: 3pt
{1ex}% measure of space to leave below the theorem. E.g.: 3pt
{}% name of font to use in the body of the theorem
{}% measure of space to indent
{\itshape}% name of head font
{.\\}% punctuation between head and body
{1em}% space after theorem head; " " = normal interword space
{}% Manually specify head
\newtheoremstyle{defn}% name of the style to be used
{3ex}% measure of space to leave above the theorem. E.g.: 3pt
{1ex}% measure of space to leave below the theorem. E.g.: 3pt
{}% name of font to use in the body of the theorem
{}% measure of space to indent
{\bfseries} % name of head font
{.}% punctuation between head and body
{0.75em}% space after theorem head; " " = normal interword space
{}% Manually specify head
\newtheoremstyle{rmk}% name of the style to be used
{3ex}% measure of space to leave above the theorem. E.g.: 3pt
{1ex}% measure of space to leave below the theorem. E.g.: 3pt
{}% name of font to use in the body of the theorem
{}% measure of space to indent
{\itshape} % name of head font
{.}% punctuation between head and body
{0.75em}% space after theorem head; " " = normal interword space
{}% Manually specify head
\newtheoremstyle{thm}% name of the style to be used
{3ex}% measure of space to leave above the theorem. E.g.: 3pt
{1ex}% measure of space to leave below the theorem. E.g.: 3pt
{}% name of font to use in the body of the theorem
{}% measure of space to indent
{\bfseries} % name of head font
{.}% punctuation between head and body
{0.75em}% space after theorem head; " " = normal interword space
{}% Manually specify head
\theoremstyle{example} \newtheorem{ex}{Example}[chapter]
\theoremstyle{solution} \newtheorem*{sol}{Solution}
\theoremstyle{thm} \newtheorem{theorem}{Theorem}
\theoremstyle{thm} \newtheorem{corollary}{Corollary}
\theoremstyle{defn} \newtheorem{defn}{Definition}[chapter]
\theoremstyle{definition} \newtheorem{homework}{Homework}
\theoremstyle{rmk} \newtheorem*{remark}{Remark}
\theoremstyle{remark} \newtheorem*{note}{Note}
% recent preamble additions
\allowdisplaybreaks[1]
\newcommand{\Lagr}[1]{\mathcal{L}\left\{#1\right\}(s)}
\newcommand{\Lagri}[1]{\mathcal{L}^{-1}\left\{#1\right\}(t)}
\newcommand{\II}{\begin{center}[$\bigstar$ INCOMPLETE $\bigstar$]\end{center}}
\newcommand{\us}[1]{u_{#1}(t)\,}
\setstretch{1.1}
%\includeonly{discrete/main}
%\includeonly{continuous/main}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: "notes"
%%% End: