-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMScThesis.lhs
executable file
·165 lines (140 loc) · 4.05 KB
/
MScThesis.lhs
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
% Document Class
%________________________________________________________________________
\documentclass[12pt]{report}
%________________________________________________________________________
% Imported Packages
%________________________________________________________________________
%include polycode.fmt
\usepackage{alltt}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amstext}
\usepackage{amsthm}
\usepackage{bytefield}
\usepackage{color}
\usepackage{Styles/eclbip}
\usepackage{enumerate}
\usepackage{epic}
\usepackage{Styles/fancyheadings}
\usepackage[hmargin=20mm,vmargin=30mm]{geometry}
\usepackage{graphicx}
\usepackage[pdfpagelabels,hypertexnames=false,breaklinks=true,
bookmarksopen=true,bookmarksopenlevel=2]{hyperref}
\usepackage{ifthen}
\usepackage{listings}
\usepackage{makeidx}
\usepackage[round]{natbib}
\usepackage{Styles/setspace}
\usepackage{subcaption}
\usepackage{Styles/thesis}
\usepackage{xcolor}
\usepackage{xspace}
\usepackage[all]{xy}
\usepackage{textgreek}
\usepackage{lmodern}
\usepackage{parskip}
\usepackage{comment}
\usepackage{Styles/agda}
\usepackage{Styles/AgdaChars}
\usepackage{Styles/edcomms}
\usepackage{tikz}
\usetikzlibrary{shapes,positioning,arrows.meta}
%________________________________________________________________________
% Macros and Commands
%________________________________________________________________________
% Include the macro files
\input{Macros/GeneralMathMacros}
\input{Macros/AbbreviationsMacros}
\input{Macros/ReviewMacros}
\input{Macros/EnvironmentMacros}
\input{Macros/IndexMacros}
% Import the General Thesis Information
\input{Auxiliary/ThesisInformation}
% Listings Settings
\lstdefinestyle{blockhaskell}{
language=Haskell,
basicstyle=\linespread{1}\normalsize\ttfamily,
showspaces=false,
showstringspaces=false,
tabsize=2,
breaklines=true
}
\lstdefinestyle{appendixhaskell}{
style=blockhaskell,
literate={Γ}{\textGamma}1 {Δ}{\textDelta}1 {Θ}{\texttheta}1
}
\lstdefinestyle{inline}{
basicstyle=\ttfamily\normalsize
}
\lstdefinestyle{math}{
basicstyle=\ttfamily\normalsize,
mathescape
}
\newcommand{\lstbg}[3][0pt]{{\fboxsep#1\colorbox{#2}{\strut #3}}}
\lstdefinelanguage{diff}{
morecomment=[f][\lstbg{red!20}]-, % deleted lines
morecomment=[f][\lstbg{green!20}]+, % added lines
morecomment=[f][\textit]{---}, % header lines
morecomment=[f][\textit]{+++}
}
\lstdefinestyle{diff}{
language=diff,
basicstyle=\ttfamily\footnotesize
}
\lstset{style=inline}
% Make Index
\makeindex
%________________________________________________________________________
% Document
%________________________________________________________________________
\begin{document}
% Make Title Page & Authorship
\beforepreface
% Include the Dedication
\newpage
\input{Auxiliary/Dedication}
% Abstract
\prefacesection{Abstract}
\input{Auxiliary/Abstract}
% Acknowledgements
\prefacesection{Acknowledgements}
\input{Auxiliary/Acknowledgements}
% Make Table of Contents, List of Tables & List of Figures
\afterpreface
% Introduction
\input{Auxiliary/ResetCounters}
%include Chapters/Introduction.lhs
% Related Work
\input{Auxiliary/ResetCounters}
%include Chapters/RelatedWork.lhs
% Background
\input{Auxiliary/ResetCounters}
%include Chapters/Background.lhs
% Main Contributions
\input{Auxiliary/ResetCounters}
%include Chapters/Inline.lhs
\input{Auxiliary/ResetCounters}
%include Chapters/CaseSquash.lhs
\input{Auxiliary/ResetCounters}
%include Chapters/GenPlet.lhs
\input{Auxiliary/ResetCounters}
%include Chapters/Float.lhs
% Discussion and Conclusion
\input{Auxiliary/ResetCounters}
%include Chapters/Conclusion.lhs
% Appendices
\input{Auxiliary/ResetCounters}
\appendix
%include Appendix/ToTreeless.lhs
%include Appendix/CaseSquash.lhs
%include Appendix/Compiler.lhs
% Bibliography
\bibliographystyle{plainnat}
\addcontentsline{toc}{chapter}{Bibliography}
\bibliography{Bibliography/RATH/strings,Bibliography/RATH/ref,Bibliography/RATH/crossrefs,Bibliography/ref}
% Index
\newpage
\addcontentsline{toc}{chapter}{Index}
\printindex
\end{document}
%________________________________________________________________________