From ba3f4fc7b96dd658ff262b31cd3c51b68e5aceb4 Mon Sep 17 00:00:00 2001 From: hemi Date: Sat, 1 Aug 2009 17:05:30 +0200 Subject: [PATCH] New usecase inspired by Patrick Toche --- todonotes.dtx | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) mode change 100644 => 100755 todonotes.dtx 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