$if(submission)$
\RequirePackage{scrlfile}
\PreventPackageFromLoading{babel}
\PreventPackageFromLoading{microtype}
$endif$

\documentclass{article}

\PassOptionsToPackage{numbers,sort&compress}{natbib}
\usepackage$if(submission)$$else$$if(preprint)$[preprint]$else$[final]$endif$$endif${$neurips$}

\input{$reqsetup$}
\input{$floatsetup$}
\input{$mathsetup$}
\input{$miscsetup$}
\input{$bibnosupersetup$}

\title{$title$}

\input{$authsetup$}

$for(includes)$
$it$
$endfor$

\begin{document}

\maketitle

% Add equal-contrib footnote.
$if(skipequal)$
$else$
$if(submission)$
$else$
\blfootnote{\textsuperscript{*}\,Equal contribution.}
$endif$
$endif$

$if(abstract)$
\begin{abstract}
$abstract$
\end{abstract}
$endif$

$if(body)$
$body$
$endif$

$for(sections)$
$it$
$endfor$

$if(bibliography)$
\clearpage
\bibliographystyle{unsrtnat}
\bibliography{$bibliography$}
$endif$

\input{$addappendices$}

\end{document}
