-
Notifications
You must be signed in to change notification settings - Fork 0
/
macros.tex
137 lines (109 loc) · 5.21 KB
/
macros.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
%!TEX root = main.tex
%!TEX spellcheck = en_US
\newcommand{\edit}[1]{{\color{black} #1}}
% \newcommand{\cc}[1]{{\color{cyan!70!blue}{(Wan: #1)}}}
\newcommand{\jc}[1]{{\footnotesize\color{orange}{(JC: #1)}}}
\newcommand{\jcedit}[1]{{\color{orange} #1}}
\newcommand{\chase}[1]{{\color{brown}{(Chase: #1)}}}
\newcommand{\todo}[1]{{\color{red}{(TODO: #1)}}}
\definecolor{darkkhaki}{rgb}{0.74, 0.72, 0.42}
\newcommand{\sr}[1]{{\color{cyan!70!blue}{(Siddhant: #1)}}}
\newcommand{\jack}[1]{{\color{purple}{(Jack: #1)}}}
\newcommand{\aaron}[1]{{\color{teal}{(Aaron: #1)}}}
% \newcommand{\shan}[1]{}
% \newcommand{\hank}[1]{ }
% \newcommand{\mm}[1]{ }
% \newcommand{\cc}[1]{ }
% \newcommand{\jc}[1]{ }
% \newcommand{\yh}[1]{ }
% \newcommand{\kt}[1]{ }
% \newcommand{\todo}[1]{{\color{red}{#1}}}
\newcommand{\smallindent}{\hphantom{N}}
% \newcommand{\shan}[1]{}
% \newcommand{\hh}[1]{}
% \newcommand{\hank}[1]{}
% \newcommand{\mm}[1]{}
% \newcommand{\cc}[1]{}
% \newcommand{\jc}[1]{}
% \newcommand{\yh}[1]{}
% \newcommand{\name}{\textsc{METIS}\xspace}
% \newcommand{\name}{\textsc{Name}\xspace}
\newcommand{\vspacesize}{0.2cm}
\newcommand{\fillme}{{\bf XXX}\xspace}
\newcommand*\circled[1]{\tikz[baseline=(char.base)]{
\node[shape=circle,fill,inner sep=2pt] (char) {\textcolor{white}{\footnotesize{#1}}};}}
\newcommand{\name}{NAME\xspace}
\newcounter{packednmbr}
\newenvironment{packedenumerate}{\begin{list}{\thepackednmbr.}{\usecounter{packednmbr}\setlength{\itemsep}{0.5pt}\addtolength{\labelwidth}{-4pt}\setlength{\leftmargin}{2ex}\setlength{\listparindent}{\parindent}\setlength{\parsep}{1pt}\setlength{\topsep}{0pt}}}{\end{list}}
\newenvironment{packeditemize}{\begin{list}{$\bullet$}{\setlength{\itemsep}{0.5pt}\addtolength{\labelwidth}{-4pt}\setlength{\leftmargin}{2ex}\setlength{\listparindent}{\parindent}\setlength{\parsep}{1pt}\setlength{\topsep}{2pt}}}{\end{list}}
\newenvironment{packedpackeditemize}{\begin{list}{$\bullet$}{\setlength{\itemsep}{0.5pt}\addtolength{\labelwidth}{-4pt}\setlength{\leftmargin}{\labelwidth}\setlength{\listparindent}{\parindent}\setlength{\parsep}{1pt}\setlength{\topsep}{0pt}}}{\end{list}}
\newenvironment{packedtrivlist}{\begin{list}{\setlength{\itemsep}{0.2pt}\addtolength{\labelwidth}{-4pt}\setlength{\leftmargin}{\labelwidth}\setlength{\listparindent}{\parindent}\setlength{\parsep}{1pt}\setlength{\topsep}{0pt}}}{\end{list}}
\let\enumerate\packedenumerate
\let\endenumerate\endpackedenumerate
\let\itemize\packeditemize
\let\enditemize\endpackeditemize
\newcommand{\tightcaption}[1]{\vspace{-0.15cm}\caption{{\normalfont{\textit{{#1}}}}}\vspace{-0.3cm}}
\newcommand{\tightsection}[1]{\vspace{-0.3cm}\section{#1}\vspace{-0.2cm}}
\newcommand{\tightsectionstar}[1]{\vspace{-0.17cm}\section*{#1}\vspace{-0.08cm}}
\newcommand{\tightsubsection}[1]{\vspace{-0.25cm}\subsection{#1}\vspace{-0.1cm}}
\newcommand{\tightsubsubsection}[1]{\vspace{-0.01in}\subsubsection{#1}\vspace{-0.01cm}}
\newcommand{\bigO}{\mathrm{O}}
\newcommand{\twlog}{w.l.o.g.\xspac}
\newcommand{\myparashort}[1]{\vspace{0.05cm}\noindent{\bf {#1}}~}
\newcommand{\mypara}[1]{\vspace{0.05cm}\noindent{\bf {#1}:}}
\newcommand{\mysubpara}[1]{\vspace{0.05cm}\noindent{\textit{#1}}}
\newcommand{\myparatight}[1]{\vspace{0.02cm}\noindent{\bf {#1}:}~}
\newcommand{\myparaq}[1]{\smallskip\noindent{\bf {#1}?}~}
\newcommand{\myparaittight}[1]{\smallskip\noindent{\emph {#1}:}~}
\newcommand{\question}[1]{\smallskip\noindent{\emph{Q:~#1}}\smallskip}
\newcommand{\myparaqtight}[1]{\smallskip\noindent{\bf {#1}}~}
\newcommand{\cmark}{\ding{51}}%
\newcommand{\xmark}{\ding{55}}%
% \definecolor{codegreen}{rgb}{0,0.6,0}
% \definecolor{codegray}{rgb}{0.5,0.5,0.5}
% \definecolor{codepurple}{rgb}{0.58,0,0.82}
% \definecolor{backcolour}{rgb}{0.95,0.95,0.92}
% \lstdefinestyle{overleaf_style}{
% backgroundcolor=\color{backcolour},
% commentstyle=\color{codegreen},
% keywordstyle=\color{magenta},
% numberstyle=\tiny\color{codegray},
% stringstyle=\color{codepurple},
% basicstyle=\ttfamily\footnotesize,
% breakatwhitespace=false,
% breaklines=true,
% captionpos=b,
% keepspaces=true,
% numbers=left,
% numbersep=5pt,
% showspaces=false,
% showstringspaces=false,
% showtabs=false,
% tabsize=2
% }
\definecolor{backcolour}{rgb}{0.96,0.96,0.96}
\definecolor{codegray}{rgb}{0.5,0.5,0.5}
\definecolor{deepblue}{rgb}{0,0,0.6}
\definecolor{deepred}{rgb}{0.6,0,0}
\definecolor{deepgreen}{rgb}{0,0.5,0}
\lstdefinestyle{mystyle}{
backgroundcolor=\color{backcolour},
commentstyle=\color{codegreen},
morekeywords={self, True},
keywordstyle=\color{deepblue},
numberstyle=\tiny\color{codegray},
emph={MyClass,__init__,EncodingType,Image},
emphstyle=\color{deepred},
stringstyle=\color{deepgreen},
basicstyle=\ttfamily\footnotesize,
breakatwhitespace=false,
breaklines=true,
captionpos=b,
keepspaces=true,
numbers=left,
numbersep=5pt,
showspaces=false,
showstringspaces=false,
showtabs=false,
tabsize=1
}