TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
Do you know the package todonotes? – Kurt Apr 2 '13 at 18:26
@Kurt I've never heard of that; thanks. I've added it to my answer and marked it as community wiki in case there are any other good packages for things like this. Thanks. – Sam Whited Apr 3 '13 at 14:12
up vote 7 down vote accepted


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.

share|improve this answer

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

share|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 posting your answer, you agree to the privacy policy and terms of service.

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