Team project "Analyzing Gender Share in Casting Actors" as part of the lecture "Data Literacy"

neurips_2021.sty 11KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377
  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 2021
  19. \NeedsTeXFormat{LaTeX2e}
  20. \ProvidesPackage{neurips_2021}[2021/03/31 NeurIPS 2021 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}{35th}
  49. \newcommand{\@neuripsyear}{2021}
  50. \newcommand{\@neuripslocation}{virtual}
  51. % acknowledgments
  52. \usepackage{environ}
  53. \newcommand{\acksection}{\section*{Acknowledgments and Disclosure of Funding}}
  54. \NewEnviron{ack}{%
  55. \acksection
  56. \BODY
  57. }
  58. % handle tweaks for camera-ready copy vs. submission copy
  59. \if@preprint
  60. \newcommand{\@noticestring}{%
  61. Project Report for \emph{Data Literacy} 2021/22
  62. }
  63. \else
  64. \if@neuripsfinal
  65. \newcommand{\@noticestring}{%
  66. \@neuripsordinal\/ Conference on Neural Information Processing Systems
  67. (NeurIPS \@neuripsyear).%, \@neuripslocation.%
  68. }
  69. \else
  70. \newcommand{\@noticestring}{%
  71. Submitted to \@neuripsordinal\/ Conference on Neural Information
  72. Processing Systems (NeurIPS \@neuripsyear). Do not distribute.%
  73. }
  74. % hide the acknowledgements
  75. \NewEnviron{hide}{}
  76. \let\ack\hide
  77. \let\endack\endhide
  78. % line numbers for submission
  79. \RequirePackage{lineno}
  80. \linenumbers
  81. % fix incompatibilities between lineno and amsmath, if required, by
  82. % transparently wrapping linenomath environments around amsmath
  83. % environments
  84. \AtBeginDocument{%
  85. \@ifpackageloaded{amsmath}{%
  86. \newcommand*\patchAmsMathEnvironmentForLineno[1]{%
  87. \expandafter\let\csname old#1\expandafter\endcsname\csname #1\endcsname
  88. \expandafter\let\csname oldend#1\expandafter\endcsname\csname end#1\endcsname
  89. \renewenvironment{#1}%
  90. {\linenomath\csname old#1\endcsname}%
  91. {\csname oldend#1\endcsname\endlinenomath}%
  92. }%
  93. \newcommand*\patchBothAmsMathEnvironmentsForLineno[1]{%
  94. \patchAmsMathEnvironmentForLineno{#1}%
  95. \patchAmsMathEnvironmentForLineno{#1*}%
  96. }%
  97. \patchBothAmsMathEnvironmentsForLineno{equation}%
  98. \patchBothAmsMathEnvironmentsForLineno{align}%
  99. \patchBothAmsMathEnvironmentsForLineno{flalign}%
  100. \patchBothAmsMathEnvironmentsForLineno{alignat}%
  101. \patchBothAmsMathEnvironmentsForLineno{gather}%
  102. \patchBothAmsMathEnvironmentsForLineno{multline}%
  103. }{}
  104. }
  105. \fi
  106. \fi
  107. % load natbib unless told otherwise
  108. \if@natbib
  109. \RequirePackage{natbib}
  110. \fi
  111. % set page geometry
  112. \usepackage[verbose=true,letterpaper]{geometry}
  113. \AtBeginDocument{
  114. \newgeometry{
  115. textheight=9in,
  116. textwidth=5.5in,
  117. top=1in,
  118. headheight=12pt,
  119. headsep=25pt,
  120. footskip=30pt
  121. }
  122. \@ifpackageloaded{fullpage}
  123. {\PackageWarning{neurips_2021}{fullpage package not allowed! Overwriting formatting.}}
  124. {}
  125. }
  126. \widowpenalty=10000
  127. \clubpenalty=10000
  128. \flushbottom
  129. \sloppy
  130. % font sizes with reduced leading
  131. \renewcommand{\normalsize}{%
  132. \@setfontsize\normalsize\@xpt\@xipt
  133. \abovedisplayskip 7\p@ \@plus 2\p@ \@minus 5\p@
  134. \abovedisplayshortskip \z@ \@plus 3\p@
  135. \belowdisplayskip \abovedisplayskip
  136. \belowdisplayshortskip 4\p@ \@plus 3\p@ \@minus 3\p@
  137. }
  138. \normalsize
  139. \renewcommand{\small}{%
  140. \@setfontsize\small\@ixpt\@xpt
  141. \abovedisplayskip 6\p@ \@plus 1.5\p@ \@minus 4\p@
  142. \abovedisplayshortskip \z@ \@plus 2\p@
  143. \belowdisplayskip \abovedisplayskip
  144. \belowdisplayshortskip 3\p@ \@plus 2\p@ \@minus 2\p@
  145. }
  146. \renewcommand{\footnotesize}{\@setfontsize\footnotesize\@ixpt\@xpt}
  147. \renewcommand{\scriptsize}{\@setfontsize\scriptsize\@viipt\@viiipt}
  148. \renewcommand{\tiny}{\@setfontsize\tiny\@vipt\@viipt}
  149. \renewcommand{\large}{\@setfontsize\large\@xiipt{14}}
  150. \renewcommand{\Large}{\@setfontsize\Large\@xivpt{16}}
  151. \renewcommand{\LARGE}{\@setfontsize\LARGE\@xviipt{20}}
  152. \renewcommand{\huge}{\@setfontsize\huge\@xxpt{23}}
  153. \renewcommand{\Huge}{\@setfontsize\Huge\@xxvpt{28}}
  154. % sections with less space
  155. \providecommand{\section}{}
  156. \renewcommand{\section}{%
  157. \@startsection{section}{1}{\z@}%
  158. {-2.0ex \@plus -0.5ex \@minus -0.2ex}%
  159. { 1.5ex \@plus 0.3ex \@minus 0.2ex}%
  160. {\large\bf\raggedright}%
  161. }
  162. \providecommand{\subsection}{}
  163. \renewcommand{\subsection}{%
  164. \@startsection{subsection}{2}{\z@}%
  165. {-1.8ex \@plus -0.5ex \@minus -0.2ex}%
  166. { 0.8ex \@plus 0.2ex}%
  167. {\normalsize\bf\raggedright}%
  168. }
  169. \providecommand{\subsubsection}{}
  170. \renewcommand{\subsubsection}{%
  171. \@startsection{subsubsection}{3}{\z@}%
  172. {-1.5ex \@plus -0.5ex \@minus -0.2ex}%
  173. { 0.5ex \@plus 0.2ex}%
  174. {\normalsize\bf\raggedright}%
  175. }
  176. \providecommand{\paragraph}{}
  177. \renewcommand{\paragraph}{%
  178. \@startsection{paragraph}{4}{\z@}%
  179. {1.5ex \@plus 0.5ex \@minus 0.2ex}%
  180. {-1em}%
  181. {\normalsize\bf}%
  182. }
  183. \providecommand{\subparagraph}{}
  184. \renewcommand{\subparagraph}{%
  185. \@startsection{subparagraph}{5}{\z@}%
  186. {1.5ex \@plus 0.5ex \@minus 0.2ex}%
  187. {-1em}%
  188. {\normalsize\bf}%
  189. }
  190. \providecommand{\subsubsubsection}{}
  191. \renewcommand{\subsubsubsection}{%
  192. \vskip5pt{\noindent\normalsize\rm\raggedright}%
  193. }
  194. % float placement
  195. \renewcommand{\topfraction }{0.85}
  196. \renewcommand{\bottomfraction }{0.4}
  197. \renewcommand{\textfraction }{0.1}
  198. \renewcommand{\floatpagefraction}{0.7}
  199. \newlength{\@neuripsabovecaptionskip}\setlength{\@neuripsabovecaptionskip}{7\p@}
  200. \newlength{\@neuripsbelowcaptionskip}\setlength{\@neuripsbelowcaptionskip}{\z@}
  201. \setlength{\abovecaptionskip}{\@neuripsabovecaptionskip}
  202. \setlength{\belowcaptionskip}{\@neuripsbelowcaptionskip}
  203. % swap above/belowcaptionskip lengths for tables
  204. \renewenvironment{table}
  205. {\setlength{\abovecaptionskip}{\@neuripsbelowcaptionskip}%
  206. \setlength{\belowcaptionskip}{\@neuripsabovecaptionskip}%
  207. \@float{table}}
  208. {\end@float}
  209. % footnote formatting
  210. \setlength{\footnotesep }{6.65\p@}
  211. \setlength{\skip\footins}{9\p@ \@plus 4\p@ \@minus 2\p@}
  212. \renewcommand{\footnoterule}{\kern-3\p@ \hrule width 12pc \kern 2.6\p@}
  213. \setcounter{footnote}{0}
  214. % paragraph formatting
  215. \setlength{\parindent}{\z@}
  216. \setlength{\parskip }{5.5\p@}
  217. % list formatting
  218. \setlength{\topsep }{4\p@ \@plus 1\p@ \@minus 2\p@}
  219. \setlength{\partopsep }{1\p@ \@plus 0.5\p@ \@minus 0.5\p@}
  220. \setlength{\itemsep }{2\p@ \@plus 1\p@ \@minus 0.5\p@}
  221. \setlength{\parsep }{2\p@ \@plus 1\p@ \@minus 0.5\p@}
  222. \setlength{\leftmargin }{3pc}
  223. \setlength{\leftmargini }{\leftmargin}
  224. \setlength{\leftmarginii }{2em}
  225. \setlength{\leftmarginiii}{1.5em}
  226. \setlength{\leftmarginiv }{1.0em}
  227. \setlength{\leftmarginv }{0.5em}
  228. \def\@listi {\leftmargin\leftmargini}
  229. \def\@listii {\leftmargin\leftmarginii
  230. \labelwidth\leftmarginii
  231. \advance\labelwidth-\labelsep
  232. \topsep 2\p@ \@plus 1\p@ \@minus 0.5\p@
  233. \parsep 1\p@ \@plus 0.5\p@ \@minus 0.5\p@
  234. \itemsep \parsep}
  235. \def\@listiii{\leftmargin\leftmarginiii
  236. \labelwidth\leftmarginiii
  237. \advance\labelwidth-\labelsep
  238. \topsep 1\p@ \@plus 0.5\p@ \@minus 0.5\p@
  239. \parsep \z@
  240. \partopsep 0.5\p@ \@plus 0\p@ \@minus 0.5\p@
  241. \itemsep \topsep}
  242. \def\@listiv {\leftmargin\leftmarginiv
  243. \labelwidth\leftmarginiv
  244. \advance\labelwidth-\labelsep}
  245. \def\@listv {\leftmargin\leftmarginv
  246. \labelwidth\leftmarginv
  247. \advance\labelwidth-\labelsep}
  248. \def\@listvi {\leftmargin\leftmarginvi
  249. \labelwidth\leftmarginvi
  250. \advance\labelwidth-\labelsep}
  251. % create title
  252. \providecommand{\maketitle}{}
  253. \renewcommand{\maketitle}{%
  254. \par
  255. \begingroup
  256. \renewcommand{\thefootnote}{\fnsymbol{footnote}}
  257. % for perfect author name centering
  258. \renewcommand{\@makefnmark}{\hbox to \z@{$^{\@thefnmark}$\hss}}
  259. % The footnote-mark was overlapping the footnote-text,
  260. % added the following to fix this problem (MK)
  261. \long\def\@makefntext##1{%
  262. \parindent 1em\noindent
  263. \hbox to 1.8em{\hss $\m@th ^{\@thefnmark}$}##1
  264. }
  265. \thispagestyle{empty}
  266. \@maketitle
  267. \@thanks
  268. \@notice
  269. \endgroup
  270. \let\maketitle\relax
  271. \let\thanks\relax
  272. }
  273. % rules for title box at top of first page
  274. \newcommand{\@toptitlebar}{
  275. \hrule height 4\p@
  276. \vskip 0.25in
  277. \vskip -\parskip%
  278. }
  279. \newcommand{\@bottomtitlebar}{
  280. \vskip 0.29in
  281. \vskip -\parskip
  282. \hrule height 1\p@
  283. \vskip 0.09in%
  284. }
  285. % create title (includes both anonymized and non-anonymized versions)
  286. \providecommand{\@maketitle}{}
  287. \renewcommand{\@maketitle}{%
  288. \vbox{%
  289. \hsize\textwidth
  290. \linewidth\hsize
  291. \vskip 0.1in
  292. \@toptitlebar
  293. \centering
  294. {\LARGE\bf \@title\par}
  295. \@bottomtitlebar
  296. \if@submission
  297. \begin{tabular}[t]{c}\bf\rule{\z@}{24\p@}
  298. Anonymous Author(s) \\
  299. Affiliation \\
  300. Address \\
  301. \texttt{email} \\
  302. \end{tabular}%
  303. \else
  304. \def\And{%
  305. \end{tabular}\hfil\linebreak[0]\hfil%
  306. \begin{tabular}[t]{c}\bf\rule{\z@}{24\p@}\ignorespaces%
  307. }
  308. \def\AND{%
  309. \end{tabular}\hfil\linebreak[4]\hfil%
  310. \begin{tabular}[t]{c}\bf\rule{\z@}{24\p@}\ignorespaces%
  311. }
  312. \begin{tabular}[t]{c}\bf\rule{\z@}{24\p@}\@author\end{tabular}%
  313. \fi
  314. \vskip 0.3in \@minus 0.1in
  315. }
  316. }
  317. % add conference notice to bottom of first page
  318. \newcommand{\ftype@noticebox}{8}
  319. \newcommand{\@notice}{%
  320. % give a bit of extra room back to authors on first page
  321. \enlargethispage{2\baselineskip}%
  322. \@float{noticebox}[b]%
  323. \footnotesize\@noticestring%
  324. \end@float%
  325. }
  326. % abstract styling
  327. \renewenvironment{abstract}%
  328. {%
  329. \vskip 0.075in%
  330. \centerline%
  331. {\large\bf Abstract}%
  332. \vspace{0.5ex}%
  333. \begin{quote}%
  334. }
  335. {
  336. \par%
  337. \end{quote}%
  338. \vskip 1ex%
  339. }
  340. % For the paper checklist
  341. \newcommand{\answerYes}[1][]{\textcolor{blue}{[Yes] #1}}
  342. \newcommand{\answerNo}[1][]{\textcolor{orange}{[No] #1}}
  343. \newcommand{\answerNA}[1][]{\textcolor{gray}{[N/A] #1}}
  344. \newcommand{\answerTODO}[1][]{\textcolor{red}{\bf [TODO]}}
  345. \endinput

Powered by TurnKey Linux.