$if(toc)$ $if(toc-title)$ \begin{spacing}{1.5} \renewcommand*\contentsname{$toc-title$} $endif$ $if(beamer)$ \begin{frame}[allowframebreaks] $if(toc-title)$ \frametitle{$toc-title$} $endif$ \tableofcontents[hideallsubsections] \end{frame} $else$ { $if(colorlinks)$ \hypersetup{linkcolor=$if(toccolor)$$toccolor$$else$$endif$} $endif$ \setcounter{tocdepth}{$toc-depth$} \tableofcontents } $endif$ $endif$ $if(lof)$ \listoffigures $endif$ $if(lot)$ \listoftables $endif$ \end{spacing} \newpage \pagenumbering{arabic}