Highlighting “TODO” Items in LaTeX

Several people have asked me how I make TODO appear in the margin of my thesis wherever I want to highlight an area that needs further work. The trick is to define a new LaTeX command called “todo” in your pre-amble:

(all on one line)

TODO items can then be marked up in the text as:
\todo{Add a reference here.}