[texhax] working directory

Philip G. Ratcliffe philip.ratcliffe at fastwebnet.it
Wed Apr 30 10:29:26 CEST 2008


> > Anybody can help me. How can I print the ``current working folder 
> > path''
> > in my dvi file.
> 
> In a Linux system, you can do this as follows:
> [snip]

And for Windows, first load the verbatim package in your preamble:

\usepackage{verbatim}

Then

> 1. Have the line

\immediate\write18{cd > path.tex}\verbatiminput{path}

>     in your document, at the place where you want the name of 
> the working
>     directory.
> 
> 2. Run latex with the command
> 
>        latex -shell-escape filename
> 
>     where filename is the name of your file.

Cheers, Phil



More information about the texhax mailing list