forked from stevecheckoway/ucsddissertation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpreamble.tex
271 lines (232 loc) · 6.62 KB
/
preamble.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
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
\usepackage{times}
%\usepackage[latin1]{inputenc}
\usepackage{fixltx2e}
\usepackage{xcolor}
\usepackage{footnote}
\usepackage{amssymb,amsfonts,amsmath}
\usepackage{booktabs}
\usepackage{graphicx}
\usepackage[export]{adjustbox}
\usepackage{subfig}
%\usepackage[sc]{mathpazo} % Palatino at 10pt is smaller than Times at 11pt
%\usepackage[scaled=0.86]{berasans}
\usepackage[scaled=1.03]{inconsolata} % Use Inconsolata instead of CMTT
\usepackage[T1]{fontenc}
\usepackage{pifont}
\usepackage{url}
\usepackage[htt]{hyphenat}
\usepackage{verbatim}
%\usepackage[explicit]{titlesec}
\usepackage[justification=centering]{caption}
%\usepackage[captionskip=5pt]{floatrow}
%\floatsetup[table]{style=plain}
%\setlength\textfloatsep{10pt}
\usepackage{color}
\usepackage{multirow}
%\usepackage{subcaption}
\usepackage{wasysym}
\usepackage{relsize}
\usepackage{array}
\usepackage{xspace}
% Clickable link colors here:
\definecolor{linkcol}{rgb}{0,0,0}
\definecolor{citecol}{rgb}{0,0,0}
\definecolor{urlcol}{rgb}{0,0,0.75}
\newcommand\xxx[1]{\textcolor{red}{\textbf{XXX: #1}}}
\newcommand\veryemph[1]{\textbf{#1}}
%\usepackage[bookmarks=true,%
% bookmarksnumbered=true,%
% colorlinks=true,%
% linkcolor=linkcol,%
% citecolor=citecol,%
% urlcolor=urlcol,%
% hypertexnames=true,%
% pdfpagelabels]{hyperref}
%\usepackage[margin=1in]{geometry}
% Christian's magic space-saving stuff.
% http://www-h.eng.cam.ac.uk/help/tpl/textprocessing/squeeze.html
%
\renewcommand\floatpagefraction{.9}
\renewcommand\topfraction{.9}
\renewcommand\bottomfraction{.9}
\renewcommand\textfraction{.1}
\setlength{\parskip}{0em}
\frenchspacing
% Kirill's dainty list environments.
\newenvironment{prettylist}{
\begin{list}{
\footnotesize\raisebox{0.1mm}{\small\ding{118}}
}{
\setlength\topsep{2pt plus 1pt minus 1pt}
\setlength\leftmargin{2em}
\setlength\rightmargin{0pt}
\setlength\itemsep{1pt plus.1pt}
\setlength\parskip{0pt}
\setlength\parsep{0pt}
\setlength\itemindent{0pt}
}
}{
\end{list}
}
\newenvironment{catinfolist}{
% Environment preamble
\begin{list}{
\% No label
}{
% List declaration
%\raggedright
\setlength\topsep{5pt plus 2pt minus 1pt}
\setlength\leftmargin{12pt}
\setlength\labelwidth{12pt}
\setlength\rightmargin{0pt}
\setlength\itemsep{1pt}
\setlength\parskip{0pt}
\setlength\parsep{0.25pt}
\setlength\labelsep{0ex}
\setlength\itemindent{0pt}
\setlength\listparindent{0pt}
\renewcommand\makelabel[1]{\bfseries$\circ$\hspace{6pt}\upshape ##1:\hspace{0.5em}}
}
}{
% Environment closing
\end{list}
}
\newenvironment{categorylist}{
% Environment preamble
\begin{list}{
\% No label
}{
% List declaration
%\raggedright
\setlength\topsep{5pt plus 2pt minus 1pt}
\setlength\leftmargin{24pt}
\setlength\labelwidth{12pt}
\setlength\rightmargin{0pt}
\setlength\itemsep{1pt}
\setlength\parskip{0pt}
\setlength\parsep{0.25pt}
\setlength\labelsep{0ex}
\setlength\itemindent{0pt}
\setlength\listparindent{0pt}
\renewcommand\makelabel[1]{\bfseries$\circ$\hspace{6pt}\upshape ##1:\hspace{0.5em}}
}
}{
% Environment closing
\end{list}
}
\newenvironment{findinglist}{
% Environment preamble
\begin{list}{
\footnotesize\raisebox{-0pt}{\footnotesize\ding{70}}
}{
\setlength\topsep{2pt plus 1pt minus 1pt}
\setlength\leftmargin{2em}
\setlength\rightmargin{0pt}
\setlength\itemsep{1pt plus.1pt}
\setlength\parskip{0pt}
\setlength\parsep{0pt}
\setlength\itemindent{0pt}
}
}{
% Environment closing
\end{list}
}
\newenvironment{characteristics}{
% Environment preamble
\begin{list}{
% No label
}{
% List declaration
\setlength\topsep{5pt plus 2pt minus 1pt}
\setlength\leftmargin{12pt}
\setlength\labelwidth{0em}
\setlength\rightmargin{30pt}
\setlength\itemsep{1pt}
\setlength\parskip{0pt}
\setlength\parsep{0.25pt}
\setlength\labelsep{0ex}
\setlength\itemindent{0pt}
\setlength\listparindent{0pt}
\renewcommand\makelabel[1]{\bfseries\upshape ##1.\hspace{0.5em}}
}
}{
% Environment closing
\end{list}
}
% Fine-tuning for table spacing. --cpk
\def\TblSpT{\rule[-1ex]{0pt}{0pt}}
\def\TblSpB{\rule{0pt}{2.5ex}}
% Column name formatting
\newcommand\colname[1]{\textit{#1}}
% Et al.
\newcommand\etal{\emph{et~al.}}
% Black filled circles with white number on it
% See Comprehensive LaTeX Symbol List --cpk
\def\blackI{\ding{182}}
\def\blackII{\ding{183}}
\def\blackIII{\ding{184}}
\def\blackIV{\ding{185}}
\def\blackV{\ding{186}}
\def\blackVI{\ding{187}}
\def\blackVII{\ding{188}}
\def\blackVIII{\ding{189}}
% Some kind of bibliography sorcery.
%\let\oldthebibliography=\thebibliography
% \let\endoldthebibliography=\endthebibliography
% \renewenvironment{thebibliography}[1]{%
% \begin{oldthebibliography}{#1}%
% \setlength{\parskip}{0ex}%
% \setlength{\itemsep}{0ex}%
% }%
% {%
% \end{oldthebibliography}%
% }
% During paper preparation, "draft" should be set to true using the
% \drafttrue command in proposal.tex. For submission, set \draftfalse.
% For notes to authors. These are only enabled for draft versions. In
% non-draft versions \note does nothing.
\newcommand\noteby[2]{\note{#2\hspace{0.5em}---#1}}
\newcommand\notefor[2]{\note{\textbf{#1:} #2}}
\newcommand\pp[1]{\noteby{PP}{#1}}
%\titleformat\paragraph[runin]{}{}{1em}{\normalfont\normalsize\bfseries#1.}
%\titlespacing*\section{0pt}{1ex plus.5ex minus.2ex}{0ex plus .2ex}
%\titlespacing*\subsection{0pt}{1ex plus.5ex minus.2ex}{0ex plus .2ex}
%\titlespacing*\subsubsection{0pt}{1ex plus.5ex minus.2ex}{0ex plus .2ex}
%\titlespacing*\paragraph{0pt}{0.25ex plus.2ex minus.1ex}{0.5em}
\newcommand\emphpar[1]{\textbf{#1.}}
\newcommand\justpar[1]{\noindent\emph{#1.}}
\newcommand\finding{\ding{70}\hspace{0.5em}\textbf{Finding:}}
\newcommand\metrics{\ding{71}\hspace{0.5em}}
%%%
%%% PAPER-SPECIFIC MACROS
%%%
\newcommand{\eg}{{e.g.},\xspace}
\newcommand{\ie}{{i.e.},\xspace}
\newcommand{\et}{{et~al.}\xspace}
\def\ti{threat intelligence}
\newcolumntype{H}{>{\setbox0=\hbox\bgroup}c<{\egroup}@{}}
\newcommand\snapfeedsym{$\Circle$}
\newcommand\deltafeedsym{$\triangle$}
\newcommand\singlefeedsym{$\CIRCLE$}
\newcommand\aggfeedsym{$\LEFTcircle$}
\makeatletter
\renewcommand\paragraph[1]{%
\@startsection{paragraph}{4}{\z@}%
{-0.75ex plus 0.05ex}{-0.5em}%
{\normalfont\normalsize\bfseries}{#1}}
\renewcommand\section{%
\@startsection{section}{1}{\z@}%
{-1.25ex plus -0.5ex minus -.2ex}%
{0.75ex plus .25ex}%
{\reset@font\Large\bfseries}}
\renewcommand\subsection{%
\@startsection{subsection}{2}{\z@}%
{-1.25ex\@plus -0.5ex \@minus -.2ex}%
{0.5ex \@plus .2ex}%
{\reset@font\large\bfseries}}
\renewcommand\subsubsection{%
\@startsection{subsubsection}{3}{\z@}%
{-0.75ex\@plus -0.25ex \@minus -.25ex}%
{0.25ex \@plus .2ex}%
{\normalfont\normalsize\bfseries}}
\makeatother