[Tex/LaTex] Package todonotes: How to change the textcolor

colortodonotes

Consider following MWE:

\documentclass{article}
\usepackage{blindtext}
\usepackage[colorinlistoftodos,prependcaption,textsize=tiny]{todonotes}
\presetkeys%
   {todonotes}%
   {inline,backgroundcolor=yellow,textcolor=blue!20!white}{}
\begin{document}
\blindtext\todo{Is this text in blue?}
\end{document}

How can I specify globally the textcolor of my todonotes?

Best Answer

You can specify text color via the style used for the nodes as follows:

\tikzset{/tikz/notestyleraw/.append style={text=blue!20!white}}

Sample output

\documentclass{article}
\usepackage{blindtext}
\usepackage[colorinlistoftodos,prependcaption,textsize=tiny]{todonotes}
\presetkeys%
{todonotes}%
{inline,backgroundcolor=yellow}{}
\tikzset{/tikz/notestyleraw/.append style={text=blue!20!white}}

\begin{document}

\blindtext\todo{Is this text in blue?}

\end{document}