toc

$if(toc)$
{
\thispagestyle{empty}
\hypersetup{linkcolor=azure}
\setcounter{tocdepth}{$toc-depth$}
%%\tableofcontents
\setlength{\parskip}{0ex}
\vspace{2em}
\tableofcontents
\setlength{\parskip}{1ex}
\thispagestyle{empty}
}
\newpage
\setcounter{page}{1} 
$endif$