对于todonotes
包,我想知道如何在待办事项列表中插入章节标题,以便将它们分组到各自的章节下。
\documentclass{book}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage[hidelinks,colorlinks=false]{hyperref}
\usepackage{todonotes,lipsum}
\begin{document}
\listoftodos
\chapter{1st Chapter}
\lipsum[1]
\todo[inline]{1st todo}
\chapter{2nd Chapter}
\lipsum[2]
\todo[inline]{2nd todo}
\end{document}