-
Notifications
You must be signed in to change notification settings - Fork 0
/
thesis.tex
215 lines (172 loc) · 6.88 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
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
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
\documentclass[10pt]{book}
%% We want UK-english and Dutch hyphenation patterns.
\usepackage[english]{babel}
%% Use scalable, PostScript Type 1 versions of the Computer Modern fonts.
\usepackage{type1cm}
%% Replace the standard Computer Modern Typewriter font LaTeX uses
%% for monospace text with the PostScript font Adobe Courier.
\usepackage{courier}
%% Redefine the font used for the section headings to
%% Helvetica-Narrow Bold.
\usepackage{sectsty}
\allsectionsfont{\usefont{OT1}{phv}{bc}{n}\selectfont}
%% Use fancy chapter headers, with Jos Dingjan's modifications,
%% plus my own tweaks. This style is not part of teTeX,
%% so we are using a local (and renamed) copy.
\usepackage[Lenny]{StyleFiles/fncychapleo}
%% Nicely format and linebreak URLs in the bibliography (and elsewhere).
\usepackage{url}
%% Define a new 'leo' style for the package that will use a smaller font.
\makeatletter
\def\url@leostyle{%
\@ifundefined{selectfont}{\def\UrlFont{\sf}}{\def\UrlFont{\small\ttfamily}}}
\makeatother
%% Now actually use the newly defined style.
\urlstyle{leo}
%% Standard graphics support. Always use this package
%% instead of the older 'graphics' package.
\usepackage{graphicx}
%% Allow relative font size specifications (e.g. \smaller, \larger).
\usepackage{relsize}
%% For defining all text/page measurements. 170x240mm is the
%% standard thesis page size Ponsen & Looijen require. 124x185mm is
%% simply a text body size that resulted in margins that pleased me.
%% The dvips option will be superceded if pdflatex is used, but is
%% necessary in order to generate a correct PostScript bounding box
%% under standard LaTeX.
\usepackage[vcentering,dvips,includeheadfoot,margin=0.5in]{geometry}
\geometry{papersize={170mm,240mm},total={124mm,185mm}}
%% For printing crop-marks in a final a4 version. This is not used
%% in the final 170x240mm-sized version to be delivered to Ponsen & Looijen.
%\usepackage[a4,cam,center]{crop}
%\crop[font=\upshape\mdseries\small\textsf]
%% We will completely define our own header strings, so switch the fancy
%% headers on, but nuke all the default values. (Note that this package
%% *has* to load after the geometry package!)
%% Nicer formatting of figure captions.
\usepackage[font=small,format=plain,labelfont=bf,up,textfont=it,up]{caption}
%% Make sure that the bibliography is listed in the table of contents,
%% but that the table of contents itself is not.
\usepackage[nottoc]{tocbibind}
%% Control the fonts and formatting used in the table of contents.
\usepackage[titles]{tocloft}
%% Use Helvetica-Narrow Bold for Chapter entries
\renewcommand{\cftchapfont}{%
\fontsize{11}{13}\usefont{OT1}{phv}{bc}{n}\selectfont
}
%% Because of the font change, the page number becomes too large for the
%% horizontal space LaTeX reserves for it by default. Without the following
%% redefines to fix it, this would cause the Chapter entry page numbers
%% to extend a few points into the right margin. The horror!
\makeatletter
\renewcommand{\@pnumwidth}{1.75em}
\renewcommand{\@tocrmarg}{2.75em}
\makeatother
%% Aesthetic spacing redefines that look nicer to me than the defaults.
\setlength{\cftbeforechapskip}{2ex}
\setlength{\cftbeforesecskip}{0.5ex}
%% Support for more complex bibliography handling.
\usepackage[square,authoryear,sort&compress]{natbib}
%% Custom bibliography style defined using the Makebst utility
%% that comes with the natbib package.
\bibliographystyle{alpha}
%% Include entire AMS Theorem package, just because we want to use the
%% unnumbered \newtheorem* environment it provides.
%\usepackage{StyleFiles/watermark}
\usepackage{multirow}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{amssymb}
\newtheorem*{definition}{Definition}
%% Thesis-specific, self-defined grammar styles, based on originals by
%% Kees van Reeuwijk. These styles work just fine, but have one problem
%% and that is that they cause lots of "underfull hbox" errors during
%% compilation. I have never had the time to look into a way of fixing this.
%\usepackage{StyleFiles/vnusgrammar}
%\usepackage{StyleFiles/rlgrammar}
\usepackage{algorithmic}
\usepackage{algorithm}
%\numberwithin{algorithm}{chapter}
\usepackage{setspace}
\usepackage{subfig}
\usepackage{tikz}
\usepackage{tikz,fullpage}
\usetikzlibrary{arrows,%
petri,%
topaths}%
\usepackage{tkz-berge}
\usepackage{ifthen}
\usepackage{ifpdf}
\input{defs}
\input{00-Macros/MacroFile1}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
%% Now begin customising things. See the fancyhdr docs for more info.
\renewcommand{\chaptermark}[1]{\markboth{\MakeUppercase{#1}}{}}
\renewcommand{\sectionmark}[1]{\markright{\MakeUppercase{#1}}{}}
\renewcommand{\headrulewidth}{0pt}
\setlength{\headheight}{20pt}
%% The actual manuscript starts here.
\begin{document}
%% Not used in the final version (where the cover is separately
%% specified as the Illustrator file thesis-cover.ai.
%\include{cover}
\include{titlepage}
\include{00-Dedication/dedication}
\frontmatter{}
\setlength{\oddsidemargin}{1in}
%% Configuration of the header strings for the frontmatter pages.
\fancyhead[RO]{{\footnotesize\rightmark}\hspace{2em}\thepage}
\setcounter{tocdepth}{2}
\fancyhead[LE]{\thepage\hspace{2em}\footnotesize{\leftmark}}
\fancyhead[RE,LO]{}
\fancyhead[RO]{{\footnotesize\rightmark}\hspace{2em}\thepage}
\include{00-Acknowledgement/acknowledgement}
\include{0-Abstract/abstract}
\tableofcontents
\listoffigures
\mainmatter
%% Configuration of the header strings for the main manuscript pages.
\fancyhead[RE,LO]{\thesection}
\include{1-Introduction/introduction}
\include{2-HistoryOfRouting/history}
\include{3-MultipathRouting/multipath}
\include{4-Theory/theory}
\include{5-CornerMultipath/cornerstones}
\include{6-MaterialMethods/materials}
\include{7-Results/results}
\include{8-Conclusions/conclusions}
%% Configuration of the header strings for the Appendices
\renewcommand{\chaptermark}[1]{%
\markboth{\MakeUppercase{\appendixname\ \thechapter}}%
{\MakeUppercase{#1}}
}
\fancyhead[RE,LO]{}
\appendix
\include{9-Appendix1/appendix1}
\include{9-Appendix2/appendix2}
\backmatter
%% Configuration of the header strings for the backmatter pages.
\renewcommand{\chaptermark}[1]{\markboth{\MakeUppercase{#1}}{}}
\renewcommand{\sectionmark}[1]{\markright{\MakeUppercase{#1}}{}}
\renewcommand{\headrulewidth}{0pt}
\fancyhead[LE]{\thepage\hspace{2em}\footnotesize{\leftmark}}
\fancyhead[RE,LO]{}
\fancyhead[RO]{{\footnotesize\leftmark}\hspace{2em}\thepage}
%\bibliographystyle{Classes/CUEDbiblio}
%\bibliographystyle{Classes/jmb}
%\bibliographystyle{plainnat} %this works with package natbib
%\bibliographystyle{Classes/jmb} % bibliography style
\renewcommand{\bibname}{References} % changes default name Bibliography to References
\bibliography{9-References/references} % References file
%\addcontentsline{toc}{chapter}{References} %adds References to contents page
%\begin{titlepage}
%\fancyhf{}
%\newpage
%\mbox{}
%\newpage
%\mbox{}
%\newpage
%\end{titlepage}
\end{document}