[texhax] Information about document in the document

Reinhard Kotucha reinhard.kotucha at web.de
Thu Oct 9 00:26:10 CEST 2008


Tom Schneider writes:
 > > > \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.

Let's avoid a discussion about this brain, please.

However, on Windows you could try to invoke 'cd' without any
arguments.  It does something similar as 'pwd' on Unix.

Regards,
  Reinhard


-- 
----------------------------------------------------------------------------
Reinhard Kotucha			              Phone: +49-511-3373112
Marschnerstr. 25
D-30167 Hannover	                      mailto:reinhard.kotucha at web.de
----------------------------------------------------------------------------
Microsoft isn't the answer. Microsoft is the question, and the answer is NO.
----------------------------------------------------------------------------


More information about the texhax mailing list