Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

neurips_2019.sty 11 KB

You have to be logged in to leave a comment. Sign In
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
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
  1. % partial rewrite of the LaTeX2e package for submissions to the
  2. % Conference on Neural Information Processing Systems (NeurIPS):
  3. %
  4. % - uses more LaTeX conventions
  5. % - line numbers at submission time replaced with aligned numbers from
  6. % lineno package
  7. % - \nipsfinalcopy replaced with [final] package option
  8. % - automatically loads times package for authors
  9. % - loads natbib automatically; this can be suppressed with the
  10. % [nonatbib] package option
  11. % - adds foot line to first page identifying the conference
  12. % - adds preprint option for submission to e.g. arXiv
  13. % - conference acronym modified
  14. %
  15. % Roman Garnett (garnett@wustl.edu) and the many authors of
  16. % nips15submit_e.sty, including MK and drstrip@sandia
  17. %
  18. % last revision: March 2019
  19. \NeedsTeXFormat{LaTeX2e}
  20. \ProvidesPackage{neurips_2019}[2019/03/13 NeurIPS 2019 submission/camera-ready style file]
  21. % declare final option, which creates camera-ready copy
  22. \newif\if@neuripsfinal\@neuripsfinalfalse
  23. \DeclareOption{final}{
  24. \@neuripsfinaltrue
  25. }
  26. % declare nonatbib option, which does not load natbib in case of
  27. % package clash (users can pass options to natbib via
  28. % \PassOptionsToPackage)
  29. \newif\if@natbib\@natbibtrue
  30. \DeclareOption{nonatbib}{
  31. \@natbibfalse
  32. }
  33. % declare preprint option, which creates a preprint version ready for
  34. % upload to, e.g., arXiv
  35. \newif\if@preprint\@preprintfalse
  36. \DeclareOption{preprint}{
  37. \@preprinttrue
  38. }
  39. \ProcessOptions\relax
  40. % determine whether this is an anonymized submission
  41. \newif\if@submission\@submissiontrue
  42. \if@neuripsfinal\@submissionfalse\fi
  43. \if@preprint\@submissionfalse\fi
  44. % fonts
  45. \renewcommand{\rmdefault}{ptm}
  46. \renewcommand{\sfdefault}{phv}
  47. % change this every year for notice string at bottom
  48. \newcommand{\@neuripsordinal}{33rd}
  49. \newcommand{\@neuripsyear}{2021}
  50. \newcommand{\@neuripslocation}{Vancouver, Canada}
  51. % handle tweaks for camera-ready copy vs. submission copy
  52. \if@preprint
  53. \newcommand{\@noticestring}{%
  54. Preprint. Under review.%
  55. }
  56. \else
  57. \if@neuripsfinal
  58. \newcommand{\@noticestring}{%
  59. \@neuripsordinal\/ Conference on Neural Information Processing Systems
  60. (NeurIPS \@neuripsyear), \@neuripslocation.%
  61. }
  62. \else
  63. \newcommand{\@noticestring}{%
  64. Submitted to ML Reproducibility Challenge \@neuripsyear. Do not distribute.%
  65. }
  66. % line numbers for submission
  67. \RequirePackage{lineno}
  68. \linenumbers
  69. % fix incompatibilities between lineno and amsmath, if required, by
  70. % transparently wrapping linenomath environments around amsmath
  71. % environments
  72. \AtBeginDocument{%
  73. \@ifpackageloaded{amsmath}{%
  74. \newcommand*\patchAmsMathEnvironmentForLineno[1]{%
  75. \expandafter\let\csname old#1\expandafter\endcsname\csname #1\endcsname
  76. \expandafter\let\csname oldend#1\expandafter\endcsname\csname end#1\endcsname
  77. \renewenvironment{#1}%
  78. {\linenomath\csname old#1\endcsname}%
  79. {\csname oldend#1\endcsname\endlinenomath}%
  80. }%
  81. \newcommand*\patchBothAmsMathEnvironmentsForLineno[1]{%
  82. \patchAmsMathEnvironmentForLineno{#1}%
  83. \patchAmsMathEnvironmentForLineno{#1*}%
  84. }%
  85. \patchBothAmsMathEnvironmentsForLineno{equation}%
  86. \patchBothAmsMathEnvironmentsForLineno{align}%
  87. \patchBothAmsMathEnvironmentsForLineno{flalign}%
  88. \patchBothAmsMathEnvironmentsForLineno{alignat}%
  89. \patchBothAmsMathEnvironmentsForLineno{gather}%
  90. \patchBothAmsMathEnvironmentsForLineno{multline}%
  91. }{}
  92. }
  93. \fi
  94. \fi
  95. % load natbib unless told otherwise
  96. \if@natbib
  97. \RequirePackage{natbib}
  98. \fi
  99. % set page geometry
  100. \usepackage[verbose=true,letterpaper]{geometry}
  101. \AtBeginDocument{
  102. \newgeometry{
  103. textheight=9in,
  104. textwidth=6.5in, % [NEW] increased from 5.5
  105. top=1in,
  106. headheight=12pt,
  107. headsep=25pt,
  108. footskip=30pt
  109. }
  110. \@ifpackageloaded{fullpage}
  111. {\PackageWarning{neurips_2019}{fullpage package not allowed! Overwriting formatting.}}
  112. {}
  113. }
  114. \widowpenalty=10000
  115. \clubpenalty=10000
  116. \flushbottom
  117. \sloppy
  118. % font sizes with reduced leading
  119. \renewcommand{\normalsize}{%
  120. \@setfontsize\normalsize\@xpt\@xipt
  121. \abovedisplayskip 7\p@ \@plus 2\p@ \@minus 5\p@
  122. \abovedisplayshortskip \z@ \@plus 3\p@
  123. \belowdisplayskip \abovedisplayskip
  124. \belowdisplayshortskip 4\p@ \@plus 3\p@ \@minus 3\p@
  125. }
  126. \normalsize
  127. \renewcommand{\small}{%
  128. \@setfontsize\small\@ixpt\@xpt
  129. \abovedisplayskip 6\p@ \@plus 1.5\p@ \@minus 4\p@
  130. \abovedisplayshortskip \z@ \@plus 2\p@
  131. \belowdisplayskip \abovedisplayskip
  132. \belowdisplayshortskip 3\p@ \@plus 2\p@ \@minus 2\p@
  133. }
  134. \renewcommand{\footnotesize}{\@setfontsize\footnotesize\@ixpt\@xpt}
  135. \renewcommand{\scriptsize}{\@setfontsize\scriptsize\@viipt\@viiipt}
  136. \renewcommand{\tiny}{\@setfontsize\tiny\@vipt\@viipt}
  137. \renewcommand{\large}{\@setfontsize\large\@xiipt{14}}
  138. \renewcommand{\Large}{\@setfontsize\Large\@xivpt{16}}
  139. \renewcommand{\LARGE}{\@setfontsize\LARGE\@xviipt{20}}
  140. \renewcommand{\huge}{\@setfontsize\huge\@xxpt{23}}
  141. \renewcommand{\Huge}{\@setfontsize\Huge\@xxvpt{28}}
  142. % sections with less space
  143. \providecommand{\section}{}
  144. \renewcommand{\section}{%
  145. \@startsection{section}{1}{\z@}%
  146. {-2.0ex \@plus -0.5ex \@minus -0.2ex}%
  147. { 1.5ex \@plus 0.3ex \@minus 0.2ex}%
  148. {\large\bf\raggedright}%
  149. }
  150. \providecommand{\subsection}{}
  151. \renewcommand{\subsection}{%
  152. \@startsection{subsection}{2}{\z@}%
  153. {-1.8ex \@plus -0.5ex \@minus -0.2ex}%
  154. { 0.8ex \@plus 0.2ex}%
  155. {\normalsize\bf\raggedright}%
  156. }
  157. \providecommand{\subsubsection}{}
  158. \renewcommand{\subsubsection}{%
  159. \@startsection{subsubsection}{3}{\z@}%
  160. {-1.5ex \@plus -0.5ex \@minus -0.2ex}%
  161. { 0.5ex \@plus 0.2ex}%
  162. {\normalsize\bf\raggedright}%
  163. }
  164. \providecommand{\paragraph}{}
  165. \renewcommand{\paragraph}{%
  166. \@startsection{paragraph}{4}{\z@}%
  167. {1.5ex \@plus 0.5ex \@minus 0.2ex}%
  168. {-1em}%
  169. {\normalsize\bf}%
  170. }
  171. \providecommand{\subparagraph}{}
  172. \renewcommand{\subparagraph}{%
  173. \@startsection{subparagraph}{5}{\z@}%
  174. {1.5ex \@plus 0.5ex \@minus 0.2ex}%
  175. {-1em}%
  176. {\normalsize\bf}%
  177. }
  178. \providecommand{\subsubsubsection}{}
  179. \renewcommand{\subsubsubsection}{%
  180. \vskip5pt{\noindent\normalsize\rm\raggedright}%
  181. }
  182. % float placement
  183. \renewcommand{\topfraction }{0.85}
  184. \renewcommand{\bottomfraction }{0.4}
  185. \renewcommand{\textfraction }{0.1}
  186. \renewcommand{\floatpagefraction}{0.7}
  187. \newlength{\@neuripsabovecaptionskip}\setlength{\@neuripsabovecaptionskip}{7\p@}
  188. \newlength{\@neuripsbelowcaptionskip}\setlength{\@neuripsbelowcaptionskip}{\z@}
  189. \setlength{\abovecaptionskip}{\@neuripsabovecaptionskip}
  190. \setlength{\belowcaptionskip}{\@neuripsbelowcaptionskip}
  191. % swap above/belowcaptionskip lengths for tables
  192. \renewenvironment{table}
  193. {\setlength{\abovecaptionskip}{\@neuripsbelowcaptionskip}%
  194. \setlength{\belowcaptionskip}{\@neuripsabovecaptionskip}%
  195. \@float{table}}
  196. {\end@float}
  197. % footnote formatting
  198. \setlength{\footnotesep }{6.65\p@}
  199. \setlength{\skip\footins}{9\p@ \@plus 4\p@ \@minus 2\p@}
  200. \renewcommand{\footnoterule}{\kern-3\p@ \hrule width 12pc \kern 2.6\p@}
  201. \setcounter{footnote}{0}
  202. % paragraph formatting
  203. \setlength{\parindent}{\z@}
  204. \setlength{\parskip }{5.5\p@}
  205. % list formatting
  206. \setlength{\topsep }{4\p@ \@plus 1\p@ \@minus 2\p@}
  207. \setlength{\partopsep }{1\p@ \@plus 0.5\p@ \@minus 0.5\p@}
  208. \setlength{\itemsep }{2\p@ \@plus 1\p@ \@minus 0.5\p@}
  209. \setlength{\parsep }{2\p@ \@plus 1\p@ \@minus 0.5\p@}
  210. \setlength{\leftmargin }{3pc}
  211. \setlength{\leftmargini }{\leftmargin}
  212. \setlength{\leftmarginii }{2em}
  213. \setlength{\leftmarginiii}{1.5em}
  214. \setlength{\leftmarginiv }{1.0em}
  215. \setlength{\leftmarginv }{0.5em}
  216. \def\@listi {\leftmargin\leftmargini}
  217. \def\@listii {\leftmargin\leftmarginii
  218. \labelwidth\leftmarginii
  219. \advance\labelwidth-\labelsep
  220. \topsep 2\p@ \@plus 1\p@ \@minus 0.5\p@
  221. \parsep 1\p@ \@plus 0.5\p@ \@minus 0.5\p@
  222. \itemsep \parsep}
  223. \def\@listiii{\leftmargin\leftmarginiii
  224. \labelwidth\leftmarginiii
  225. \advance\labelwidth-\labelsep
  226. \topsep 1\p@ \@plus 0.5\p@ \@minus 0.5\p@
  227. \parsep \z@
  228. \partopsep 0.5\p@ \@plus 0\p@ \@minus 0.5\p@
  229. \itemsep \topsep}
  230. \def\@listiv {\leftmargin\leftmarginiv
  231. \labelwidth\leftmarginiv
  232. \advance\labelwidth-\labelsep}
  233. \def\@listv {\leftmargin\leftmarginv
  234. \labelwidth\leftmarginv
  235. \advance\labelwidth-\labelsep}
  236. \def\@listvi {\leftmargin\leftmarginvi
  237. \labelwidth\leftmarginvi
  238. \advance\labelwidth-\labelsep}
  239. % create title
  240. \providecommand{\maketitle}{}
  241. \renewcommand{\maketitle}{%
  242. \par
  243. \begingroup
  244. \renewcommand{\thefootnote}{\fnsymbol{footnote}}
  245. % for perfect author name centering
  246. \renewcommand{\@makefnmark}{\hbox to \z@{$^{\@thefnmark}$\hss}}
  247. % The footnote-mark was overlapping the footnote-text,
  248. % added the following to fix this problem (MK)
  249. \long\def\@makefntext##1{%
  250. \parindent 1em\noindent
  251. \hbox to 1.8em{\hss $\m@th ^{\@thefnmark}$}##1
  252. }
  253. \thispagestyle{empty}
  254. \@maketitle
  255. \@thanks
  256. \@notice
  257. \endgroup
  258. \let\maketitle\relax
  259. \let\thanks\relax
  260. }
  261. % rules for title box at top of first page
  262. \newcommand{\@toptitlebar}{
  263. \hrule height 4\p@
  264. \vskip 0.25in
  265. \vskip -\parskip%
  266. }
  267. \newcommand{\@bottomtitlebar}{
  268. \vskip 0.29in
  269. \vskip -\parskip
  270. \hrule height 1\p@
  271. \vskip 0.09in%
  272. }
  273. % create title (includes both anonymized and non-anonymized versions)
  274. \providecommand{\@maketitle}{}
  275. \renewcommand{\@maketitle}{%
  276. \vbox{%
  277. \hsize\textwidth
  278. \linewidth\hsize
  279. \vskip -0.4in
  280. \@toptitlebar
  281. \centering
  282. {\LARGE\bf \@title\par}
  283. \@bottomtitlebar
  284. \if@submission
  285. \begin{tabular}[t]{c}\bf\rule{\z@}{24\p@}
  286. Anonymous Author(s) \\
  287. Affiliation \\
  288. Address \\
  289. \texttt{email} \\
  290. \end{tabular}%
  291. \else
  292. \def\And{%
  293. \end{tabular}\hfil\linebreak[0]\hfil%
  294. \begin{tabular}[t]{c}\bf\rule{\z@}{24\p@}\ignorespaces%
  295. }
  296. \def\AND{%
  297. \end{tabular}\hfil\linebreak[4]\hfil%
  298. \begin{tabular}[t]{c}\bf\rule{\z@}{24\p@}\ignorespaces%
  299. }
  300. \begin{tabular}[t]{c}\bf\rule{\z@}{24\p@}\@author\end{tabular}%
  301. \fi
  302. \vskip 0.3in \@minus 0.1in
  303. }
  304. }
  305. % add conference notice to bottom of first page
  306. \newcommand{\ftype@noticebox}{8}
  307. \newcommand{\@notice}{%
  308. % give a bit of extra room back to authors on first page
  309. \enlargethispage{2\baselineskip}%
  310. \@float{noticebox}[b]%
  311. \footnotesize\@noticestring%
  312. \end@float%
  313. }
  314. % abstract styling
  315. \renewenvironment{abstract}%
  316. {%
  317. \vskip 0.075in%
  318. \centerline%
  319. {\large\bf Abstract}%
  320. \vspace{0.5ex}%
  321. \begin{quote}%
  322. }
  323. {
  324. \par%
  325. \end{quote}%
  326. \vskip 1ex%
  327. }
  328. \endinput
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...