General ⇒ File name and time in compilation
File name and time in compilation
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
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
-
- Posts: 90
- Joined: Fri Nov 06, 2009 7:29 am
File name and time in compilation
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
Bests