-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdissertation.tex
192 lines (151 loc) · 5.79 KB
/
dissertation.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
% Root File for a UCSB Dissertation
%
%
\documentclass[12pt,oneside,final]{ucthesis}
% \documentclass[12pt,oneside,final]{ucthesis}
% todo: final options: [12pt,oneside,final]
\usepackage{graphics,epsfig,slashbox}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{cite}
\usepackage{times}
\usepackage{url}
\usepackage{paralist}
\usepackage{wrapfig}
\usepackage{caption}
%\DeclareCaptionType{copyrightbox}
\usepackage{import}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{color}
\usepackage{url}
\usepackage[pdfborder={0 0 0}]{hyperref}
\usepackage{breakurl} % Note this is to fix the extra long URLs in the
% bibliography. Necessary when going from tex -> dvi
% -> postscript -> pdf
\usepackage{multirow}
\usepackage[final]{listings}
\usepackage{textcomp}
\usepackage{upquote}
\usepackage{tikz}
\usetikzlibrary{snakes,arrows,shapes}
\usepackage{xspace}
\usepackage{mdframed}
\DeclareCaptionFont{ssp}{\ssp}
\captionsetup{textfont=ssp}
% Making the listings look consistent
%% listing settings
\lstset{ %
upquote=true % make quotes in code straight not curved.
basicstyle=\footnotesize\ttfamily, % the size of the fonts that are used for the code
keywordstyle=\color{black}\bfseries, %The style to use for keywords
numbers=left, % where to put the line-numbers
numberstyle=\footnotesize, % the size of the fonts that are used for the line-numbers
stepnumber=1, % the step between two line-numbers. If it's 1, each line
% will be numbered
numbersep=5pt, % how far the line-numbers are from the code
backgroundcolor=\color{white}, % choose the background color. You must add \usepackage{color}
showspaces=false, % show spaces adding particular underscores
showstringspaces=false, % underline spaces within strings
showtabs=false, % show tabs within strings adding particular underscores
frame=tb, % adds a frame around the code
tabsize=2, % sets default tabsize to 2 spaces
captionpos=b, % sets the caption-position to bottom
breaklines=true, % sets automatic line breaking
breakatwhitespace=false, % sets if automatic breaks should only happen at whitespace
title=\lstname, % show the filename of files included with \lstinputlisting;
% also try caption instead of title
escapeinside={\%*}{*)}, % if you want to add a comment within your code
morekeywords={*,...}, % if you want to add more keywords to
}
% Cool stuff I took from here:
% http://tex.stackexchange.com/questions/73112/how-to-create-local-labels-refs-in-latex
% macro to define a local label
\newcommand\locallabel[1]{\label{\currentprefix:#1}}
% macro to use a local reference
\newcommand\localref[1]{\ref{\currentprefix:#1}}
% This is to add space between chapters to the list of listings
% http://tex.stackexchange.com/questions/10159/grouping-the-list-of-listings-by-chapter
\let\Chapter\chapter
\def\chapter{\addtocontents{lol}{\protect\addvspace{10pt}}\Chapter}
% Commands for the scanners used in the papers:
\newcommand{\acunetix}{Acunetix}
\newcommand{\appscan}{AppScan}
\newcommand{\burp}{Burp}
\newcommand{\grendelscan}{Grendel-Scan}
\newcommand{\hailstorm}{Hailstorm}
\newcommand{\milescan}{Milescan}
\newcommand{\nstalker}{N-Stalker}
\newcommand{\ntospider}{NTOSpider}
\newcommand{\paros}{Paros}
\newcommand{\webinspect}{Webinspect}
\newcommand{\waf}{w3af}
\newcommand{\wget}{wget}
\newcommand{\skipfish}{skipfish}
\newcommand{\crawler}{state-aware-scanner}
\newcommand{\initial}{INITIAL}
\newcommand{\config}{CONFIG}
\newcommand{\manual}{MANUAL}
% commands to refer to the applications
\newcommand{\wackopicko}{WackoPicko v2}
\newcommand{\vanillaforums}{Vanilla Forums}
\newcommand{\wordpress}{WordPress v3}
\newcommand{\wordpresstwo}{WordPress v2}
\newcommand{\gallery}{Gallery}
\newcommand{\phpbbtwo}{PhpBB v2}
\newcommand{\phpbbthree}{PhpBB v3}
\newcommand{\scarf}{SCARF}
\newcommand{\simplecms}{Simple CMS}
\newcommand{\finalapp}{TODO FINAL}
% commands of dedacota
\newcommand{\dedacota}{{\sc deDacota}\xspace}
\newcommand{\csh}{C\#\xspace}
\newcommand{\opentag}{\texttt{<\%}\xspace}
\newcommand{\closetag}{\texttt{\%>}\xspace}
\newcommand{\opentageq}{\texttt{<\%=}\xspace}
\newcommand{\dotwrite}{\texttt{Text\-Writer.Write}\xspace}
%% Document Parts
% run latex with only these files; it's faster without all eps figures etc.
%\includeonly{Title,Front,Intro}
%\includeonly{Title,Front,Intro,Literature,Chapter1,Chapter2,Conclusions}
%%% Document Portion:
\begin{document}
%% Front Matter:
\include{title} % First Page
\maketitle % Make Title Page
\begin{frontmatter}
\approvalpage
\copyrightpage
%\input{dedicate}
\include{acknowledgements}
\include{vitae}
%\input{Preface}
\include{abstract}
\tableofcontents
\listoffigures
\listoftables
\lstlistoflistings
\addcontentsline{toc}{chapter}{Listings}
\end{frontmatter}
% the chapters
% spacing in figures and tables and their captions can be
% changed here (\ssp for single-space, empty for same as surrounding
% text); for this to work, the command \figsp has to be included
% in every figure and table right after the \begin{figure}
\def\figsp{\ssp}
%\def\figsp{}
\include{intro}
\include{related-work}
\subincludefrom{black-box/}{black-box}
\subincludefrom{ears/}{ears}
\subincludefrom{dedacota/}{dedacota}
\include{conclusion}
\ssp % bibliography can be single-spaced for UC thesis format
\bibliography{dissertation}
\bibliographystyle{abbrv}%{unsrt}%{alpha}{siam}{apalike}{ieeetr}{plain}{acm}{abbrv}
%\bibliographystyle{IEEE-Alpha}
%% \part*{\addcontentsline{toc}{part}{Appendices}Appendices}
%% \appendix
%% \include{appendix}
\end{document}