[Tugindia] working directory

E. Krishnan ekmath at asianetindia.com
Wed Apr 30 02:19:13 CEST 2008


On Tue, 29 Apr 2008, latexch wrote:

> 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:

1. Have the line

       \immediate\write18{pwd > path.tex}\input{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.


-- 
Krishnan


More information about the tugindia mailing list