-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathproject.tex
259 lines (227 loc) · 7.67 KB
/
project.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
\documentclass[10pt]{extarticle}\usepackage[letterpaper]{geometry}
\usepackage{import}
\usepackage{algorithm}
\usepackage{algpseudocode}
%\documentclass[10pt]{extarticle}\usepackage[letterpaper]{geometry}
%\usepackage{fullpage}
\usepackage{enumerate}
\usepackage[table]{xcolor}
\usepackage{graphics}
\usepackage{graphicx}
\usepackage{multirow}
\usepackage{hhline}
\usepackage{pbox}
\usepackage{hyperref}
\usepackage{fancyhdr}
\usepackage{amsmath,amssymb,esint}
\usepackage{longtable}
\usepackage{tikz}
\usepackage{float}
\usepackage{pgfplots}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{empheq}
%\usepackage{mathabx}
%%%%%%%%%%%%%%%% TIKZ stuff %%%%%%%%%%%%%%%%
\pgfplotsset{compat=newest}
\usetikzlibrary{shapes,arrows,matrix,positioning,intersections}
\usetikzlibrary{calc}
% \usetikzlibrary{decorations.pathreplacing}
\usetikzlibrary{decorations} %fancier tikz abilities
\pgfdeclarelayer{bg}
\pgfsetlayers{bg,main}
% Define block styles
\tikzstyle{decision} = [diamond, draw, fill=blue!20,
text width=3cm, text badly centered, node distance=3cm, inner sep=0pt]
\tikzstyle{block} = [rectangle, draw, fill=blue!20,
text width=3cm, text centered, rounded corners, minimum height=2em]
\tikzstyle{line} = [draw, -latex']
\tikzstyle{cloud} = [draw, ellipse,fill=red!20, node distance=3cm,
minimum height=2em]
\usetikzlibrary{decorations.text,arrows.meta}
\usetikzlibrary{decorations.pathmorphing}
\usetikzlibrary{decorations.markings} %hopefully give arrows
\tikzset{
% style to apply some styles to each segment of a path
on each segment/.style={
decorate,
decoration={
show path construction,
moveto code={},
lineto code={
\path [#1]
(\tikzinputsegmentfirst) -- (\tikzinputsegmentlast);
},
curveto code={
\path [#1] (\tikzinputsegmentfirst)
.. controls
(\tikzinputsegmentsupporta) and (\tikzinputsegmentsupportb)
..
(\tikzinputsegmentlast);
},
closepath code={
\path [#1]
(\tikzinputsegmentfirst) -- (\tikzinputsegmentlast);
},
},
},
% style to add an arrow in the middle of a path
mid arrow/.style={postaction={decorate,decoration={
markings,
mark=at position .5 with {\arrow[#1]{stealth}}
}}},
}
%%%%%%%%%%%%%%%% Table of Contents Stuff %%%%%%%%%%%%%%%%
\setcounter{secnumdepth}{-1} % only chapter and sections will be numbered
\setcounter{tocdepth}{4}
%\setlength{\parindent}{0pt}
%%%%%%%%%%%%%%%% Hyper Ref Stuff %%%%%%%%%%%%%%%%
% set up reference style
\hypersetup{
linktoc=all, % build toc with internal links
bookmarks=true, % show bookmarks bar?
unicode=false, % non-Latin chars in Acrobat bookmarks
pdftoolbar=true, % show Acrobats toolbar?
pdfmenubar=true, % show Acrobats menu?
pdffitwindow=false, % window fit to page when opened
pdfstartview={FitH}, % fits width of page to the window
pdftitle={My title}, % title
pdfauthor={Author}, % author
pdfsubject={Subject}, % subject of the document
pdfcreator={Creator}, % creator of the document
pdfproducer={Producer}, % producer of the document
pdfkeywords={keyword1} {key2} {key3}, % list of keywords
pdfnewwindow=true, % links in new window
colorlinks=true, % false: boxed links; true: colore links
linkcolor=blue, % color of internal links (change box
% color with linkbordercolor)
citecolor=green, % color of links to bibliography
filecolor=magenta, % color of file links
pagebackref=true,
urlcolor=cyan % color of external links
}
%%%%%%%%%%%%%%%% My Commands/Shorthand %%%%%%%%%%%%%%%%
\newcommand{\qed}{\hfill\ensuremath{\Box}}
\newcommand{\qedb}{\hfill \blacksquare}
\newcommand{\LIM}{\text{LIM}}
\newcommand{\wrt}{w.r.t}
\newcommand{\rml}{\multicolumn{1}{c}{}}
\newcommand{\tbf}[1]{\textbf{#1}}
\newcommand{\ib}[1]{\item \textbf{#1}}
\newcommand{\B}{\mathcal{B}}
\newcommand{\R}{\mathbb{R}}
\newcommand{\K}{\mathbb{K}}
\newcommand{\F}{\mathbb{F}}
\newcommand{\re}{\text{Re}}
%\newcommand{\Z}{\mathbb{Z}}
\newcommand{\TT}{\mathbb{T}}
\newcommand{\T}{\mathcal{T}}
%\newcommand{\S}{\mathcal{S}}
\newcommand{\N}{\mathbb{N}}
\newcommand{\M}{\mathcal{M}}
\newcommand{\MO}{\mathcal{O}}
\newcommand{\prob}{\text{Prob}}
\newcommand{\var}{\text{Var}}
\newcommand{\Q}{\mathbb{Q}}
\newcommand{\C}{\mathbb{C}}
\newcommand{\E}{\mathcal{E}}
\newcommand{\fl}{\text{fl}}
\newcommand{\sign}{\text{sign}}
\newcommand{\norm}[1]{\left\lvert #1 \right\rvert}
\newcommand{\Norm}[1]{\left\lVert #1 \right\rVert}
\newcommand{\hsn}[1]{{\left\vert\kern-0.25ex\left\vert\kern-0.25ex\left\vert #1
\right\vert\kern-0.25ex\right\vert\kern-0.25ex\right\vert}}
\newcommand{\ip}[1]{\left\langle #1 \right\rangle}
\def\tesst{https://chrome.google.com/webstore/detail/slack-bot-filter/blephhkggdennbfmdcjmlfimedknghfc}
\def\lvector#1{\underline{#1}}
\def\lmatrix#1{\underline{\underline{#1}}}
\def\ltensor#1{\underline{\underline{\underline{#1}}}}
\DeclareMathOperator\vol{\text{vol}}
\newcommand*\circled[1]{\tikz[baseline=(char.base)]{
\node[shape=circle,draw,inner sep=2pt] (char) {#1};}}
\newcommand{\e}{\varepsilon}
%\newcommand{\aa}{\alpha}\
%\newcommand{\bb}{\beta}
\newcommand{\nifty}{\textbf{NIFTY}}
\usepackage[many]{tcolorbox}
\tcbset{breakable,
skin=bicolor,
colback=black!15!white,
colbacklower=white,
colframe=black!25!white,
coltitle=black,
fonttitle=\bfseries,
boxrule=1pt,
boxsep=3.0pt,
left=0.0pt,
right=0.0pt,
top=0.0pt,
bottom=0.0pt,
middle = 1.0pt,
arc = 0.0pt,
outer arc = 0.0pt,
frame style={top color=white,
bottom color=white,draw=black},
interior style={left color=black!10!white,right color=black!10!white},
segmentation style={right color=white,left color=white}
}
\DeclareMathOperator{\Tr}{Tr}
\DeclareMathOperator{\tr}{tr}
%%%%%%%%%%%%%%%% Title Stuff %%%%%%%%%%%%%%%%
\author{Your Name Here} %\\ \includegraphics{Clear-Demand-Logos-FINALCMYK.pdf}}
\date{\today}
\title{Your Title Here}
%%%%%%%%%%%%%%%% Fancy Header Stuff %%%%%%%%%%%%%%%%
\fancyhead{}
\pagestyle{fancy}
\makeatletter %insert header on title pages
\let\runauthor\@author
\let\runtitle\@title
\fancyhead[R]{test}
\lhead[\thepage]{\textbf{\runtitle \hspace{.4cm} }\leftmark }
\rhead[\rightmark]{\runauthor : \today, p. \thepage : \hyperlink{page.1}{$\Uparrow$}}
\fancyfoot[C]{} %remove page number from footer
%\renewcommand{\headrulewidth}{10pt}
\headheight 17pt
\headsep 10pt
%\rhead{\hyperlink{page.1}{Table of Contents}}
\begin{document}
% make title page
\maketitle
% make table of contents
\tableofcontents\section{ My First Section }
Always start a section with some explanation about its contents
\subsection{ My First Subsection }
Always start a subsection with some explanation about its contents
\
\subsubsection{ My First Subsubsection }
Always start a subsubsection with some explanation about its contents
\includegraphics[width=0.9\textwidth]{img/My_Plot.png}
An example table
\begin{tabular}{rrr}
\hline
& data\_x & data\_y \\
\hline
0 & 0 & 0 \\
1 & 0.526316 & 0.502351 \\
2 & 1.05263 & 0.86873 \\
3 & 1.57895 & 0.999967 \\
4 & 2.10526 & 0.86054 \\
5 & 2.63158 & 0.488189 \\
6 & 3.15789 & -0.0163014 \\
7 & 3.68421 & -0.51638 \\
8 & 4.21053 & -0.876688 \\
9 & 4.73684 & -0.999701 \\
10 & 5.26316 & -0.852122 \\
11 & 5.78947 & -0.473898 \\
12 & 6.31579 & 0.0325984 \\
13 & 6.84211 & 0.530271 \\
14 & 7.36842 & 0.884413 \\
15 & 7.89474 & 0.99917 \\
16 & 8.42105 & 0.843478 \\
17 & 8.94737 & 0.45948 \\
18 & 9.47368 & -0.0488868 \\
19 & 10 & -0.544021 \\
\hline
\end{tabular}
\end{document}