I have a command \TODO (and \FIXME) that display a review note in the document. I'd like to collect all those notes at the end of the document as well, like a list of figures.

Is there some easy way to do this with the remark and the page number? Extra points for listing the section as well.

  • 3
    Do you know the package todonotes? – Mensch Apr 2 '13 at 18:26


You can define new lists using the tocloft package.

For example:

\newlistof{todo}{lotd}{TODO List}

Then, in your TODO command:

    \addcontentsline{lotd}{todo}{TODO \thetodo}
    % Your TODO command

Finally, at the end of the document, you can run:


to print a table of todo's similar to the table of contents or list of figures. More info in the tocloft documentation.


As someone else suggested, the todonotes package also looks good. It works in a similar manner, and you can insert a list using:


The question has been marked as community wiki in case there are other packages like this I've missed.


As you see, I flag the todo in the text itself. If you don't wish to disturb your formatting, you could eliminate that feature, but it might then be hard to locate the todo in the original document. (EDITED to remove spurious whitespace)

  \expandafter\def\csname todo\roman{todoindex}\endcsname{#1}%
  (TODO \arabic{todoindex})%
  \rule{10ex}{.5ex}TO-DO LIST\rule{10ex}{.5ex}\\%
  \whiledo{\value{index} < \value{todoindex}}{%
    \arabic{index}):  \csname todo\roman{index}\endcsname\\%

I start hear \TODO{Fix this bug} and do some work

THen I do thiis \TODO{Get spelling fixed, too} which I have to get back

and then I am done



enter image description here

| improve this answer | |
  • Looks interesting, but it yielded just a list of numbers, but no text for me. I'll be using Sam Whited's answer, since it is shorter. – Martin Ueding Apr 2 '13 at 18:09
  • @queueoverflow When using it, did you pass an argument to the \TODO command? It saves the argument for regurgitation later. – Steven B. Segletes Apr 2 '13 at 18:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.