Tell me more ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

As is -I suspect- usual is that while writing documents sometimes one skips writing certain parts for a cornucopia of reasons. For me that is usually because I am too lazy at the moment. In an case, then I have the following command to make a todo-note (can look better, I know):

\newcommand{\todo}[1]{ \vspace{5 mm} \par
\noindent \framebox{
\begin{minipage}
[c]{0.94 \textwidth}
\tt #1 \flushright  TODO
\end{minipage}
}
\vspace{5 mm} \par
}

I have obtained this some time ago from here. My question is how I add the date of adding the todo-note? One can assume that at least I compile the file on the same day as I added the todo-note, so to me, this sounds like the LaTeX process should store this in an auxiliary file (preferable one that already exists). How do I do this?

share|improve this question
3  
Wouldn't it be much easier simply to add the date manually when writing the note? – cgnieder Dec 16 '12 at 15:59
I suppose it is easy to do that, but the technique in itself might be useful in other cases as well :-). – Jonas Teuwen Dec 16 '12 at 16:03
2  
This does not answer your question, but you should have a look at the todonotes package. – Peter Grill Dec 16 '12 at 17:25
@PeterGrill I know that package, but it has too many features while what I need is really simple. – Jonas Teuwen Dec 16 '12 at 17:32
@JonasTeuwen: Ok. If you want to save the date when a \todo is first added to a file, you will also need to provide a unique name for each \todo in case you have more than one in a file. – Peter Grill Dec 16 '12 at 17:51
show 3 more comments

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.