% NeurIPS 2026 Style File (based on standard NeurIPS formatting)
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{neurips_2026}[2026/01/01 NeurIPS 2026 submission style]

\newif\if@neuripsfinal\@neuripsfinalfalse
\DeclareOption{final}{\@neuripsfinaltrue}
\DeclareOption{preprint}{\@neuripsfinalfalse}
\ProcessOptions\relax

% Page geometry
\RequirePackage[letterpaper,textwidth=5.5in,textheight=9in]{geometry}

% Fonts
\RequirePackage{times}
\RequirePackage{microtype}

% Line numbers for review
\if@neuripsfinal\else
  \RequirePackage{lineno}
  \linenumbers
\fi

% Title formatting
\def\@maketitle{%
  \newpage
  \null
  \vskip 2em
  \begin{center}%
    {\LARGE \bf \@title \par}%
    \vskip 1.5em%
    {\large
      \if@neuripsfinal
        \begin{tabular}[t]{c}%
          \@author
        \end{tabular}%
      \else
        Anonymous Author(s)\\
        Affiliation\\
        \texttt{anonymous@email.com}
      \fi
    }%
    \vskip 1em%
  \end{center}%
  \par
  \vskip 1.5em}

% Abstract formatting
\renewenvironment{abstract}%
  {\centerline{\large\bfseries Abstract}\vspace{0.5ex}\begin{quote}}%
  {\par\end{quote}\vskip 1ex}

% Section formatting
\RequirePackage{titlesec}
\titleformat{\section}{\large\bfseries}{\thesection}{1em}{}
\titleformat{\subsection}{\normalsize\bfseries}{\thesubsection}{1em}{}
\titleformat{\subsubsection}{\normalsize\itshape}{\thesubsubsection}{1em}{}

% Natbib
\RequirePackage[numbers,sort&compress]{natbib}
\bibliographystyle{plainnat}

\endinput
