-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathThesis.tex
765 lines (631 loc) · 22.2 KB
/
Thesis.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
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
%----------------------------------------------------------------------------------------
% Research Proposal for MUST
%
% Title:
%
% Author:HE PEILIN
%
% Last modified: 2022-04-05
%-----------------------------------------------------------------------------------------
\documentclass[12pt, a4paper]{report}
\pagestyle{headings}
\include{macros/style}
\include{macros/usepackages}
\usepackage{fontawesome}
\usepackage{Proposal}
\usepackage{titlepage}
\usepackage{cv-structure}
\setCJKmainfont[AutoFakeSlant=0.3, AutoFakeBold=2.17,Path=fonts/]{KaiTi}
\setmainfont{Times New Roman}
\lhead{\tiny }
\chead{}
\rhead{\small \leftmark}
\renewcommand{\headrulewidth}{1pt}
%\CenterWallPaper{.6}{figure/waterlogo.jpg}
\graphicspath{{.}}
\renewcommand{\baselinestretch}{1.5}
\parindent=0pt
%\makeatletter %使\section居中
%\renewcommand{\section}{\@startsection{section}{1}{0mm}
% {-\baselineskip}{0.5\baselineskip}{\bf\leftline}}
% {-\baselineskip}{0.5\baselineskip}{\bf\centerline}}
%\makeatother
%使\chapte左侧
%\titleformat{command}[shape]{format}{label}{sep}{before}[after]
%\titlecontents{chapter}% <section-type>
% [0pt]% <left>
% {}% <above-code>
% {\bfseries\chaptername\ \thecontentslabel\quad}% <numbered-entry-format>
% {\bfseries}% <numberless-entry-format>
% {\bfseries\hfill\contentspage}% <filler-page-format>
\titleformat{\chapter}{\centering\Large\bfseries}{Chapter\,\thechapter.}{1em}{}
%\titleformat{\chapter}{\centering\Large\bfseries}{\thechapter.}{1em}{}
\titlespacing{\chapter}{0pt}{0em}{1em}[0pt]
%\titleformat{\section}{\leftline\bfseries}{section\,\thesection}{1em}{}
\makeatletter %使\section左侧
\renewcommand{\section}{\@startsection{section}{1}{0mm}
{-\baselineskip}{0.5\baselineskip}{\Large\bf\leftline}}
%{-\baselineskip}{0.5\baselineskip}{\Large\bf\centerline}}
\makeatother
\makeatletter %使\subsection左侧
\renewcommand{\subsection}{\@startsection{subsection}{1}{0mm}
{-\baselineskip}{0.5\baselineskip}{\large\bf\leftline}}
%{-\baselineskip}{0.5\baselineskip}{\bf\centerline}}
\makeatother
\makeatletter %\subsubection居中,Roman
\renewcommand{\subsubsection}{\@startsection{subsubsection}{1}{0mm}
{-\baselineskip}{0.5\baselineskip}{\bf\centerline}}
\renewcommand{\thesubsubsection}{\Roman{subsubsection}}
\makeatletter
\begin{document}
%\bibliographystyle{alpha}
\thispagestyle{empty}
% --------------------------
% def information
\def\Ctitle {中文題目}
\def\Etitle {GANxxxxx}
\def\Cname {某某某}
\def\Ename {HE}
\def\Stuno {18098xxx-xxxx-xxxx}
\def\Faculty {xxxx}
\def\Program {xxx}
\def\Major {xxxx}
\def\SupervisorC {xxxx}
\def\SupervisorE {xxxx}
\newcommand{\Stoday}{\number\year 年 \number\month 月 \number\day 日}
%% Traditional Chinese title
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{titlepage}
\CenterWallPaper{.6}{figure/waterlogo.jpg}
\thispagestyle{empty}
\titleofthesisC
\end{titlepage}
%-------------------------------------------------------------------------------------
\begin{titlepage}
\CenterWallPaper{.6}{figure/waterlogo.jpg}
\thispagestyle{empty}
\titleofthesisE
\end{titlepage}
%-------------------------------------------------------------------------------------
\pagestyle{fancy}
\pagenumbering{Roman}
\setlength{\parindent}{0.6cm}
\addcontentsline{toc}{chapter}{摘要}
\lhead{\Etitle}
\rhead{\small 摘要}
\setlength{\parskip}{0pt}
\chapter*{摘要} \par
\bigskip
\hspace*{1em}
摘要
\vspace{2em}
\par \noindent\textbf{關鍵詞: XXXX}
%\end{abstract}
%-------------------------------------------------------------------------------------
\newpage
\pagestyle{fancy}
%\pagenumbering{roman}
%\setlength{\parindent}{0.6cm}
\addcontentsline{toc}{chapter}{Abstract}
\lhead{\Etitle}
\rhead{\small Abstract}
\setlength{\parskip}{0pt}
\chapter*{Abstract} \par
\bigskip
\hspace*{1em}
Abstract
\vspace{2em}
\par \noindent\textbf{Keywords: XXXX}
%-------------------------------------------------------------------------------------
\newpage
\pagestyle{fancy}
%\lhead{\tiny }
%\chead{}
%\rhead{\small \leftmark}
\addcontentsline{toc}{chapter}{Contents}
\lhead{\Etitle}
\rhead{\small Contents}
\setlength{\parskip}{0pt}
%\thispagestyle{plain}
\tableofcontents
%\thispagestyle{plain}
%-------------------------------------------------------------------------------------
\newpage
\addcontentsline{toc}{chapter}{List of Figures}
\listoffigures
\lhead{\Etitle}
\rhead{\small List of Figures}
\setlength{\parskip}{0pt}
%-------------------------------------------------------------------------------------
%\thispagestyle{plain}
\newpage
%\thispagestyle{plain}
\addcontentsline{toc}{chapter}{List of Tables}
\listoftables
\lhead{\Etitle}
\rhead{\small List of Tables}
\setlength{\parskip}{0pt}
%\thispagestyle{plain}
%\newpage
%\pagestyle{headings}
%-------------------------------------------------------------------------------------
\pagestyle{fancy}
%------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
\newpage
\chapter{Chapter one}
\pagenumbering{arabic}
\lhead{\Etitle}
\rhead{\small Chapter one}
\setlength{\parskip}{0pt}
Chapter one's contents. There is the citation. \cite{DBLP:journals/corr/ReedAYLSL16,7780634}
\begin{itemize}
\item Introduction
\item Related work
\item Background
\item Notation
\item Method
\item Experiment
\item Conclusion
\end{itemize}
\begin{enumerate}
\item Introduction
\item Related work
\item Background
\item Notation
\item Method
\item Experiment
\item Conclusion
\end{enumerate}
%-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
%\thispagestyle{plain}
%-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
\newpage
\chapter{Chapter two}
%\thispagestyle{plain}
\lhead{\Etitle}
\rhead{\small Chapter two}
\setlength{\parskip}{0pt}
Chapter two'contents.
\section{Section two}\label{Section_two}
\subsection{Table}
Subsection's contents in Table \ref{tab:mul-tab} and \ref{tab:Ntt} .
\begin{table}
%\Large
\fontsize{7}{15}\selectfont
\begin{center}
% \begin{tabular}{|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c| p{0.5cm}|}
\caption[Comparison of the APs and mAPs with our framework and those from DPM and R-CNN.]{Comparison of the APs and mAPs with our framework and those from DPM and R-CNN on PASCAL VOC 2007 testing dataset.}\label{tab:mul-tab}
\begin{tabu} to 1.00\textwidth{|X[c]|X[c] X[c] X[c] X[c] X[c] X[c] X[c] p{0.5cm}|}
\hline
&plane&bike&bird&boat&bottle&bus&car&cat \\ \hline
DPM&0.0&0.0&0.0&0.0&0.0&0.0&0.0&0.0 \\ \hline
R-CNN&0.0&0.0&0.0&0.0&0.0&0.0&0.0&0.0 \\ \hline
Ours&{\bf0.0}&{\bf0.0}&{\bf0.0}&{\bf0.0}&{\bf0.0}&{\bf0.0}&{\bf0.0}&{\bf0.0} \\ \hline
% \end{tabular}
\end{tabu}
\vspace{1cm}
\begin{tabu} to 1.00\textwidth{|X[c]|X[c] X[c] X[c] X[c] X[c] X[c] X[c] p{0.5cm}|}
\hline
&chair&cow&table&dog&horse&mbik&pers&plant \\ \hline
DPM&0.0&0.0&0.0&0.0&0.0&0.0&0.0&0.0 \\ \hline
R-CNN&0.0&0.0&0.05&56.1&60.6&66.8&54.2&{\bf0.0} \\ \hline
Ours&{\bf0.0}&{\bf0.0}&{\bf0.0}&{\bf0.0}&{\bf0.0}&{\bf0.0}&{\bf0.0}&0.0 \\ \hline
% \end{tabular}
\end{tabu}
\end{center}
\end{table}
\def\degree{${}^\circ$}
\begin{table}[h]
\begin{center}
\begin{tabularx}{\textwidth}{cX}
\toprule
\multicolumn{1}{m{3cm}}{\centering Symbol}
&\multicolumn{1}{m{15cm}}{\centering Definition}\\
\midrule
$s$&Angles of 45\degree in n-polygon \\
$r$&Angles of 90\degree in n-polygon\\
$l$&Angles of 135\degree in n-polygon\\
$S$& The aggregate of all space not matched any piece \\
$P$& The aggregate of the weight point position in two-dimensional array\\
$H$& Threshold evaluating the probability to search next state\\
$\eta(p,d)$&Thresholding function of Simulated Annealing\\
\bottomrule
\end{tabularx}
\caption{Notations}\label{tab:Ntt}
\end{center}
\end{table}
\subsection{Algorithms}
Subsection's contents.
The Algorithms \ref{algo:intervalR} and Algorithms \ref{algo:function}:
\begin{algorithm}
\DontPrintSemicolon
%%%%%%%%%%%%%
% set keywords arguments
\KwData{$G=(X,U)$ such that $G^{tc}$ is an order.}
\KwResult{$G'=(X,V)$ with $V\subseteq U$ such that $G'^{tc}$ is an
interval order.}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\Begin{
$V \longleftarrow U$\;
$S \longleftarrow \emptyset$\;
\For{$x\in X$}{
$NbSuccInS(x) \longleftarrow 0$\;
$NbPredInMin(x) \longleftarrow 0$\;
$NbPredNotInMin(x) \longleftarrow |ImPred(x)|$\;
}
\For{$x \in X$}{
\If{$NbPredInMin(x) = 0$ {\bf and} $NbPredNotInMin(x) = 0$}{
$AppendToMin(x)$}
}
\nl\While{$S \neq \emptyset$}{\label{InRes1}
\nlset{REM} remove $x$ from the list of $T$ of maximal index\;\label{InResR}
\lnl{InRes2}\While{$|S \cap ImSucc(x)| \neq |S|$}{
\For{$ y \in S-ImSucc(x)$}{
\{ remove from $V$ all the arcs $zy$ : \}\;
\For{$z \in ImPred(y) \cap Min$}{
remove the arc $zy$ from $V$\;
$NbSuccInS(z) \longleftarrow NbSuccInS(z) - 1$\;
move $z$ in $T$ to the list preceding its present list\;
\{i.e. If $z \in T[k]$, move $z$ from $T[k]$ to
$T[k-1]$\}\;
}
$NbPredInMin(y) \longleftarrow 0$\;
$NbPredNotInMin(y) \longleftarrow 0$\;
$S \longleftarrow S - \{y\}$\;
$AppendToMin(y)$\;
}
}
$RemoveFromMin(x)$\;
}
}
\caption{IntervalRestriction\label{IR}}
\label{algo:intervalR}
\end{algorithm}
\begin{algorithm}
%%%%%%%%%%%%%
% set keywords function
\SetKwProg{Fn}{Function}{ is}{end}
\newcommand{\forcond}{$i=0$ \KwTo $n$}
\SetKwFunction{FRecurs}{FnRecursive}%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\Fn(\tcc*[h]{algorithm as a recursive function}){\FRecurs{some args}}
{
\KwData{Some input data\\these inputs can be displayed on several lines and one
input can be wider than line's width.}
\KwResult{Same for output data}
\tcc{this is a comment to tell you that we will now really start code}
\If(\tcc*[h]{a simple if but with a comment on the same line}){this is true}
{
we do that, else nothing\;
\tcc{we will include other if so you can see this is possible}
\eIf{we agree that}
{
we do that\;
}
{
else we will do a more complicated if using else if\;
\uIf{this first condition is true}
{
we do that\;
}
\uElseIf{this other condition is true}
{
this is done\tcc*[r]{else if}
}
\Else
{
in other case, we do this\tcc*[r]{else}
}
}
}
\tcc{now loops}
\For{\forcond}
{
a for loop\;
}
\While{$i<n$}{
a while loop including a repeat--until loop\;
\Repeat{this end condition}
{
do this things\;
}
}
They are many other possibilities and customization possible that you have to
discover by reading the documentation.
}
\caption{Algorithm as a Recursive Function}
\label{algo:function}
\end{algorithm}
\subsection{Figure}
Figure contents
\subsubsection{Subfigure}
In Figure \ref{fig:MUST1} and Figure \ref{fig:MUST2}, ....
\begin{figure}[!htbp]
\begin{minipage}[t]{0.5\linewidth}
\centering
\includegraphics[width=\textwidth]{figure/MUSTSchoolBadgecolor.pdf}
\end{minipage}
\begin{minipage}[t]{0.5\linewidth}
\centering
\includegraphics[width=\textwidth]{figure/MUSTSchoolBadgecolor.pdf}
\end{minipage}
\caption{MUSTSchoolBadgecolor.pdf}
\label{fig:MUST1}
\end{figure}
\begin{figure}[!htbp]
\begin{minipage}[t]{0.5\linewidth}
\centering
\includegraphics[width=\textwidth]{figure/MUSTSchoolBadgecolor.pdf}
\end{minipage}
\begin{minipage}[t]{0.5\linewidth}
\centering
\includegraphics[width=\textwidth]{figure/MUSTSchoolBadgecolor.pdf}
\end{minipage}
\begin{minipage}[t]{0.5\linewidth}
\centering
\includegraphics[width=\textwidth]{figure/MUSTSchoolBadgecolor.pdf}
\end{minipage}
\begin{minipage}[t]{0.5\linewidth}
\centering
\includegraphics[width=\textwidth]{figure/MUSTSchoolBadgecolor.pdf}
\end{minipage}
\caption{MUSTSchoolBadgecolor.pdf - 2 }
\label{fig:MUST2}
\end{figure}
\subsubsection{Tikz Figure}
In Figure \ref{fig:flowchart} \footnote{referred from \url{https://latexdraw.com/draw-flowcharts-latex-tutorial/}} ....
\begin{figure}
\centering
\begin{tikzpicture}[font=\small,thick]
% Start block
\node[draw,
rounded rectangle,
minimum width=2.5cm,
minimum height=1cm] (block1) {START};
% Voltage and Current Measurement
\node[draw,
trapezium,
trapezium left angle = 65,
trapezium right angle = 115,
trapezium stretches,
below=of block1,
minimum width=3.5cm,
minimum height=1cm
] (block2) { Measure $I_k$, $V_k$ };
% Power and voltage variation
\node[draw,
below=of block2,
minimum width=3.5cm,
minimum height=1cm
] (block3) { $\Delta P=P_k-P_{k-1}$ \hspace{1em} $\Delta V=V_k-V_{k-1}$ };
% Conditions test
\node[draw,
diamond,
below=of block3,
minimum width=2.5cm,
inner sep=0] (block4) { $\Delta P>0$};
\node[draw,
diamond,
below left=of block4,
minimum width=2.5cm,
inner sep=0] (block5) { $\Delta V>0$};
\node[draw,
diamond,
below right=of block4,
minimum width=2.5cm,
inner sep=0] (block6) { $\Delta V>0$};
% Increase and Decrease duty cycle
\node[draw,
below=of block5,
minimum width=2.5cm,
minimum height=1cm] (block7) { $D=D+\Delta D$};
\node[draw,
left=of block7,
minimum width=2.5cm,
minimum height=1cm] (block8) { $D=D-\Delta D$};
\node[draw,
below=of block6,
minimum width=2.5cm,
minimum height=1cm] (block9) { $D=D-\Delta D$};
\node[draw,
right=of block9,
minimum width=2.5cm,
minimum height=1cm] (block10) { $D=D+\Delta D$};
% Return block
\node[draw,
rounded rectangle,
below=5cm of block4,
minimum width=2.5cm,
minimum height=1cm,] (block11) { RETURN};
\node[coordinate,below=4.35cm of block4] (block12) {};
% Arrows
\draw[-latex] (block1) edge (block2)
(block2) edge (block3)
(block3) edge (block4);
\draw[-latex] (block4) -| (block5)
node[pos=0.25,fill=white,inner sep=0]{Yes};
\draw[-latex] (block4) -| (block6)
node[pos=0.25,fill=white,inner sep=0]{No};
\draw[-latex] (block5) edge node[pos=0.4,fill=white,inner sep=2pt]{No}(block7)
(block5) -| (block8)
node[pos=0.25,fill=white,inner sep=0]{Yes};
\draw[-latex] (block6) edge node[pos=0.4,fill=white,inner sep=2pt]{No}(block9)
(block6) -| (block10)
node[pos=0.25,fill=white,inner sep=0]{Yes};
\draw (block7) |- (block12);
\draw (block9) |- (block12);
\draw (block8) |- (block7|-block12);
\draw (block10) |- (block9|-block12);
\draw[-latex] (block12) -- (block11);
\end{tikzpicture}
\caption{Tikz Flowchart}
\label{fig:flowchart}
\end{figure}
\subsection{Equation}
formula example
\subsubsection{Equtaion}
\begin{equation}
\int _ { - \epsilon } ^ { \infty } d l \: \mathrm { e } ^ { - l \zeta } \int _ { - \epsilon } ^ { \infty } d l ^ { \prime } \mathrm { e } ^ { - l ^ { \prime } \zeta } l l ^ { \prime } { \frac { l ^ { \prime } - l } { l + l ^ { \prime } } } \{ 3 \, \delta ^ { \prime \prime } ( l ) - { \frac { 3 } { 4 } } t \, \delta ( l ) \} = 0 .
\end{equation}
\begin{equation}
d s ^ { 2 } = ( 1 - { \frac { q c o s \theta } { r } } ) ^ { \frac { 2 } { 1 + \alpha ^ { 2 } } } \lbrace d r ^ { 2 } + r ^ { 2 } d \theta ^ { 2 } + r ^ { 2 } s i n ^ { 2 } \theta d \varphi ^ { 2 } \rbrace - { \frac { d t ^ { 2 } } { ( 1 - { \frac { q c o s \theta } { r } } ) ^ { \frac { 2 } { 1 + \alpha ^ { 2 } } } } } \, .
\end{equation}
\subsubsection{Multiple-Line Equation}
\begin{eqnarray}
& { \frac { \phi ^ { \prime \prime } } { A } } + { \frac { 1 } { A } } \left( - { \frac { 1 } { 2 } } { \frac { A ^ { \prime } } { A } } + 2 { \frac { B ^ { \prime } } { B } } + { \frac { 2 } { r } } \right) \phi ^ { \prime } - { \frac { 2 } { r ^ { 2 } } } \phi - \lambda \phi ( \phi ^ { 2 } - \eta ^ { 2 } ) = 0 \, .
\\
& \begin{aligned}
& { \cal L } = - { \frac { 1 } { 4 } } F _ { \mu \nu } F ^ { \mu \nu } + { \bar { \psi } } ( i \gamma ^ { \mu } D _ { \mu } - m ) \psi \, ,
\\
& S \sim \tilde { \psi } Q _ { o } \tilde { \psi } + g _ { s } ^ { 1 / 2 } \tilde { \psi } ^ { 3 } + \tilde { \phi } Q _ { c } \tilde { \phi } + g _ { s } \tilde { \phi } ^ { 3 } + \tilde { \phi } B ( g _ { s } ^ { 1 / 2 } \tilde { \psi } ) + \cdots .
\end{aligned}
\end{eqnarray}
\subsubsection{Theorem}
\begin{theorem}[Separating Axis Theorem] : \footnote{reference from \url{https://en.wikipedia.org/wiki/Hyperplane_separation_theorem}}
Let $A$ and $B$ be two disjoint nonempty convex subsets of $R^n$.
Then there exist a nonzero vector $v$ and a real number $c$ such that
\begin{equation*}
\langle x,v \rangle \geq c \quad \text{\rm and} \quad\langle y,v \rangle \leq c
\end{equation*}\label{theor:sat}
for all $x$ in $A$ and $y$ in $B$; i.e., the hyperplane $\langle\cdot ,v \rangle =c $, $v$ is normal vector, separates $A$ and $B$.
\end{theorem}
%------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
\newpage
\chapter{Chapter Three}
%\thispagestyle{plain}
\lhead{\Etitle}
\rhead{\small Chapter Three}
\setlength{\parskip}{0pt}
Chapter Three' contents.
\section{Section 3.1}
Section 3.1's contents.
%-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
\newpage
\chapter{Chapter Four}
%\thispagestyle{plain}
\lhead{\Etitle}
\rhead{\small Chapter Four}
\setlength{\parskip}{0pt}
Chapter Four's contents.
\paragraph{Paragraph} This is a paragraph.
\paragraph*{Paragraph} This is a paragraph.
\subparagraph{Sparagraph} This is a subparagraph.
\subparagraph*{Sparagraph} This is a subparagraph.
%-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
\newpage
\clearpage
\addcontentsline{toc}{chapter}{Bibliography}
%\thispagestyle{plain}
\lhead{\Etitle}
\rhead{\small Bibliography}
\setlength{\parskip}{0pt}
\bibliographystyle{apalike}
%\bibliographystyle{tJDE}
\bibliography{bibliography/bibliography}
%---------------------------------------------------------------------------
\newpage
\clearpage
\appendix
\chapter*{\appendixpagename}
\renewcommand{\thesection}{\Alph{section}}
\renewcommand{\thesubsection}{\Alph{section}.\arabic{subsection}}
\renewcommand{\thetable}{\Alph{section}.\arabic{subsection}}
\setcounter{table}{0}
\renewcommand{\thefigure}{\Alph{section}.\arabic{subsection}}
\setcounter{figure}{0}
\addappheadtotoc
\thispagestyle{fancy}
\lhead{\Etitle}
\rhead{\small \appendixpagename}
\setlength{\parskip}{0pt}
\section{Code listing}
\subsection{Code Cpp}
\begin{minted}[frame=lines, framesep=2mm,baselinestretch=1.2,breaklines,fontsize=\footnotesize,linenos]{cpp}
// leetcode 94, 110...
#include <iostream>
#include <vector>
#include <stack>
#include <queue>
#include <unordered_map>
using namespace std;
class AVL
{
public:
};
class Node // N-ary tree
{
public:
int val;
vector<Node *> children;
Node() {}
Node(int _val)
{
val = _val;
}
Node(int _val, vector<Node *> _children)
{
val = _val;
children = _children;
}
};
struct TreeNode
{
int val;
TreeNode *left;
TreeNode *right;
TreeNode() : val(0), left(nullptr), right(nullptr) {}
TreeNode(int x) : val(x), left(nullptr), right(nullptr) {}
TreeNode(int x, TreeNode *left, TreeNode *right) : val(x), left(left), right(right) {}
};
vector<int> res;
// N-ary issue
\end{minted}
% \begin{lstlisting}[language=c++]
% \end{lstlisting}
\subsection{Code Latex}
\lstinputlisting[language=TeX, title=\lstname]{titlepage.sty}
%---------------------------------------------------------------------------
\newpage
\clearpage
\addcontentsline{toc}{chapter}{Curriculum Vitae}
\chapter*{Curriculum Vitae}
%\thispagestyle{plain}
\thispagestyle{fancy}
\lhead{\Etitle}
\rhead{\small Curriculum Vitae}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% def user information
\def\Email {\url{[email protected]}}
\def\Phone {+1 2345 6789} % +1 2345 6789
\def\Web {\url{www.myweb.com}}
\def\Address {New York, USA}
\def\Photo {figure/photo.jpg} %photo picture address
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Set user information of CV
\userinformation
\aboutme{About Me}
{
}
\CVSection{Educational Background}
\CVItem{2010 - 2011, Cornell University}{MEng in Computer Science}
\CVItem{2007 - 2010, Cornell University}{BS in Computer Science}
\CVSection{Awards}
\CVSection{Working Experience}
\CVSection{Product}
\CVSection{Interests}
%---------------------------------------------------------------------------
\newpage
\clearpage
\addcontentsline{toc}{chapter}{Acknowledgements}
\thispagestyle{fancy}
\lhead{\Etitle}
\rhead{\small Acknowledgements}
\setlength{\parskip}{0pt}
\chapter*{Acknowledgements} \par
\bigskip
I am glad to.....
\vspace{1cm}
\par\rightline{\Ename}
\rightline{\Faculty}
\rightline{\today}
\end{document}