[texhax] Information about document in the document

Dr Nicola L C Talbot n.talbot at uea.ac.uk
Wed Oct 8 14:27:24 CEST 2008


Tom Backer Johnsen wrote:
> For some of the documents I write I would like to include a line in the 
> upper left corner of the first page containing (a) the directory and 
> name of the main file, and (b) the date and the time the document was 
> printed.  At the same time I would like to drop the date that appears by 
> default when using the \maketitle command.
> 
> I know about the \jobname command which gives the name of the main file 
> (without the extension), but how do I get hold of the (full) directory 
> path and the date/time?

The datetime package provides a command for printing the current time 
(you can change the format). I think the fink package provides a command 
to access the directory name.

Regards
Nicola Talbot



More information about the texhax mailing list