generated from Allegheny-Computer-Science-Thesis-2021/cmpsc-dept-thesis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSeniorThesis.tex
executable file
·154 lines (120 loc) · 5.56 KB
/
SeniorThesis.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
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% This document provides a sample senior
% thesis proposal template for use
% by Allegheny's Computer Science majors.
%
% This template was adopted from Jeremie Gillet
% Ref: https://github.com/oist/LaTeX-templates
%
% Author: Janyl Jumadinova
% Last Updated: 15 October 2021
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%----------------------------------------------------------------------------------------
% PACKAGES AND OTHER DOCUMENT CONFIGURATIONS
%----------------------------------------------------------------------------------------
\documentclass[12pt,oneside]{book} % 12 pt font, one-sided book style
\usepackage[a4paper, includehead, headheight=0.6cm, inner=3cm ,outer=2.5cm, top=2.5 cm, bottom=2.5cm]{geometry} % Changing size of document
\usepackage[english]{babel} % The document is in English
\usepackage[utf8]{inputenc} % UTF8 encoding
\usepackage[T1]{fontenc} % Font encoding
\usepackage{graphicx} % For including images
\graphicspath{{./images/}} % Specifies the directory where images are stored
\usepackage{longtable} % tables that can span several pages
\usepackage[bf]{caption} % caption: FIG in bold
\usepackage{fancyhdr} % For the headers
\newcommand{\numberedchapter}{ % Preparation for numbered chapters
\cleardoublepage % To make sure the previous headers are passed
\fancyhead[RE]{{\bfseries \leftmark}}% Headers for left pages
\fancyhead[LO]{{\bfseries \rightmark}}}% Headers for right pages
\newcommand{\unnumberedchapter}[1]{ % Preparation for unnumbered chapters
\cleardoublepage % To make sure the previous headers are passed
\addcontentsline{toc}{chapter}{#1} % Also adds the chapter name to the Contents
\fancyhead[RE]{{\bfseries #1}} % Headers for left pages
\fancyhead[LO]{}}%Headers for right pages
\def\code#1{\texttt{#1}}
\usepackage{emptypage} % No headers on an empty page
\usepackage{eso-pic} % For the background picture on the title page
\newcommand\BackgroundPic{%
\put(0,-120){%
\parbox[b][\paperheight]{\paperwidth}{%
\vfill
\centering
\includegraphics[width=4in]{images/logo}%
\vfill
}}}
\usepackage{hyperref} % Adds clickable links at references
\usepackage{listings}
%----------------------------------------------------------------------------------------
% ADD YOUR CUSTOM VALUES, COMMANDS AND PACKAGES
%----------------------------------------------------------------------------------------
% Open preamble/mydefinitions.tex and enter some values (name, thesis title...)
% and include your own custom LaTeX functions and packages
\input{preamble/mydefinitions}
\begin{document}
%----------------------------------------------------------------------------------------
% TITLE PAGE
%----------------------------------------------------------------------------------------
\pagestyle{empty} % No page numbers
\frontmatter % Use roman page numbering style (i, ii, iii, iv...) for the preamble pages
\begin{titlepage}
\AddToShipoutPicture*{\BackgroundPic}
\begin{center}
\vfill
{\large \scshape Allegheny College \\ Department of Computer Science }\\[1.4cm]
{\Large Senior Thesis}\\[0.5cm]
\rule{\textwidth}{1.5pt}\\[0cm]
{\huge \bfseries \thesistitle \par \ }\\[-0.5cm]
\rule{\textwidth}{1.5pt}\\[2.5cm]
\hfill by\\[1cm]
\hfill {\large \bfseries\name}\\
\vfill
{\hfill \large Project Supervisor: \textbf{\supervisor}} \\
\ifx\cosupervisor\undefined\else{\hfill \large Co-Supervisor: \textbf{\cosupervisor}} \\ \fi
\vspace{1cm}
\hfill \submissiondate
\end{center}
\end{titlepage}
\pagestyle{fancy} % Changes the headers
\fancyhf{}% Clears header and footer
\fancyhead[RO,LE]{\thepage} % page number on the outside of headers
%-------------------------------------------------------------------------------
% PREAMBLE PAGES (delete unnecessary pages)
% preamble pages besides abstract are optional
%-------------------------------------------------------------------------------
\input{preamble/abstract}
\input{preamble/acknowledgments}
\input{preamble/abbreviations}
\input{preamble/glossary}
\input{preamble/dedication}
%-------------------------------------------------------------------------------
% LIST OF CONTENTS/FIGURES/TABLES
%-------------------------------------------------------------------------------
\unnumberedchapter{Contents}
\tableofcontents % Write out the Table of Contents
\unnumberedchapter{List of Figures}
\listoffigures % Write out the List of Figures
\unnumberedchapter{List of Tables}
\listoftables % Write out the List of Tables
%-------------------------------------------------------------------------------
% THESIS MAIN TEXT
%-------------------------------------------------------------------------------
\addtocontents{toc}{\vspace{2em}} % Add a gap in the Contents, for aesthetics
\mainmatter % Begin numeric (1,2,3...) page numbering
%\numberedchapter{Introduction} % Title of the numbered chapter
\input{chapters/ch01_introduction} % Introduction (first numbered chapter)
%\numberedchapter{Related Work}
\input{chapters/ch02_relatedwork}
%\numberedchapter{Method Of Approach}
\input{chapters/ch03_method}
%\numberedchapter{Experimental Results}
\input{chapters/ch04_experiments}
%\numberedchapter{Conclusion}
\input{chapters/conclusion}
%----------------------------------------------------------------------------------------
% BIBLIOGRAPHY
%----------------------------------------------------------------------------------------
\addtocontents{toc}{\vspace{2em}} % Add a gap in the Contents, for aesthetics
\unnumberedchapter{Bibliography} % Title of the unnumbered chapter
\bibliography{preamble/bibliography} % The references information are stored in the file named "bibliography.bib"
\end{document}