Hi all,
How can I add automatically in the header or in the footer the filename and the time of the compilation? For example, I want a header/footer like:
mytesis.tex - 14/11/2009 01:17 hr
Thanks in advance
General ⇒ File name and time in compilation
File name and time in compilation
"Show me your .emacs and I'll tell you who you are." -- modified proverb
NEW: TikZ book now 40% off at Amazon.com for a short time.

-
- Posts: 90
- Joined: Fri Nov 06, 2009 7:29 am
File name and time in compilation
Hi,
For the file name, the \jobname command should be sufficient.
For the time, you could try using the datetime package and the code
NB: I haven't tested the datetime package, but looking through it's documentation, it should do what you want
Hope that helps
For the file name, the \jobname command should be sufficient.
For the time, you could try using the datetime package and the code
Code: Select all
\settimeformat{ampmtime}
\today \currenttime
Hope that helps
Re: File name and time in compilation
Thanks a lot magicmoose. Works great.
Bests
Bests
"Show me your .emacs and I'll tell you who you are." -- modified proverb