[texhax] Information about document in the document
Tom Schneider
toms at ncifcrf.gov
Wed Oct 8 15:38:27 CEST 2008
Tom:
> > This is one way of doing it in a linux system
> >
> > \documentclass{article}
> > \usepackage{calc}
> > \usepackage{fancyhdr}
> >
> > \fancyhead[L]{%
> > \makebox[\taglen-4cm][r]{%
> > \small\ttfamily
> > \printfilename \today\ \printtime}}
> > \renewcommand{\headrulewidth}{0pt}
> >
> > \newcommand{\filename}{\jobname.tex}
> > \newcommand{\printfilename}{%
> > \immediate\write18{pwd > path.tex}{\input{path}\llap/\filename}}
See the 'pwd' there? That's 'print working directory', a command
under all unix operating systems such as Linux. It probably doesn't
exist in Bill's brain. However perhaps you can put unix on your
machine (ubuntu!) or make a unix platform (Cygwin) in which you can
run the program.
Tom
Dr. Thomas D. Schneider
National Institutes of Health
National Cancer Institute
Center for Cancer Research Nanobiology Program
Molecular Information Theory Group
Frederick, Maryland 21702-1201
toms at ncifcrf.gov
permanent email: toms at alum.mit.edu
http://www.ccrnp.ncifcrf.gov/~toms/
More information about the texhax
mailing list