@@ -171,7 +171,7 @@ $include-before$
171171$endfor$
172172$if(toc)$
173173{
174−\hypersetup{linkcolor=black}
174+\hypersetup{linkcolor=$if(toccolor)$$toccolor$$else$black$endif$}
175175\setcounter{tocdepth}{$toc-depth$}
176176\tableofcontents
177177}