I am trying to compile a pdf from Latex source using TexStudio, which calls pdflatex. Take a look at the following code:
%\documentclass[]{aastex62}
\documentclass{article}
\usepackage[]{hyperref}
\begin{document}
\section{The First}
\section{The Second}
\subsection{Section 2.1}
\end{document}
Now, when I use the article class, I get a pdf that has the contents embedded: Look, a working TOC
Whereas if I use the aastex62 class, I get nothing: Nope, nothing to see here
Some things that I know:
1. aastex already calls hyperref, so I don't have to import it again. The issue I'm having isn't sensitive to this change.
2. This issue also happens in Overleaf, so it shouldn't be in any way dependent on my personal setup. Here is a minimum working overleaf example
3. This issue is similar/the same as this issue, but the solution there does not work with the aastex62 document class.
So, what do I need to do to make this work?