From a8eb2d3cc4320149c8719cc83e0aab69eb6af081 Mon Sep 17 00:00:00 2001 From: Henrik Skov Midtiby Date: Mon, 30 Mar 2009 19:58:03 +0200 Subject: [PATCH] Use case from Andreas Plank (link back to list of todos) --- todonotes.dtx | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/todonotes.dtx b/todonotes.dtx index 8193102..6bda935 100644 --- a/todonotes.dtx +++ b/todonotes.dtx @@ -713,6 +713,41 @@ % } % % +% +% \subsubsection{Link to list of todos} +% +% Andreas Plank have submitted this example. +% \begin{verbatim} +% % Define a counter for the inserted todonotes. +% \newcounter{todoListItems} +% \newcommand{\todoTrans}[2][ ]{ +% % Increment counter +% \addtocounter{todoListItems}{1} +% \todo[% +% caption={\protect\hypertarget{todo\thetodoListItems}{} Translation}, +% #1] +% { +% #2 \hfill +% \hyperlink{todo\thetodoListItems}{$\uparrow$} +% } +% } +% \end{verbatim} +% +% \newcounter{todoListItems} +% \newcommand{\todoTrans}[2][ ]{ +% \addtocounter{todoListItems}{1} +% \todo[ +% caption={\protect\hypertarget{todo\thetodoListItems}{} Translation}, +% #1]{ +% #2 \hfill +% \hyperlink{todo\thetodoListItems}{$\uparrow$} +% } +% } +% +% \todoTrans{papirsflyver} +% \todoTrans[inline]{damplokomotiv} +% +% % \iffalse % \StopEventually{\PrintChanges\PrintIndex} % \fi