>>>>> "John" == John Levon <[EMAIL PROTECTED]> writes:

John> On Thu, Feb 14, 2002 at 12:05:33PM +0100, Jean-Marc Lasgouttes
John> wrote:
>> I think insetgraphics should treat all file names as relative to
>> buffer directory.

John> definitely because then it also allows :

John> /home/moz/mypictures/picture.png

John> so both cases would be covered fine

This is what the include inset does.

John> perhaps even better would be to secretly store both the relative
John> and absoluate paths. That way the document then also has a
John> chance of surviving a "mv", because we look at the absolute path
John> after a failing relative path....

Secret things are guarenteed to break and annoy greatly the user.

However, we have a problem with this scheme (also in InsetInclude):
- doc1.lyx includes subdir/doc2.lyx
- subdir/doc2.lyx includes subdir/image.eps, which is therefore
  written as "image.eps".
- when running latex, image.eps is not found.

This means that when producing latex, the InsetInclude and
InsetGraphics should produce file names relative to the main document. 

I have not checked recently, but I think the problem is still here.

JMarc

Reply via email to