-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpreamble.tex
87 lines (73 loc) · 2.79 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
\usepackage{xcolor}
\newcommand{\red}[1]{{\textcolor{Red}{#1}}}
\definecolor{myred}{HTML}{C82506}
\definecolor{myblue}{HTML}{0365C0}
\definecolor{mygreen}{HTML}{00882B}
\definecolor{mydarkgreen}{HTML}{0B5D18}
\definecolor{myorange}{HTML}{DE6A10}
\definecolor{mypurple}{HTML}{773F9B}
\definecolor{myyellow}{HTML}{DCBD23}
\definecolor{mygray}{HTML}{999999}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{eulervm}
\usepackage{charter}
\usepackage{exercise}
\PassOptionsToPackage{hyphens}{url}\usepackage{hyperref}
\hypersetup{colorlinks=true,linkcolor=myred,urlcolor=myred}
\usepackage{float}
\usepackage{enumitem}
\usepackage{bm}
\newcommand{\p}{\;\text{.}}
\newcommand{\R}{{\mathbb R}}
\newcommand{\N}{{\mathbb N}}
\newcommand{\E}{{\mathbb E}}
\newcommand{\ex}{{\mathbb E}}
\newcommand{\U}{{\bm U}}
\newcommand{\V}{{\bm V}}
\newcommand{\W}{{\bm W}}
\newcommand{\A}{{\bm A}}
\newcommand{\B}{{\bm B}}
\newcommand{\C}{{\bm C}}
\newcommand{\ba}{{\bm a}}
\newcommand{\bb}{{\bm b}}
\newcommand{\boc}{{\bm c}}
\newcommand{\bu}{{\bm u}}
\newcommand{\bv}{{\bm v}}
\newcommand{\bw}{{\bm w}}
\newcommand{\x}{{\bm x}}
\newcommand{\y}{{\bm y}}
\newcommand{\z}{{\bm z}}
\newcommand{\X}{{\bm X}}
\newcommand{\Y}{{\bm Y}}
\newcommand{\Z}{{\bm Z}}
\newcommand{\bt}{{\bm t}}
\newcommand{\ma}[1]{\begin{pmatrix}#1\end{pmatrix}}
\DeclareMathOperator*{\argmin}{arg\,min}
\DeclareMathOperator*{\argmax}{arg\,max}
\newcommand{\rc}[1]{{\textcolor{myred}{#1}}}
\newcommand{\gc}[1]{{\textcolor{mygreen}{#1}}}
\newcommand{\dgc}[1]{{\textcolor{mydarkgreen}{#1}}}
\newcommand{\bc}[1]{{\textcolor{myblue}{#1}}}
\newcommand{\kc}[1]{{\textcolor{mygray}{#1}}}
\newcommand{\oc}[1]{{\textcolor{myorange}{#1}}}
\newcommand{\pc}[1]{{\textcolor{mypurple}{#1}}}
\newcommand{\yc}[1]{{\textcolor{myyellow}{#1}}}
% \newcommand{\ans}[2]{{\leavevmode\color{mydarkgreen}#2}} % no answers
\newcommand{\ans}[2]{{\leavevmode\color{mydarkgreen}#1}} % answers
\newcommand{\kp}{{\kc{\partial}}}
% Exam questions
\newcommand{\trueorfalse}{\linebreak \textbf{A } True ~~ \textbf{B } False}
\newcommand{\choices}[4]{\linebreak\noindent\textbf{A } #1~~\textbf{B } #2~~\textbf{C } #3~~\textbf{D } #4}
%\newcommand{\choicesnum}[4]{\linebreak\noindent{\fill}\textbf{A } \np{#1}~~\textbf{B } \np{#2}~~\textbf{C } \np{#3}~~\textbf{D } \np{#4}}
%\newcommand{\twochoices}[2]{\linebreak\noindent\textbf{A } #1~~\textbf{B } #2}
%\newcommand{\threechoices}[3]{\linebreak\noinden\textbf{A } #1~~\textbf{B } #2~~\textbf{C } #3}
\newcommand{\choicesv}[4]{\\ \begin{minipage}{\textwidth}\vspace{4pt}\noindent\textbf{A } #1\\ \noindent\textbf{B } #2\\ \noindent\textbf{C } #3\\ \noindent\textbf{D } #4\end{minipage}}
% Homework questions
\newcommand{\qu}[0]{%
\addtocounter{Question}{1}%
\vspace{3mm}
\noindent \textbf{question \theQuestion:}
}
\newcommand{\an}{\ans{\checkmark}{}}