-
Notifications
You must be signed in to change notification settings - Fork 30
/
paper.tex
284 lines (237 loc) · 7.06 KB
/
paper.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
272
273
274
275
276
277
278
279
280
281
282
283
\documentclass[pdftex,twocolumn,10pt,letterpaper]{extarticle}
%%% Set these variables appropriately
%%%
%% Note: Authors is hardcoded below, this line only used for the PDF info
\newcommand{\AUTHORS}{Authors}
\newcommand{\TITLE}{Title}
\newcommand{\KEYWORDS}{Put your keywords here}
\newcommand{\CONFERENCE}{Somewhere}
\newcommand{\PAGENUMBERS}{yes} % "yes" or "no"
\newcommand{\COLOR}{yes}
\newcommand{\showComments}{yes}
\newcommand{\comment}[1]{}
\newcommand{\onlyAbstract}{no}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%
%%% Fonts
%%%
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
%\usepackage{textcomp}
\usepackage{newtxtext,newtxmath} % Times/Times-like math symbols
\usepackage{bm} % bold math; use \bm{} in captions
\usepackage[scaled=0.92]{helvet}
\usepackage{courier}
%\usepackage[scaled=0.83]{beramono} % more compact, good for code
%\usepackage{inconsolata} % another nice alternative to courier
%%%
%%% Page Setup
%%%
\special{papersize=8.5in,11in}
\setlength{\pdfpagewidth}{8.5in}
\setlength{\pdfpageheight}{11in}
\usepackage{ifthen}
\ifthenelse{\equal{\PAGENUMBERS}{yes}}{%
\usepackage[nohead,
left=1in,right=1in,top=1in,
footskip=0.5in,bottom=1in, % Room for page numbers
columnsep=0.25in
]{geometry}
}{%
\usepackage[noheadfoot,left=1in,right=1in,top=1in,
footskip=0.5in,bottom=1in,
columnsep=0.25in
]{geometry}
}
%%%
%%% Captions
%%%
\usepackage[font=bf]{caption}
%% Space between figure and caption (assuming caption
%% is below figure)
%\usepackage[font=bf,aboveskip=0pt]{caption} % SPACE
%% Space between caption and body text of document
%\addtolength{\textfloatsep}{-7pt} % SPACE
%%%
%%% Section headings
%%%
\usepackage{titlesec}
%\titlespacing{\paragraph}{0pt}{*1}{*1} % SPACE
%\usepackage[compact]{titlesec} % SPACE
%\titleformat{\section}% % ACM: caps + period (for 10pt doc)
% {\bf\large\uppercase}{\thesection.\quad}{0pt}{}
%%% The following should mimic the 9pt ACM sig-alt style headings
%%%
%\titleformat{name=\section}% % ACM: caps + period (for 9pt doc)
% {\bf\LARGE\uppercase}{\thesection.\quad}{0pt}{}
%\titleformat{name=\section,numberless}% % ACM: for categores, etc.
% {\bf\LARGE}{}{0pt}{}[\vspace*{-2pt}]
%\titleformat{\subsection}% % ACM
% {\bf\LARGE}{\thesubsection\quad}{0pt}{}
%\titleformat{\subsubsection}% % ACM
% {\it\Large}{\thesubsubsection\quad}{0pt}{}
%%%
%%% Lists
%%%
\usepackage{enumitem}
\setlist{itemsep=0pt,parsep=0pt} % more compact lists
%%%
%%% Header / Footer
%%%
\usepackage{fancyhdr}
\renewcommand{\headrulewidth}{0pt}
\ifthenelse{\equal{\PAGENUMBERS}{yes}}{%
\pagestyle{plain}
}{%
\pagestyle{empty}
}
%%%
%%% Bibliography
%%%
\usepackage[numbers]{natbib}
%%%
%%% Footnotes / Endnotes
%%%
\interfootnotelinepenalty=10000 % Split footnotes are annoying
% If you want endnodes, uncomment:
%\usepackage{endnotes}
%\usepackage{drafthead}
%\let\footnote=\endnote
%%%
%%% Tables
%%%
\usepackage{booktabs}
\usepackage{color}
\usepackage{colortbl}
\usepackage{float} % Must appear before hyperref to
% avoid weird PDF compile issues
%%%
%%% PDF setup
%%%
\ifthenelse{\equal{\COLOR}{yes}}{%
\usepackage[colorlinks,citecolor=blue]{hyperref}% % for online version
}{%
\usepackage[pdfborder={0 0 0}]{hyperref}% % for paper (B&W) version
}
\usepackage{url}
\hypersetup{%
pdfauthor = {\AUTHORS},
pdftitle = {\TITLE},
pdfsubject = {\CONFERENCE},
pdfkeywords = {\KEYWORDS},
bookmarksopen = {true}
}
% Anonymize figure inclusion
% Requires pdfTeX version 1.40.17
\pdftrailerid{} %Remove ID
\pdfsuppressptexinfo15 %Suppress PTEX.Fullbanner and info of imported PDFs
% Uncomment next line if your printer outputs black
% boxes instead of drop shadows; older PDF interpreters
% in printers can't handle those PDF 1.5 features
%\pdfminorversion=3
%\pdfobjcompresslevel=2
%%
%% Figure placeholder macros
%%
\definecolor{placeholderbg}{rgb}{0.85,0.85,0.85}
\newcommand{\placeholder}[1]{%
\fcolorbox{black}{placeholderbg}{\parbox[top][1.5in][c]{0.95\columnwidth}{#1}}}
%%%
%%% Misc
%%%
\usepackage[pdftex]{graphicx}
\usepackage{soul}
% this allows \st and friends to work with citations
\soulregister\cite7
\soulregister\ref7
\soulregister\pageref7
%\setlength{\parindent}{0pt}
%\setlength{\parskip}{\baselineskip}
%\clubpenalty=10000 % Don't allow orphans
%\widowpenalty=10000 % Don't allow widows
%%%
%%% To appear/appeared in text on title page
%%%
\usepackage[absolute]{textpos}
\newcommand{\ToAppear}{%
\begin{textblock*}{\textwidth}(0.95in,0.4in)
\begin{flushright}
%\noindent{\fbox{\textsf{Under submission---please do not redistribute.}}}
% --OR--
\noindent{\small To appear in \textit{Proceedings of the XYZ}\\
\noindent{\small \textit{Conference (XYZ'08)}, City, State, Month 2008}}
% --OR--
%\noindent{\small In \textit{Proceedings of the XYZ}\\
%\noindent{\small \textit{Conference (XYZ'08)}, City, State, Month 2008}}
\end{flushright}
\end{textblock*}
}
%%%
%%% Sample ACM Copyright Block
%%%
\newfloat{acmcr}{b}{acmcr}
\newcommand{\AcmCopyright}{%
\begin{acmcr}
\parbox[b]{20pc}{%
\footnotesize
Permission to make digital or hard copies of all or part of this work
for personal or classroom use is granted without fee provided that
copies are not made or distributed for profit or commercial advantage
and that copies bear this notice and the full citation on the first
page. To copy otherwise, to republish, to post on servers or to
redistribute to lists, requires prior specific permission and/or a fee.
{\em Conference}, Month Date--Date, Year, Location\\
Copyright 200X ACM X-XXXXX-XX-X/XX/XX ...\$5.00}
\end{acmcr}}
%%%
%%% Comments
%%%
\newcommand{\note}[2]{
\ifthenelse{\equal{\showComments}{yes}}{\textcolor{#1}{#2}}{}
}
% Change these to your own initials as you like...
\newcommand{\dga}[1]{\note{blue}{Author1: #1}}
\newcommand{\mk}[1]{\note{red}{Author2: #1}}
\newcommand{\srini}[1]{\note{green}{Author3: #1}}
\date{}
\title{\textbf{\TITLE}}
\author{{\large Authors}\\
{\em Affiliations}}
% This needs to be the last thing before \begin{document}
%\usepackage{microtype} % SPACE
%%%%%%%%%%%%%%%%%%%% START DOCUMENT %%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\maketitle
\ifthenelse{\equal{\PAGENUMBERS}{yes}}{%
\thispagestyle{fancy}
}{%
\thispagestyle{empty}
}
%\AcmCopyright
%\ToAppear
\input{abstract}
\ifthenelse{\equal{\onlyAbstract}{no}}{%
\input{intro}
\input{design}
\input{eval}
\input{related}
\input{concl}
%\vspace{-0.1in}
%\section*{Acknowledgments}
% Comments for people we need to ack in the final version
%% Bibliography
\setlength{\bibsep}{2pt plus 1pt} % plus 1pt seems to avoid widows/orphans
\small
% \footnotesize % SPACE
\bibliography{ref}
\bibliographystyle{abbrvnat}
%\bibliographystyle{abbrvnat_noaddr} % SPACE
%\theendnotes % ENDNOTES
}{% !onlyAbstract
}
%\appendix
%\input{appendix_sources}
\end{document}
% Local Variables:
% TeX-command-default: "LaTeX PDF"
% End: