-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.tex
executable file
·154 lines (112 loc) · 3.33 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
\documentclass[12pt,oneside]{report}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\graphicspath{ {images/} }
\usepackage{caption}
\usepackage{subcaption}
\usepackage[a4paper,top=38mm,left=38mm,right=25mm,bottom=25mm]{geometry}
\usepackage{fancyhdr}
\usepackage{setspace}
\usepackage{multicol}
\usepackage{tabularx}
\usepackage{acronym}
\usepackage{lastpage}
\usepackage[titletoc]{appendix}
\usepackage{listings}
\usepackage[hyphens]{url}
\usepackage[hidelinks]{hyperref}
\hypersetup{breaklinks=true}
\urlstyle{same}
% Macros for title, author, abstract, etc.
\include{preliminaries}
\pagestyle{fancy}
\fancyhead{}
\fancyhead[RO,LE]{\runninghead}
\fancyfoot{}
\fancyfoot[LE,RO]{\thepage}
\fancyfoot[LO,CE]{Chapter \thechapter}
\fancyfoot[CO,RE]{\authorname}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}
%-----------------------------------------------
\usepackage{apacite}
\usepackage{etoolbox}
\usepackage{environ}
\newtoggle{bibdoi}
\newtoggle{biburl}
\makeatletter
\undef{\APACrefURL}
\undef{\endAPACrefURL}
\undef{\APACrefDOI}
\undef{\endAPACrefDOI}
\long\def\collect@url#1{\global\def\bib@url{#1}}
\long\def\collect@doi#1{\global\def\bib@doi{#1}}
\newenvironment{APACrefURL}{\global\toggletrue{biburl}\Collect@Body\collect@url}{\unskip\unskip}
\newenvironment{APACrefDOI}{\global\toggletrue{bibdoi}\Collect@Body\collect@doi}{}
\AtBeginEnvironment{thebibliography}{
\pretocmd{\PrintBackRefs}{%
\iftoggle{bibdoi}
{\iftoggle{biburl}{\unskip\unskip doi:\bib@doi}{}}
{\iftoggle{biburl}{Retrieved from\bib@url}{}}
\togglefalse{bibdoi}\togglefalse{biburl}%
}{}{}
}
%-------------------------------
\begin{document}
\input{justtitle}
\input{titlepage}
\input{detailpage}
\doublespacing
\pagenumbering{roman}
\input{abstract}
\chapter*{Dedication}
\dedications
\chapter*{Acknowledgements}
\acknowledgments
\clearpage % Otherwise \pagestyle affects the previous page.
{ % Enclosed in braces so that re-definition is temporary.
\pagestyle{empty} % Removes numbers from middle pages.
\fancypagestyle{plain} % Re-definition removes numbers from first page.
{
\fancyhf{}% % Clear all header and footer fields.
\renewcommand{\headrulewidth}{0pt}% Clear rules (remove these two lines if not desired).
\renewcommand{\footrulewidth}{0pt}%
}
\tableofcontents
\thispagestyle{empty} % Removes numbers from last page.
}
\listoffigures
\listoftables
\chapter*{List Of Acronyms}
\thesisabbr
\clearpage
\pagenumbering{arabic}
\chapter{Introduction}
\input{chapters/introduction}
\chapter{Aims and Objectives}
\input{chapters/aims_objectives}
\chapter{Review of Literature}
\input{chapters/review_of_literature}
\chapter{Materials and Methods}
\input{chapters/materials_methods}
\chapter{Results}
\input{chapters/results}
\chapter{Discussion}
\input{chapters/discussion}
\chapter{Conclusion}
\input{chapters/conclusion}
\bibliographystyle{apacite}
\bibliography{references}
\begin{appendices}
\chapter{Appendix 1 Title}
\input{chapters/appendix1}
\chapter{Appendix 2 Title}
\input{chapters/appendix2}
\chapter{Appendix 3 Title}
\input{chapters/appendix3}
\chapter{Appendix 4 Title}
\input{chapters/appendix4}
\chapter{Appendix 5 Title}
\input{chapters/appendix5}
\end{appendices}
\end{document}