When trying to use \listoftodos
with colorinlistoftodos
and ocgcolorlinks
, text disappears from the list of todos. To be precise, the text is still there, I can copy it, but cannot see it – it becomes transparent. Without the colorinlistoftodos
option or without ocgcolorlinks
, everything works fine.
Why is this happening? Is there any workaround?
MWE:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[colorlinks]{hyperref}
\usepackage[ocgcolorlinks]{ocgx2}
\usepackage[colorinlistoftodos]{todonotes}
\begin{document}
Testing \todo{This is a todonote.}
\listoftodos
\end{document}