24

I have created a LaTeX \todo{} command which outputs todo notes in the margin:

\newcommand\todo[1]{\marginpar{#1}}

However, I'd really like to output a list of all my todo notes to the output console. I had written a trivial python script to parse .tex files to do so, but have since switched to using latexmk to handle recompilation. My script doesn't really handle using \includeonly either.

Can I write straight into the LaTeX console output from within latex?

kibibu
  • 6,115
  • 1
  • 35
  • 41

2 Answers2

33

Yes -- try \typeout{message}.

Etaoin
  • 8,444
  • 2
  • 28
  • 44
8

You should definitely give the todonote-package a try. It writes all your todos into the TOC (if desired) and writes a .tdo-file with all the todos into the directory of the root file.

Habi
  • 1,157
  • 6
  • 18
  • Thanks Habi, I didn't realize this package also created a todo list file! I might see if I can trivially switch to using it. However, I'm going to accept Etaoin's answer as it more directly answers the question. – kibibu Apr 27 '10 at 11:19