-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tex
195 lines (155 loc) · 5.28 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
\documentclass[12pt, a4paper, final]{report}
\usepackage[T1]{fontenc}
\usepackage{fontspec}
\usepackage{graphicx} % Required for inserting images
\usepackage[left=3cm, top=2.54cm, right=2.54cm]{geometry}
\usepackage[hidelinks]{hyperref}
\usepackage{setspace}
\usepackage{multicol}
\usepackage{tabularx}
\usepackage{titlesec}
\usepackage{tocloft}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{setspace}
\usepackage{afterpage}
\usepackage{float}
\usepackage{parskip}
\usepackage{subfiles}
% variables: to be filled
\newcommand{\thesisTitle}{Thesis Title}
\newcommand{\submissionDate}{October 2023}
% Authors
\newcommand{\authorA}{Author A}
\newcommand{\authorARoll}{1702***}
\newcommand{\authorB}{Author B}
\newcommand{\authorBRoll}{1702***}
% Supervisor
\newcommand{\supervisor}{Supervisor Name}
\newcommand{\supervisorDesignation}{Supervisor Designation}
% External
\newcommand{\external}{External Name}
\newcommand{\externalDesignation}{External Designation}
\newcommand{\externalDept}{Department of Mechaincal Engineering}
\newcommand{\externalUni}{Rajshahi University of Engineering \& Technology}
% Department Head
\newcommand{\deptHead}{Dept. Head Name}
% Definitons
\newcommand{\dept}{Department of Mechaincal Engineering}
\newcommand{\ruet}{Rajshahi University of Engineering \& Technology}
\newcommand{\ruetBD}{Rajshahi University of Engineering \& Technology, Bangladesh}
\newcommand{\tagline}{Heaven’s light is our guide}
% chapter headings
\renewcommand\thechapter{\arabic{chapter}}
% Customize chapter headings
\titleformat{\chapter}[display]
{\centering\fontsize{16}{16}\selectfont\bfseries}
{Chapter \thechapter}
{0em}
{\vspace{0.3\baselineskip}}
% Customize section headings
\titlespacing{\section}{0pt}{1.5\baselineskip}{0.7\baselineskip}
\titleformat{\section}[hang]
{\fontsize{13}{13}\selectfont\bfseries}
{\thesection}
{0.5em}
{}
% Customize subsection headings
\titleformat{\subsection}[hang]
{\fontsize{12}{1em}\selectfont\bfseries}
{\thesubsection}
{0.5em}
{}
%table of contents format
\setlength{\cftsecindent}{64pt}
\setlength{\cftchapindent}{15pt}
\setlength{\cftsubsecindent}{95pt}
\setlength{\cftchapnumwidth}{45pt}
\setlength{\cftbeforetoctitleskip}{0pt}
\renewcommand{\cftsecleader}{\hfill}
\renewcommand{\cftsubsecleader}{\hfill}
\renewcommand{\cftchapfont}{\bfseries \fontsize{12pt}{1pt} \selectfont }
\renewcommand{\cftchappagefont}{\normalfont}
\renewcommand{\contentsname}{\hfill\bfseries\Large List of contents \hfill}
\renewcommand{\cftaftertoctitle}{\hfill}
\addtocontents{toc}{\protect\contentsline{chapter}{\hspace{-15pt}Chapter\hspace{15pt}Title}{\bfseries Page No.\hspace{-15pt}}{}}
\addtocontents{toc}{\protect\vspace*{0.5\baselineskip}}
% List of Figures format
\setlength{\cftfignumwidth}{50pt}
\cftsetindents{figure}{0em}{4.4em}
\renewcommand{\cftloftitlefont}{\hfill\bfseries \fontsize{16pt}{1pt} \selectfont}
\renewcommand{\cftafterloftitle}{\hfill}
\renewcommand{\cftfigdotsep}{\cftnodots}
\addtocontents{lof}{\protect\contentsline{table}{\bfseries\hspace{-20pt}Figure No.\hspace{15pt}Title}{\bfseries Page No.\hspace{-15pt}}{}}
\addtocontents{lof}{\protect\vspace*{0.5\baselineskip}}
% List of Tables format
\setlength{\cfttabnumwidth}{52pt}
\cftsetindents{table}{0em}{4em}
\renewcommand{\listtablename}{ List of tables }
\renewcommand{\cftlottitlefont}{\hfill\bfseries \fontsize{16pt}{1pt} \selectfont}
\renewcommand{\cftafterlottitle}{\hfill}
\renewcommand{\cfttabdotsep}{\cftnodots}
\addtocontents{lot}{\protect\contentsline{table}{\bfseries\hspace{-15pt}Table No.\hspace{15pt}Title}{\bfseries Page No.\hspace{-15pt}}{}}
\addtocontents{lot}{\protect\vspace*{0.5\baselineskip}}
% import Font for ruet tagline - heaven's light is our guide.
\newfontfamily\monocorsiva[Path=fonts/]{Monotype-Corsiva.ttf}
\setmainfont{Times New Roman}
\setlength{\parindent}{0pt}
% Spacing after table caption
\captionsetup[table]{skip=1em}
\hypersetup
{
pdfauthor={\authorA, \authorB},
pdfsubject={BSc Thesis},
pdftitle={\thesisTitle~~- BSc Thesis by\authorA~~and \authorB},
pdfkeywords={RUET, Thesis, Report, \dept}
}
\begin{document}
\pagenumbering{roman}
\subfile{cover.tex}
\newpage
\subfile{fulfilment.tex}
\newpage
\subfile{chapters/i_certificate.tex}
\newpage
\subfile{chapters/ii_acknowledgment.tex}
\newpage
\subfile{chapters/iii_abstract.tex}
\newpage
\addcontentsline{toc}{section}{List of contents}
\tableofcontents
\newpage
\addcontentsline{toc}{section}{List of figures}
\listoffigures
\newpage
\subfile{chapters/abbreviations.tex}
\newpage
\addcontentsline{toc}{section}{List of tables}
\listoftables
\clearpage
\pagenumbering{arabic}
\setstretch{1.15} % Adjust line spacing to 1.15
\newpage
\subfile{chapters/1_introduction.tex}
\newpage
\subfile{chapters/2_literature-review.tex}
\newpage
\subfile{chapters/3_methodology.tex}
\newpage
\subfile{chapters/4_results-and-discussions.tex}
\newpage
\subfile{chapters/5_conclusion.tex}
\newpage
\addcontentsline{toc}{chapter}{\hspace{42pt} References}
\renewcommand\bibname{References}
\bibliographystyle{ieeetr}
\bibliography{bibliography.bib}
\appendix
% Customize appendix chapter headings
\titleformat{\chapter}[display]
{\centering\fontsize{16}{16}\selectfont\bfseries}
{\vspace{-1\baselineskip}}
{0em}
{\vspace{0.3\baselineskip}}
\subfile{chapters/appendix.tex}
\end{document}