diff --git a/todonotes.dtx b/todonotes.dtx old mode 100644 new mode 100755 index bc2ae3c..7492d28 --- a/todonotes.dtx +++ b/todonotes.dtx @@ -772,6 +772,28 @@ % \todoTrans[inline]{damplokomotiv} % % +% +% +% \subsubsection{Enumerate todonotes} +% +% If the inserted todonotes should be enumerated, it is possible to define +% a new command with the desired behaviour. +% \begin{verbatim} +% \newcounter{todocounter} +% \newcommand{\todonum}[2][] +% {\stepcounter{todocounter}\todo[#1]{\thetodocounter: #2}} +% \end{verbatim} +% \newcounter{todocounter} +% \newcommand{\todonum}[2][] +% {\stepcounter{todocounter}\todo[#1]{\thetodocounter: #2}} +% The idea is to define a new counter |todocounter|, and insert the +% value of the counter in each todonote. +% The new command can be used like +% |\todonum{Numbered todonote.}| +% \todonum{Numbered todonote.} +% +% +% % \iffalse % \StopEventually{\PrintChanges\PrintIndex} % \fi