Is there a LaTeX command that will log to the output/error console?

kibibu picture kibibu · Apr 27, 2010 · Viewed 7.8k times · Source

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?

Answer

Etaoin picture Etaoin · Apr 27, 2010

Yes -- try \typeout{message}.