-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tex
317 lines (278 loc) · 8.14 KB
/
main.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
\documentclass[12pt, twoside, bahasa]{report}
\title{Buku Tesis}
% Jika pakai windows untuk run pertama kali dan error.
% Mohon cek miktex console jika compiler latex nya menggunakan miktex.
\usepackage[indonesian]{babel}
\usepackage[pdfauthor={Nur Rohman Widiyanto},bookmarksnumbered,pdfborder={0 0 0}]{hyperref}
\usepackage[ruled,lined,commentsnumbered,linesnumbered]{algorithm2e}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{rotating}
\usepackage{booktabs}
\usepackage[ruled,lined,commentsnumbered,linesnumbered]{algorithm2e}
\usepackage{algpseudocode}
\usepackage{makeidx}
\makeindex
\usepackage{epsfig}
\usepackage{subfig}
\usepackage{pdflscape}
\usepackage[doublespacing]{setspace}
\setstretch{1.5}
\usepackage{type1cm}
\usepackage{lettrine}
\usepackage{hyperref}
\usepackage[pageref]{backref}
\usepackage{multirow}
\usepackage[table,xcdraw]{xcolor}
\usepackage{fancyhdr}
\usepackage{etoolbox}
\usepackage{url}
\usepackage{longtable}
\usepackage{float}
\usepackage{morefloats}
\floatstyle{boxed}
\newfloat{program}{thp}{lop}
\floatname{program}{Program}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{nccmath}
\usepackage{enumitem}
\usepackage{nonfloat}
\usepackage{ulem}
\usepackage[final]{pdfpages}
\usepackage{titlesec}
\usepackage{array}
\usepackage{multicol}
\usepackage{listings}
\usepackage{wrapfig}
\usepackage{array,tabularx}
\usepackage{lscape}
\usepackage{longtable}
\usepackage{caption}
\usepackage[export]{adjustbox}
\usepackage{ragged2e}
\usepackage{epsfig}
\usepackage{subfig}
\usepackage[top=35mm,left=40mm,right=30mm,bottom=30mm]{geometry}
\usepackage{pdflscape}
\usepackage[doublespacing]{setspace}
\setstretch{1.5}
\usepackage{type1cm}
\usepackage{lettrine}
\usepackage[pageref]{backref}
\usepackage{multirow}
\usepackage[table,xcdraw]{xcolor}
\usepackage{fancyhdr}
\usepackage{etoolbox}
\usepackage{url}
\usepackage{longtable}
\usepackage{float}
\usepackage{morefloats}
\floatstyle{boxed}
\newfloat{program}{thp}{lop}
\floatname{program}{Program}
\usepackage{enumitem}
\usepackage{nonfloat}
\usepackage{ulem}
\usepackage{titlesec}
\usepackage{array}
\usepackage{multicol}
\usepackage{listings}
\usepackage{wrapfig}
\usepackage{array,tabularx}
\usepackage{lscape}
\usepackage{longtable}
\usepackage{natbib}
\usepackage[export]{adjustbox}
\usepackage{ragged2e}
\usepackage[utf8]{inputenc}
\usepackage{afterpage}
\usepackage{nameref}
\usepackage[T1]{fontenc}
\usepackage{nomencl}
% Background untuk pengesahan
\usepackage{eso-pic}
\newcommand\BackgroundImage{
\put(0,0){
\parbox[b][\paperheight]{\paperwidth}{
\vfill
\centering
\includegraphics[height=\paperheight,
keepaspectratio]{lainnya/img/pengesahan_edit.jpg}
\vfill
}
}
}
% Sub sub section indent
\usepackage{changepage}
\newenvironment{subs}
{\adjustwidth{2em}{0pt}}
{\endadjustwidth}
% Set paper size and margin
\usepackage{geometry}
\geometry{
a4paper,
left=40mm,
top=35mm,
right=30mm,
bottom=30mm,
}
% Line spacing
\linespread{1.5}
% fix titlesec bug
\makeatletter
\patchcmd{\ttlh@hang}{\parindent\z@}{\parindent\z@\leavevmode}{}{}
\patchcmd{\ttlh@hang}{\noindent}{}{}{}
\makeatother
% Pengaturan format Chapter dan Section
\titleformat{\chapter}[display]{\bfseries\Large}{BAB \centering\thechapter}{0ex}{\vspace{0ex}\centering}[\vspace{3ex}]
\titlespacing*{\chapter}{0pt}{-4ex}{0pt}
\titleformat{\section}{\bfseries\large}{\MakeUppercase{\thesection}}{1ex}{}
\titlespacing{\section}{0pt}{0pt}{1ex}
\titlespacing{\subsection}{0pt}{0pt}{1ex}
\titlespacing{\subsubsection}{0pt}{0pt}{1ex}
% Keterangan rumus
\newenvironment{conditions}
{\par\vspace{\abovedisplayskip}\noindent
\tabularx{\columnwidth}{>{$}l<{$} @{${}={}$} >{\raggedright\arraybackslash}X}}
{\endtabularx\par\vspace{\belowdisplayskip}}
% Caption label bold
\usepackage[labelfont=bf]{caption}
\captionsetup{labelfont=bf}
% Jarak caption dengan obyek
\captionsetup[figure]{font=small,skip=15pt}
\captionsetup[table]{font=small,skip=15pt}
% Caption nama
\renewcommand{\figurename}{Gambar}
\renewcommand{\tablename}{Tabel}
\renewcommand{\lstlistingname}{Kode}
% Cek nomor halaman
\usepackage{changepage}
% Cek spelling
\usepackage{lipsum}
\hyphenation{meng-gerak-kan mem-per-kenal-kan pe-ri-la-ku di-je-las-kan mem-bu-tuh-kan me-ne-rap-kan hu-jan di-nya-ta-kan va-ria-bel nor-vig per-hi-tung-an chal-leng-ing al-go-rit-ma deng-an dung-eon me-nye-le-sai-kan gen-re ber-gen-re peng-gu-na-an-nya ol-ah-ra-ga ber-da-sar-kan di-ku-ra-ngi mem-bang-un be-ru-pa net-work skill}
% Definisi untuk "Hati ini sengaja dikosongkan"
\def\kosong{
\vspace*{\fill}
\begin{center}\textit{Halaman ini sengaja dikosongkan}\end{center}
\vfill
}
% Untuk citation
\newcommand{\tab}[1]{\hspace{.2\textwidth}\rlap{#1}}
\renewcommand*{\backreflastsep}{, }
\renewcommand*{\backreftwosep}{, }
\renewcommand*{\backref}[1]{}
\renewcommand*{\backrefalt}[4]{
\ifcase #1
No citations.
\or
(Dikutip pada halaman #2).
\else
(Dikutip pada halaman #2).
\fi
}
% Pengaturan penomoran halaman menggunakan package fancyhdr
\fancyhf{} % Mengosongkan header dan footer
\renewcommand{\headrulewidth}{0pt} % Menghapus garis horizontal pada header
\pagestyle{fancy} % Mengubah pagestyle dokumen menjadi fancy
\fancyfoot[CE,CO]{\thepage} % Footer kanan pada hal. ganjil dan sebaliknya
\patchcmd{\chapter}{plain}{fancy}{}{} % Mengubah pagestyle pada chapter menjadi fancy
\patchcmd{\chapter}{empty}{plain}{}{}
% Dokumen setiap bab
\begin{document}
\singlespacing
% Cover Warna
\input{lainnya/cover1.tex}
% Halaman dimulai dari sini
\pagenumbering{roman}
% Cover BW
\input{lainnya/cover2.tex}
% Tambahkan kata "Hati ini sengaja dikosongkan" pada \cleardoublepage
\patchcmd{\cleardoublepage}{\hbox{}}{\kosong}{}{}
% Lembar Pengesahan
\addcontentsline{toc}{chapter}{LEMBAR PENGESAHAN}
\input{lainnya/pengesahan.tex}
\cleardoublepage
% Pernyataan Keaslian
\addcontentsline{toc}{chapter}{PERNYATAAN KEASLIAN}
\input{lainnya/keaslian}
\cleardoublepage
% Abstrak Indonesia
\addcontentsline{toc}{chapter}{ABSTRAK}
\input{lainnya/abstrakIDN}
\cleardoublepage
% Abstrak Inggris
\addcontentsline{toc}{chapter}{ABSTRACT}
\input{lainnya/abstrakENG}
\cleardoublepage
% Kata pengantar
\addcontentsline{toc}{chapter}{KATA PENGANTAR}
\input{lainnya/pengantar}
\cleardoublepage
% Daftar isi
\renewcommand*\contentsname{DAFTAR ISI}
\addcontentsline{toc}{chapter}{\contentsname}
\titlespacing*{\chapter}{0pt}{0ex}{0ex}
\tableofcontents
\cleardoublepage
% Daftar gambar
\renewcommand*\listfigurename{DAFTAR GAMBAR}
\addcontentsline{toc}{chapter}{\listfigurename}
\titlespacing*{\chapter}{0pt}{0ex}{0ex}
\listoffigures
\cleardoublepage
% Daftar tabel
\renewcommand*\listtablename{DAFTAR TABEL}
\addcontentsline{toc}{chapter}{\listtablename}
\titlespacing*{\chapter}{0pt}{0ex}{0ex}
\listoftables
\cleardoublepage
% Nomenklatur
\addcontentsline{toc}{chapter}{NOMENKLATUR}
\input{lainnya/nomenklatur}
\cleardoublepage
% Bab isi buku
\titleformat{\chapter}[display]{\bfseries\Large}{BAB \centering\thechapter}{0ex}{\vspace{0ex}\centering}[\vspace{0ex}]
\titleformat{\section}{\bfseries\large}{\MakeUppercase{\thesection}}{1ex}{}
\titleformat{\subsection}{\bfseries\large}{\MakeUppercase{\thesubsection}}{1ex}{}
\titleformat{\subsubsection}{\bfseries\large}{\MakeUppercase{\thesubsubsection}}{1ex}{}
\titlespacing*{\chapter}{0pt}{-4ex}{0pt}
\titlespacing{\section}{0pt}{0pt}{0pt}
\titlespacing{\subsection}{0pt}{0pt}{0pt}
\titlespacing{\subsubsection}{0pt}{0pt}{0pt}
% Indent paragraph
\setlength{\parindent}{1cm}
\begin{spacing}{1.5}
\input{bab1}
\cleardoublepage
\input{bab2}
\cleardoublepage
\input{bab3}
\cleardoublepage
\input{bab4}
\cleardoublepage
\input{bab5}
\cleardoublepage
\end{spacing}
% Lampiran
\addcontentsline{toc}{chapter}{Lampiran}
\titlespacing*{\chapter}{0pt}{-4ex}{0pt}
\titlespacing{\section}{0pt}{0pt}{0pt}
\titlespacing{\subsection}{0pt}{0pt}{0pt}
\titlespacing{\subsubsection}{0pt}{0pt}{0pt}
\input{lainnya/lampiran.tex}
\cleardoublepage
% Daftar pustaka
\renewcommand\bibname{Daftar Pustaka}
\addcontentsline{toc}{chapter}{\bibname}
\titlespacing*{\chapter}{0pt}{0ex}{5ex}
\appendix
\bibliographystyle{apalike}
\bibliography{pustaka/pustaka}
\cleardoublepage
% Biografi penulis
\addcontentsline{toc}{chapter}{Biografi Penulis}
\input{lainnya/biografi.tex}
\cleardoublepage
\end{document}