From bd4c430d0adb23285b280cfe3c60002dc1ec06de Mon Sep 17 00:00:00 2001 From: hemi Date: Mon, 4 Jan 2010 20:25:28 +0100 Subject: [PATCH] Added a new usecase, that includes the current subsubsection number in the inserted todonote. --- todonotes.dtx | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/todonotes.dtx b/todonotes.dtx index 12a3f26..8cf2556 100755 --- a/todonotes.dtx +++ b/todonotes.dtx @@ -862,6 +862,23 @@ % \todoTrans[inline]{damplokomotiv} % % +% \pagebreak[4] +% \subsubsection{Numbered todonotes} +% +% The inserted todonotes can be argumented with the current subsubsection number. +% The code is shown below. +% \newcommand{\ntodo}[2][]{\todo[#1]{\thesubsubsection{}. #2}} +% \begin{verbatim} +% \newcommand{\ntodo}[2][]{\todo[#1]{\thesubsubsection{}. #2}} +% \end{verbatim} +% By changing |\thesubsubsection| to |\thesection|, the current section number +% can be inserted instead of the subsubsection number. +% The result looks \ntodo{A numbered todo.} like. +% Which were generated by the code +% \begin{verbatim} +% \ntodo{A subsection numbered todo.}. +% \end{verbatim} +% % % %