-
Notifications
You must be signed in to change notification settings - Fork 29
/
thesis.tex
169 lines (136 loc) · 3.66 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
\documentclass[12pt,a4paper,oneside]{book}
% thesis information
\def\universityCh{國立交通大學}
\def\universityEn{National Chiao Tung University}
\def\collegeCh{資訊學院}
\def\collegeEn{College of Computer Science}
\def\instituteCh{資訊科學與工程研究所}
\def\instituteEn{Institute of Computer Science and Engineering}
\def\degree{Master in Computer Science}
\def\titleCh{基於卷積神經網路的論文自動生成技術}
\def\titleEn{A CNN-based Automatic Thesis Generation Technique}
\def\studentCh{王大明}
\def\studentEn{Ta-Ming Wang}
\def\advisorCh{吳小松}
\def\advisorEn{Xiao-Sung Wu}
\def\defenseYear{2020}\def\defenseYearROC{109}
\def\defenseMonth{12}\def\defenseMonthEn{Dec}
% use 'paper' flag to distinguish paper submission from electronic submission
\usepackage{etoolbox}
\newtoggle{paper}
\settoggle{paper}{false} % set to true for paper submission
% margin
\iftoggle{paper}{
\usepackage[top=2.5cm,bottom=2.5cm,left=3cm,right=2cm]{geometry}
}{
\usepackage[top=2.5cm,bottom=2.5cm,left=2.5cm,right=2.5cm]{geometry}
}
% watermark
\usepackage{background}
\iftoggle{paper}{
\backgroundsetup{contents={}}
}{
\backgroundsetup{
contents={\includegraphics[]{figures/logo.jpg}},
scale=1,
opacity=0.4,
angle=0
}
}
% line height
\linespread{1.5}
\usepackage{setspace}
% indentation
\usepackage{indentfirst}
\setlength{\parindent}{0.88cm}
% page numbering
\usepackage{fancyhdr}
\fancyhf{}
\cfoot{\thepage}
\pagestyle{fancy}
% figure and table numbering
\usepackage{chngcntr}
\counterwithout{figure}{chapter}
\counterwithout{table}{chapter}
% prevent placing figure at the middle of a empty page
\makeatletter
\setlength{\@fptop}{0pt}
\makeatother
% prevent placing floats before a section
\usepackage[section]{placeins}
\let\Oldsubsection\subsection
\renewcommand{\subsection}{\FloatBarrier\Oldsubsection}
% graphics
\usepackage{graphicx}
\graphicspath{ {./figures/} }
% source code highlighting
\usepackage{listings}
\lstset{
numbers=none,
captionpos=b,
tabsize=2,
basicstyle=\small,
frame = single
}
% bibliography
\usepackage[sorting=none,backend=bibtex]{biblatex}
\addbibresource{reference.bib}
% no header and footer bar
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
% Chinese typesetting
\usepackage{xeCJK}
\setCJKmainfont[
Path=fonts/,
BoldFont={SourceHanSansTW-Normal.otf},
ItalicFont={SourceHanSansTW-Light.otf}
]{SourceHanSansTW-Light.otf}
\newcommand{\myHuge}[1]{\fontsize{40}{50} #1}
\usepackage{pdfpages}
\usepackage{multirow}
\usepackage{array}
\usepackage{caption}
\usepackage{subcaption}
\usepackage[nounderscore]{syntax}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{subcaption}
\usepackage{algorithm}
\usepackage[noend]{algpseudocode}
\usepackage{enumerate}
\usepackage{dsfont}
\usepackage{mathtools}
\begin{document}
\newgeometry{top=2.5cm,bottom=2.5cm,left=2.5cm,right=2.5cm}
\input{covers/front.tex}
\restoregeometry
\input{covers/inside.tex}
\iftoggle{paper}{
% \includepdf{pdf/certification.pdf}
% \includepdf{pdf/authorization.pdf}
}
\pagenumbering{roman}
\input{abstracts/ch.tex}
\input{abstracts/en.tex}
\input{abstracts/acknowledge.tex}
\newpage
\addcontentsline{toc}{chapter}{Contents}
\tableofcontents
\clearpage
\addcontentsline{toc}{chapter}{\listtablename}
\listoftables
\clearpage
\addcontentsline{toc}{chapter}{\listfigurename}
\listoffigures
\mainmatter
\input{chapters/introduction.tex}
\input{chapters/background.tex}
\input{chapters/design.tex}
\input{chapters/implementation.tex}
\input{chapters/evaluation.tex}
\input{chapters/related_work.tex}
\input{chapters/discussion.tex}
\input{chapters/conclusion.tex}
\newpage
\printbibliography[heading=bibintoc,title={References}]
\end{document}