For printed drafts of my papers, I would like to add a timestamp on every page with the date/time when the document was last compiled. Is there any LaTeX command that produces the current date/time at compile time? Even better, is there any package that already solves my problem?
|
One can use |
|||
|
|
|
Expanding on Grigory's answer, here's a MWE. To get the date and time in a reasonable format, I found that I wanted the most recent version of datetime, which is dated 2010/02/06 (the version that is on my system - from TeXLive 2009 - is dated 2007). Using the default options for date and time format made the information too long (as it is, I decided it was better to shift the page number from the centre to the left).
If for some reason you can't use the 2010 version (or can't be sure that coworkers have it), a solution that works on the older
This later version also keeps the pagestyle closer to the (edited by Andrew in response to Juan's comment - I can't resist a challenge; and then edited again by Juan to improve the example) |
|||||||||
|