-
Notifications
You must be signed in to change notification settings - Fork 3
/
thesis.tex
executable file
·115 lines (91 loc) · 3.1 KB
/
thesis.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
% !TEX spellcheck = en-US
\documentclass[twoside,a4,12p]{report} %,draft,openright]
\usepackage{amsmath}%for equation split
\usepackage{mathalfa}%
\usepackage{epsfig}
\usepackage{graphicx}
\usepackage{float}
\usepackage{subfigure}
\usepackage{url}
\usepackage{color}
\usepackage{multirow}
\usepackage{array}
%\usepackage{mathrsfs}
\usepackage[mathscr]{euscript}
\usepackage{CJKutf8}
%\usepackage[T1]{fontenc}
%\AtBeginDvi{\input{zhwinfonts}}
% define arg min
\DeclareMathOperator*{\argmin}{arg\,min}
% Add psudeo-code
\usepackage{algorithm}
\usepackage{algorithmic}
%\usepackage{algpseudocode}% http://ctan.org/pkg/algorithmicx
\makeatletter
\newcommand\fs@ruled@notop{\def\@fs@cfont{\bfseries}\let\@fs@capt\floatc@ruled
\def\@fs@pre{}%
\def\@fs@post{\kern2pt\hrule\relax}%
\def\@fs@mid{\kern2pt\hrule\kern2pt}%
\let\@fs@iftopcapt\iftrue}
\renewcommand\fst@algorithm{\fs@ruled@notop}
\makeatother
\restylefloat{algorithm}
\usepackage{latexsym,amssymb}
\usepackage{setspace,cite}
% for margins left, right top bottom
\usepackage{anysize}
\marginsize{4cm}{2.5cm}{4cm}{4cm}
\usepackage[pdftex,
bookmarks=true,% %%% generate bookmarks ...
bookmarksnumbered=true,% %%% ... with numbers
bookmarksopen=true,% %%% show complete tree of bookmarks
hypertexnames=true,% %%% needed for correct links to figures !!!
breaklinks=true,% %%% break links if exceeding a single line
colorlinks=true,
linkcolor=black,
citecolor=blue,
pagecolor=blue,
pagebackref=false,
urlcolor=blue]{hyperref}
%\usepackage{draft} %draft option - doesn't put full figures in -
% useful when editing
%does the headers on the pages - keep in
\usepackage{fancyhdr}
%omitting any of these makes the thesis compile without the omitted
%chapter - good for editing single chapters.
%\includeonly{header,intro,background,appendix}
\begin{document}
\newpage
%Puts page numbering of preamble in roman and of main body of thesis in
%arabic. Also defines how chapters and sections are made
\pagenumbering{arabic}
\setcounter{page}{1} \pagestyle{fancy}
\renewcommand{\chaptermark}[1]{\markboth{\chaptername%
\ \thechapter:\,\ #1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\,\ #1}}
%DEFINES TITLE PAGE, and contains abstract, acknowledgements, etc.
\include{tex/header}
\newpage
%sets up headers for lefthand and righthand pages. To alter, edit
%these lines and the chaptermark/sectionmark lines above
\addtolength{\headheight}{3pt} \fancyhead{}
\fancyhead[LE]{\sl\leftmark} \fancyhead[LO,RE]{\rm\thepage}
\fancyhead[RO]{\sl\rightmark} \fancyfoot[C,L,E]{}
\pagenumbering{arabic}
%\singlespacing
%\doublespacing
\onehalfspacing
\input{tex/intro.tex}
\input{tex/background.tex}
\input{tex/methodology.tex}
\input{tex/result.tex}
\input{tex/conclusion.tex}
\appendix
\input{tex/appendix.tex}
% this is for BibTeX. remove if you plan to write the references in the document
\bibliographystyle{unsrt}
\bibliography{refs}
%adds the bibliography to the table of contents
\addcontentsline{toc}{chapter}
{\protect\numberline{Bibliography\hspace{-96pt}}}
\end{document}