\chapter{Test chapter 1} This test document is created to test advanced TOC functionality. \section{Test section 1} \subsection{Test sub section 1} \section{$\alpha$} \subsection{Test sub section 1} \subsection{Test sub section 2} Some text. \chapter{Test chapter 2} \section{Testing TOC levels} Testing more input and TOC levels. \subsection{Testing TOC sub levels} \subsubsection{Testing TOC sub sub levels} Hello world. \subsubsection{Text $\Gamma^{r}(\ensuremath{{\mathbf{Z}}}_p^d,\mathbf{K})$} \subsection{Another test subsection} \subsubsection{Other text $\Gamma^{r}$} \section{Testing more appendix levels} Testing more input and TOC levels. \subsection{Testing TOC sub levels}