\documentclass[accepted,usenames,dvipsnames,colorlinks,linktoc=all]{uai2024} 

%% Choose your variant of English; be consistent
\usepackage[american]{babel}
% \usepackage[british]{babel}

%% Some suggested packages, as needed:
\usepackage{natbib} % has a nice set of citation styles and commands
    \bibliographystyle{plainnat}
    \renewcommand{\bibsection}{\subsubsection*{References}}
\usepackage{mathtools} % amsmath with fixes and additions
% \usepackage{siunitx} % for proper typesetting of numbers and units
\usepackage{booktabs} % commands to create good-looking tables
\usepackage{tikz} % nice language for creating drawings and diagrams

%% Provided macros
% \smaller: Because the class footnote size is essentially LaTeX's \small,
%           redefining \footnotesize, we provide the original \footnotesize
%           using this macro.
%           (Use only sparingly, e.g., in drawings, as it is quite small.)

%% Self-defined macros
\newcommand{\swap}[3][-]{#3#1#2} % just an example

\input{preamble/format.tex}
\input{preamble/math.tex}

\title{Amortized Variational Inference: When and Why?}

% The standard author block has changed for UAI 2024 to provide
% more space for long author lists and allow for complex affiliations
%
% All author information is authomatically removed by the class for the
% anonymous submission version of your paper, so you can already add your
% information below.
%
% Add authors
\author[1]{\href{mailto:<cmargossian@flatironinstitute.org>?Subject=Your UAI 2024 paper}{Charles C. Margossian}{}}
\author[2]{David M. Blei}
% Add affiliations after the authors
\affil[1]{%
    Center for Computational Mathematics \\
    Flatiron Institute \\
    New York, New York, USA
}
\affil[2]{%
    Department of Computer Science and Statistics\\
    Columbia University\\
    New York, New York, USA
}

\begin{document}
\maketitle

\input{abstract.tex}

\input{introduction.tex}
\input{ordering.tex}
\input{mapping.tex}
\input{experiments.tex}
\input{discussion.tex}

\section{Acknowledgment}

We thank Lawrence Saul, Robert Gower, Justin Domke, and Ruben Ohana for helpful discussions, and Achille Nazaret for feedback on an early version manuscript.


\bibliography{ref.bib}
% \bibliographystyle{abbrvnat}

\onecolumn

\appendix

\input{appendix.tex}

\end{document}
