
對於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}