[texhax] Information about document in the document
Tom Backer Johnsen
backer at psych.uib.no
Wed Oct 8 23:22:43 CEST 2008
Tom Schneider wrote:
> 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
Tom:
Thank you, I was looking at that part and could not understand why it
was there. The error message from the MikTex Windows installation I am
working with at the moment indicated that a file named path.tex was
missing. When I created such a file it worked, but I did not get the
path for the main file in the output. And the file was empty after
running, so the write18 part was not understandable.
In any case I have to admit that the machine I am using is a dual boot
one, with Ubuntu as the alternative to Windows XP. However, I have only
sniffed at Latex under Windows, all the serious work using Latex
(started 2-3 years ago) have been under Windows. I have not considered
Cygwin yet, perhaps I should.
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/
> _______________________________________________
> TeX FAQ: http://www.tex.ac.uk/faq
> Mailing list archives: http://tug.org/pipermail/texhax/
> More links: http://tug.org/begin.html
>
> Automated subscription management: http://tug.org/mailman/listinfo/texhax
> Human mailing list managers: postmaster at tug.org
--
+----------------------------------------------------------------+
| Tom Backer Johnsen, Psychometrics Unit, Faculty of Psychology |
| University of Bergen, Christies gt. 12, N-5015 Bergen, NORWAY |
| Tel : +47-5558-9185 Fax : +47-5558-9879 |
| Email : backer at psych.uib.no URL : http://www.galton.uib.no/ |
+----------------------------------------------------------------+
More information about the texhax
mailing list