I'm using the todonotes
package to add notes in my documents. The \listoftodos
command adds a ToC for todos.
Instead of the page numbers in this ToC, I would like to display another value, for example \thesection
. The todonotes
package manipulates a ToC named .tdo
, so I'm guessing I can do that with tocloft
but so far I've failed to achieve it.
Here is a MWE:
\documentclass{scrbook}
\usepackage{todonotes}
\usepackage{tocloft}
\usepackage{lipsum}
\begin{document}
\chapter{My first chapter}
\section{A first section}
\lipsum
\todo{This is a note}
\section{Another section}
\lipsum
\todo{This is another note}
\listoftodos
\end{document}
The two notes have page numbers 2 and 3 respectively. I would like them to show 1.1
and 1.2
(section numbers) instead. How can I do that?