@@ -159,7 +159,7 @@ $include-before$
159159$endfor$
160160$if(toc)$
161161{
162−\hypersetup{linkcolor=black}
162+\hypersetup{linkcolor=$if(toccolor)$$toccolor$$else$black$endif$}
163163\setcounter{tocdepth}{$toc-depth$}
164164\tableofcontents
165165}