Re: [Bug 162445] dvips searches current directory for eps files instead of target

2007-11-15 Thread Norbert Preining
On Di, 13 Nov 2007, Ulf Ochsenfahrt wrote:
 When dvips is invoked, it looks in the current directory for eps files
 instead of the directory which contains the dvi file. This means that

latex searches eps via TEXINPUTS, and AFAIR also dvips.

So it finds what you find with TEXINPUTS:

 dvips cannot be used to compile dvi files which are in a different
than

Yes, but the TEXINPUTS path must be fixed.

 5. convert dvi file to ps
 dvips directory/test.dvi

Not surprising. In the respective \special which is saved into the dvi
file there is nothing about the directory:
$ strings test.dvi   
 TeX output 2007.11.15:1302
:PSfile=test.eps llx=100 lly=100 urx=150 ury=150 rhi=566 
cmr10
cmr10
$

A simple solution is to call
$ TEXINPUT=directory/: dvips directory/test.tex

 6. observe the error message
 dvips: Could not find figure file test.eps; continuing.

Yes it says what it is ...

Simple solution: Set your TEXINPUTS right.

PLease can someone close this bug?

Best wishes

Norbert

---
Dr. Norbert Preining [EMAIL PROTECTED]Vienna University of Technology
Debian Developer [EMAIL PROTECTED] Debian TeX Group
gpg DSA: 0x09C5B094  fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
---
VANCOUVER (n.)
The technical name for one of those huge trucks with whirling brushes
on the bottom used to clean streets.
--- Douglas Adams, The Meaning of Liff

-- 
dvips searches current directory for eps files instead of target
https://bugs.launchpad.net/bugs/162445
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 162445] dvips searches current directory for eps files instead of target

2007-11-13 Thread Ulf Ochsenfahrt
Public bug reported:

Binary package hint: texlive-base-bin

When dvips is invoked, it looks in the current directory for eps files
instead of the directory which contains the dvi file. This means that
dvips cannot be used to compile dvi files which are in a different than
the current directory.

Steps to reproduce:
1. create a test.tex file:
\documentclass{article}
\usepackage{epsfig}
\begin{document}
\epsfig{file=test.eps,height=2cm}
\end{document}

2. create a test.eps file:
touch test.eps

3. compile the latex file
(if the eps is empty, the compile fails, just press 'q' to exit)

4. go to a different directory
cd ..

5. convert dvi file to ps
dvips directory/test.dvi

6. observe the error message
dvips: Could not find figure file test.eps; continuing.
Note that an absolute path or a relative path with .. are denied in -R2 mode.

** Affects: texlive-bin (Ubuntu)
 Importance: Undecided
 Status: New

-- 
dvips searches current directory for eps files instead of target
https://bugs.launchpad.net/bugs/162445
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs