Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 677
kibibu Avatar asked Apr 27 '10 06:04

kibibu


2 Answers

Yes -- try \typeout{message}.

like image 90
Etaoin Avatar answered Nov 09 '22 06:11

Etaoin


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.

like image 42
Habi Avatar answered Nov 09 '22 08:11

Habi