[Tex/LaTex] \listoftodos in Todo list missing hyperlinks and colors in the document

table of contentstextmatetodonotes

I'm trying to add a \listoftodos using the todonotes package to a template file I have. I've added two todos with \todo[inline]{Write abstract \ldots} and \todo{Fill in these details \ldots}. I'm using TextMate to render my document on Mac Osx.

My list of todos in my document looks like this:
TODO List

My table of contents (in Estonian) looks like this (I think it might be interfering with the styling):
enter image description here

And finally, the intended behaviour and styling from todonotes documentation looks like this with hyperlinks and colors:
enter image description here

Do you have any ideas how to debug the styling issues with rendering todos?

Best Answer

Add the option [colorinlistoftodos] to your documentclass, see 1.2 Package options,p.4:colorinlistoftodos.

colorinlistoftodos:

Adds a small colored square in front of all items in the Todo list.

For hyperlinks you nedd \usepackage{hyperref} or without box \usepackage[hidelinks]{hyperref}.

enter image description here

MWE:

\documentclass[colorinlistoftodos]{scrartcl}
\usepackage[hidelinks]{hyperref}
\usepackage{todonotes}

\begin{document}

\listoftodos

\section{Contents}
\todo[color=green!40]{And a green note}
test text \todo{test}
\todo{Make a cake \ldots}
\todo[linecolor=green!70!white, backgroundcolor=blue!20!white,
bordercolor=red]{Anything but default colors}
\end{document}