I'm curious to find out whether anybody has suggestions for a preprocessor for LaTeX documents. What I'm thinking of is something like cpp. The motivation for my question is that I'm writing a large document in which I insert comments to myself, such as
\textbf{XXX TO DO: need transition paragraph. Make sure to mention xy's work. XXX}
for example. When I periodically release parts of the (unfinished) document to selected people, I comment out the TO DO's and I replace the detailed Subversion version string in the footer (version, date, time, etc.) by a simpler string that asserts my authorship and that the document should not be distributed. I would be glad if these changes could be automated and something like cpp seems an obvious candidate.
I realize that writing a little preprocessor using awk or sed is not that big a deal, but ideally I want to reuse existing software. My digging so far has only found gpp
http://en.nothingisreal.com/wiki/GPP
and filepp
http://www.cabaret.demon.co.uk/filepp/
Both of these seem pretty old judging from dates on the websites, however. Any comments, experience, ideas?
TODO
comments or just hide them. In the latter case you can use theTODO
package.\def\todo#1{\message{^^J^^J!!! >>> WARNING <<< !!! #1^^J^^J}\bgroup\color{red} #1\egroup}
. You could also use the\warning
. When you dont need it, just\def\todo#1{}
.todo
,ìfdraft
).