$passoptions.latex()$
\documentclass[
$for(babel-otherlangs)$
  $babel-otherlangs$,
$endfor$
$if(babel-lang)$
  $babel-lang$,
$endif$
$if(fontsize)$
  $fontsize$,
$endif$
$if(papersize)$
  $papersize$paper,
$endif$
$for(classoption)$
  $classoption$$sep$,
$endfor$
]{$documentclass$}
% AEA.cls names obsolete DC fonts that are not distributed with minimal TeX Live.
% Select the metric-compatible Latin Modern family before Pandoc loads fontenc.
\renewcommand{\rmdefault}{lmr}
\renewcommand{\sfdefault}{lmss}
\renewcommand{\ttdefault}{lmtt}
$if(beamerarticle)$
\usepackage{beamerarticle} % needs to be loaded first
$endif$
\usepackage{xcolor}
$if(geometry)$
\usepackage[$for(geometry)$$geometry$$sep$,$endfor$]{geometry}
$endif$
\usepackage{amsmath,amssymb}
$if(cancel)$
\usepackage{cancel}
$endif$
$--
$-- section numbering
$--
$if(numbersections)$
\setcounter{secnumdepth}{$if(secnumdepth)$$secnumdepth$$else$5$endif$}
$else$
\setcounter{secnumdepth}{-\maxdimen} % remove section numbering
$endif$
$fonts.latex()$
$font-settings.latex()$
$common.latex()$
% Quarto bridge for the official AEA review class and the manuscript's tables.
\usepackage{float}
\usepackage{placeins}
\usepackage{etoolbox}
\usepackage{tabularray}
\usepackage[normalem]{ulem}
\usepackage{graphicx}
\usepackage{rotating}
\UseTblrLibrary{siunitx}
\NewTableCommand{\tinytableDefineColor}[3]{\definecolor{#1}{#2}{#3}}
\newcommand{\tinytableTabularrayUnderline}[1]{\underline{#1}}
\newcommand{\tinytableTabularrayStrikeout}[1]{\sout{#1}}
\usepackage{hyperref}
\DeclareUnicodeCharacter{2212}{\ensuremath{-}}
% The AEA class includes its own punctuation in figure and table labels.
% Quarto loads caption.sty, whose default colon would otherwise duplicate it.
\captionsetup{labelsep=none}
% REStud permits references to be single-spaced even though the manuscript is
% otherwise set at 1.5 spacing in AEA review mode.
\AtBeginEnvironment{thebibliography}{\setstretch{1}}
% Quarto supplies its own centering groups inside floats; use the AEA float
% counters and caption styling without the class's additional center environment.
\makeatletter
\renewenvironment{figure}[1][h]{\@float{figure}[#1]}{\end@float}
\renewenvironment{figure*}[1][h]{\@dblfloat{figure}[#1]}{\end@dblfloat}
\renewenvironment{table}[1][h]{\@float{table}[#1]}{\end@float}
\renewenvironment{table*}[1][h]{\@dblfloat{table}[#1]}{\end@dblfloat}
% The official AEA class indents the abstract by 36 points on each side and
% sets it in italics.  For this review manuscript, use the main-text measure
% and upright type so that the title page remains readable and compact.
\setlength{\abstractIndent}{0pt}
\setlength{\abstractWidth}{\textwidth}
\patchcmd{\@maketitle}
  {\abstractbodysize\itshape}
  {\abstractbodysize\upshape}
  {}
  {\PackageError{aea-pandoc-template}{Could not restyle the abstract}{}}
\patchcmd{\@maketitle}
  {\vskip 24pt\end{@twocolumnfalse}}
  {\vskip 6pt\end{@twocolumnfalse}}
  {}
  {\PackageError{aea-pandoc-template}{Could not compact the title page}{}}
\makeatother
\shortTitle{Generative AI and Inflation Expectations}
\JEL{C91, D83, D91, E71}
\Keywords{inflation expectations, generative AI, persuasion, forecast uncertainty}
$hypersetup.latex()$
$if(pdf-trailer-id)$

\ifXeTeX
\special{pdf:trailerid [ $pdf-trailer-id$ ]}
\fi
\ifPDFTeX
\pdftrailerid{}
\pdftrailer{/ID [ $pdf-trailer-id$ ]}
\fi
\ifLuaTeX
\pdfvariable trailerid {[ $pdf-trailer-id$ ]}
\fi
$endif$

$if(title)$
\title{$title$}
$endif$
$if(subtitle)$
\makeatletter
\providecommand{\subtitle}[1]{% add subtitle to \maketitle
  \apptocmd{\@title}{\par {\large #1 \par}}{}{}
}
\makeatother
\subtitle{$subtitle$}
$endif$
\author{%
$for(author)$
$if(author.name)$$author.name$$else$$author$$endif$$sep$ and
$endfor$
$if(thanks)$\thanks{$thanks$}$endif$}
\date{$date$}

\begin{document}
$if(has-frontmatter)$
\frontmatter
$endif$
$if(title)$
$if(abstract)$
\begin{abstract}
$abstract$
\end{abstract}
$endif$
\maketitle
% AEA's publication headers identify the American Economic Review.  Retain the
% official submission typography, but use neutral page-number-only headers for
% a manuscript intended for REStud.
\pagestyle{plain}
$endif$

$for(include-before)$
$include-before$

$endfor$
$if(toc)$
$if(toc-title)$
\renewcommand*\contentsname{$toc-title$}
$endif$
{
$if(colorlinks)$
$if(toccolor)$
\hypersetup{linkcolor=$toccolor$}
$endif$
$endif$
\setcounter{tocdepth}{$toc-depth$}
\tableofcontents
}
$endif$
$if(lof)$
\listoffigures
$endif$
$if(lot)$
\listoftables
$endif$
$if(linestretch)$
\setstretch{$linestretch$}
$endif$
$if(has-frontmatter)$
\mainmatter
$endif$
$body$

$if(has-frontmatter)$
\backmatter
$endif$
$if(nocite-ids)$
\nocite{$for(nocite-ids)$$it$$sep$, $endfor$}
$endif$
$if(biblatex)$
\printbibliography$if(biblio-title)$[title=$biblio-title$]$endif$

$endif$
$for(include-after)$
$include-after$

$endfor$
\end{document}
