Re: absolute path and graphics file

2003-07-07 Thread Jean-Marc Lasgouttes
 Fernando == Fernando Perez [EMAIL PROTECTED] writes:

Fernando Jean-Marc Lasgouttes wrote:
 Marcin == Marcin Bukat [EMAIL PROTECTED] writes:
Marcin Current behavor is ok unless You work on the same document on
Marcin few different machines (home/work for example).
 Could you give a more precise example on the kind of document
 hierarchy that you use?

Fernando The question wasn't to me, but here's a simple example where
Fernando absolute paths are a problem: suppose I work on the same lyx
Fernando doc at my work computer and on my laptop. At work, $HOME is
Fernando /usr/users/fperez, on my laptop it's /usr/local/home/fperez.
Fernando If the figure paths are absolute, the document won't work
Fernando correctly in one of the two computers. I can work around
Fernando that by making fake symlinks to simulate the paths, but it's
Fernando kind of a clunky solution.

This is why LyX tries to use relative paths when it think it is
reasonable (of course there is a bug in the qt port in 1.3.2, but this
will be fixed in 1.3.3).

JMarc


Re: absolute path and graphics file

2003-07-07 Thread Fernando Perez
Jean-Marc Lasgouttes wrote:

Fernando The question wasn't to me, but here's a simple example where
Fernando absolute paths are a problem: suppose I work on the same lyx
Fernando doc at my work computer and on my laptop. At work, $HOME is
Fernando /usr/users/fperez, on my laptop it's /usr/local/home/fperez.
Fernando If the figure paths are absolute, the document won't work
Fernando correctly in one of the two computers. I can work around
Fernando that by making fake symlinks to simulate the paths, but it's
Fernando kind of a clunky solution.
This is why LyX tries to use relative paths when it think it is
reasonable (of course there is a bug in the qt port in 1.3.2, but this
will be fixed in 1.3.3).
Sure, I'll update when 1.3.3 is out.  I just wanted to give an example 
explicitly, as I think I saw someone asking for absolute paths, and I wanted 
to show a case where they cause problems.  But I could have just 
misinterpreted something in the earlier discussion.

Best,

f



Re: absolute path and graphics file

2003-07-07 Thread Guanglei Cui
That's exactly what I experienced. In my case, the working directory is 
mounted on one machine as /share/cuigl/pcshare/doc/dissertation, and on 
another machine it's mounted something else. So the absolute path doesn't 
work on the 2nd machine. 

Guanglei

On Monday 07 July 2003 13:11, Fernando Perez wrote:
 Jean-Marc Lasgouttes wrote:
  Fernando The question wasn't to me, but here's a simple example where
  Fernando absolute paths are a problem: suppose I work on the same lyx
  Fernando doc at my work computer and on my laptop. At work, $HOME is
  Fernando /usr/users/fperez, on my laptop it's /usr/local/home/fperez.
  Fernando If the figure paths are absolute, the document won't work
  Fernando correctly in one of the two computers. I can work around
  Fernando that by making fake symlinks to simulate the paths, but it's
  Fernando kind of a clunky solution.
 
  This is why LyX tries to use relative paths when it think it is
  reasonable (of course there is a bug in the qt port in 1.3.2, but this
  will be fixed in 1.3.3).

 Sure, I'll update when 1.3.3 is out.  I just wanted to give an example
 explicitly, as I think I saw someone asking for absolute paths, and I
 wanted to show a case where they cause problems.  But I could have just
 misinterpreted something in the earlier discussion.

 Best,

 f

-- 
Guanglei Cui
Dept. of Chemistry
SUNY at Stony Brook
Stony Brook, NY 11790



Re: absolute path and graphics file

2003-07-07 Thread Jean-Marc Lasgouttes
 Fernando == Fernando Perez [EMAIL PROTECTED] writes:

Fernando Jean-Marc Lasgouttes wrote:
 Marcin == Marcin Bukat [EMAIL PROTECTED] writes:
Marcin Current behavor is ok unless You work on the same document on
Marcin few different machines (home/work for example).
 Could you give a more precise example on the kind of document
 hierarchy that you use?

Fernando The question wasn't to me, but here's a simple example where
Fernando absolute paths are a problem: suppose I work on the same lyx
Fernando doc at my work computer and on my laptop. At work, $HOME is
Fernando /usr/users/fperez, on my laptop it's /usr/local/home/fperez.
Fernando If the figure paths are absolute, the document won't work
Fernando correctly in one of the two computers. I can work around
Fernando that by making fake symlinks to simulate the paths, but it's
Fernando kind of a clunky solution.

This is why LyX tries to use relative paths when it think it is
reasonable (of course there is a bug in the qt port in 1.3.2, but this
will be fixed in 1.3.3).

JMarc


Re: absolute path and graphics file

2003-07-07 Thread Fernando Perez
Jean-Marc Lasgouttes wrote:

Fernando The question wasn't to me, but here's a simple example where
Fernando absolute paths are a problem: suppose I work on the same lyx
Fernando doc at my work computer and on my laptop. At work, $HOME is
Fernando /usr/users/fperez, on my laptop it's /usr/local/home/fperez.
Fernando If the figure paths are absolute, the document won't work
Fernando correctly in one of the two computers. I can work around
Fernando that by making fake symlinks to simulate the paths, but it's
Fernando kind of a clunky solution.
This is why LyX tries to use relative paths when it think it is
reasonable (of course there is a bug in the qt port in 1.3.2, but this
will be fixed in 1.3.3).
Sure, I'll update when 1.3.3 is out.  I just wanted to give an example 
explicitly, as I think I saw someone asking for absolute paths, and I wanted 
to show a case where they cause problems.  But I could have just 
misinterpreted something in the earlier discussion.

Best,

f



Re: absolute path and graphics file

2003-07-07 Thread Guanglei Cui
That's exactly what I experienced. In my case, the working directory is 
mounted on one machine as /share/cuigl/pcshare/doc/dissertation, and on 
another machine it's mounted something else. So the absolute path doesn't 
work on the 2nd machine. 

Guanglei

On Monday 07 July 2003 13:11, Fernando Perez wrote:
 Jean-Marc Lasgouttes wrote:
  Fernando The question wasn't to me, but here's a simple example where
  Fernando absolute paths are a problem: suppose I work on the same lyx
  Fernando doc at my work computer and on my laptop. At work, $HOME is
  Fernando /usr/users/fperez, on my laptop it's /usr/local/home/fperez.
  Fernando If the figure paths are absolute, the document won't work
  Fernando correctly in one of the two computers. I can work around
  Fernando that by making fake symlinks to simulate the paths, but it's
  Fernando kind of a clunky solution.
 
  This is why LyX tries to use relative paths when it think it is
  reasonable (of course there is a bug in the qt port in 1.3.2, but this
  will be fixed in 1.3.3).

 Sure, I'll update when 1.3.3 is out.  I just wanted to give an example
 explicitly, as I think I saw someone asking for absolute paths, and I
 wanted to show a case where they cause problems.  But I could have just
 misinterpreted something in the earlier discussion.

 Best,

 f

-- 
Guanglei Cui
Dept. of Chemistry
SUNY at Stony Brook
Stony Brook, NY 11790



Re: absolute path and graphics file

2003-07-07 Thread Jean-Marc Lasgouttes
> "Fernando" == Fernando Perez <[EMAIL PROTECTED]> writes:

Fernando> Jean-Marc Lasgouttes wrote:
>>> "Marcin" == Marcin Bukat <[EMAIL PROTECTED]> writes:
Marcin> Current behavor is ok unless You work on the same document on
Marcin> few different machines (home/work for example).
>> Could you give a more precise example on the kind of document
>> hierarchy that you use?

Fernando> The question wasn't to me, but here's a simple example where
Fernando> absolute paths are a problem: suppose I work on the same lyx
Fernando> doc at my work computer and on my laptop. At work, $HOME is
Fernando> /usr/users/fperez, on my laptop it's /usr/local/home/fperez.
Fernando> If the figure paths are absolute, the document won't work
Fernando> correctly in one of the two computers. I can work around
Fernando> that by making fake symlinks to simulate the paths, but it's
Fernando> kind of a clunky solution.

This is why LyX tries to use relative paths when it think it is
reasonable (of course there is a bug in the qt port in 1.3.2, but this
will be fixed in 1.3.3).

JMarc


Re: absolute path and graphics file

2003-07-07 Thread Fernando Perez
Jean-Marc Lasgouttes wrote:

Fernando> The question wasn't to me, but here's a simple example where
Fernando> absolute paths are a problem: suppose I work on the same lyx
Fernando> doc at my work computer and on my laptop. At work, $HOME is
Fernando> /usr/users/fperez, on my laptop it's /usr/local/home/fperez.
Fernando> If the figure paths are absolute, the document won't work
Fernando> correctly in one of the two computers. I can work around
Fernando> that by making fake symlinks to simulate the paths, but it's
Fernando> kind of a clunky solution.
This is why LyX tries to use relative paths when it think it is
reasonable (of course there is a bug in the qt port in 1.3.2, but this
will be fixed in 1.3.3).
Sure, I'll update when 1.3.3 is out.  I just wanted to give an example 
explicitly, as I think I saw someone asking for absolute paths, and I wanted 
to show a case where they cause problems.  But I could have just 
misinterpreted something in the earlier discussion.

Best,

f



Re: absolute path and graphics file

2003-07-07 Thread Guanglei Cui
That's exactly what I experienced. In my case, the working directory is 
mounted on one machine as /share/cuigl/pcshare/doc/dissertation, and on 
another machine it's mounted something else. So the absolute path doesn't 
work on the 2nd machine. 

Guanglei

On Monday 07 July 2003 13:11, Fernando Perez wrote:
> Jean-Marc Lasgouttes wrote:
> > Fernando> The question wasn't to me, but here's a simple example where
> > Fernando> absolute paths are a problem: suppose I work on the same lyx
> > Fernando> doc at my work computer and on my laptop. At work, $HOME is
> > Fernando> /usr/users/fperez, on my laptop it's /usr/local/home/fperez.
> > Fernando> If the figure paths are absolute, the document won't work
> > Fernando> correctly in one of the two computers. I can work around
> > Fernando> that by making fake symlinks to simulate the paths, but it's
> > Fernando> kind of a clunky solution.
> >
> > This is why LyX tries to use relative paths when it think it is
> > reasonable (of course there is a bug in the qt port in 1.3.2, but this
> > will be fixed in 1.3.3).
>
> Sure, I'll update when 1.3.3 is out.  I just wanted to give an example
> explicitly, as I think I saw someone asking for absolute paths, and I
> wanted to show a case where they cause problems.  But I could have just
> misinterpreted something in the earlier discussion.
>
> Best,
>
> f

-- 
Guanglei Cui
Dept. of Chemistry
SUNY at Stony Brook
Stony Brook, NY 11790



Re: absolute path and graphics file

2003-07-04 Thread Jean-Marc Lasgouttes
 Marcin == Marcin Bukat [EMAIL PROTECTED] writes:

Marcin Current behavor is ok unless You work on the same document on
Marcin few different machines (home/work for example).

Could you give a more precise example on the kind of document
hierarchy that you use?

JMarc


Re: absolute path and graphics file

2003-07-04 Thread Fernando Perez
Jean-Marc Lasgouttes wrote:
Marcin == Marcin Bukat [EMAIL PROTECTED] writes:


Marcin Current behavor is ok unless You work on the same document on
Marcin few different machines (home/work for example).
Could you give a more precise example on the kind of document
hierarchy that you use?
The question wasn't to me, but here's a simple example where absolute paths 
are a problem:  suppose I work on the same lyx doc at my work computer and on 
my laptop.  At work, $HOME is /usr/users/fperez, on my laptop it's 
/usr/local/home/fperez.  If the figure paths are absolute, the document won't 
work correctly in one of the two computers.  I can work around that by making 
fake symlinks to simulate the paths, but it's kind of a clunky solution.

HTH.

Best,

f.



Re: absolute path and graphics file

2003-07-04 Thread Jean-Marc Lasgouttes
 Marcin == Marcin Bukat [EMAIL PROTECTED] writes:

Marcin Current behavor is ok unless You work on the same document on
Marcin few different machines (home/work for example).

Could you give a more precise example on the kind of document
hierarchy that you use?

JMarc


Re: absolute path and graphics file

2003-07-04 Thread Fernando Perez
Jean-Marc Lasgouttes wrote:
Marcin == Marcin Bukat [EMAIL PROTECTED] writes:


Marcin Current behavor is ok unless You work on the same document on
Marcin few different machines (home/work for example).
Could you give a more precise example on the kind of document
hierarchy that you use?
The question wasn't to me, but here's a simple example where absolute paths 
are a problem:  suppose I work on the same lyx doc at my work computer and on 
my laptop.  At work, $HOME is /usr/users/fperez, on my laptop it's 
/usr/local/home/fperez.  If the figure paths are absolute, the document won't 
work correctly in one of the two computers.  I can work around that by making 
fake symlinks to simulate the paths, but it's kind of a clunky solution.

HTH.

Best,

f.



Re: absolute path and graphics file

2003-07-04 Thread Jean-Marc Lasgouttes
> "Marcin" == Marcin Bukat <[EMAIL PROTECTED]> writes:

Marcin> Current behavor is ok unless You work on the same document on
Marcin> few different machines (home/work for example).

Could you give a more precise example on the kind of document
hierarchy that you use?

JMarc


Re: absolute path and graphics file

2003-07-04 Thread Fernando Perez
Jean-Marc Lasgouttes wrote:
"Marcin" == Marcin Bukat <[EMAIL PROTECTED]> writes:


Marcin> Current behavor is ok unless You work on the same document on
Marcin> few different machines (home/work for example).
Could you give a more precise example on the kind of document
hierarchy that you use?
The question wasn't to me, but here's a simple example where absolute paths 
are a problem:  suppose I work on the same lyx doc at my work computer and on 
my laptop.  At work, $HOME is /usr/users/fperez, on my laptop it's 
/usr/local/home/fperez.  If the figure paths are absolute, the document won't 
work correctly in one of the two computers.  I can work around that by making 
fake symlinks to simulate the paths, but it's kind of a clunky solution.

HTH.

Best,

f.



Re: absolute path and graphics file

2003-07-03 Thread Jean-Marc Lasgouttes
 Marcin == Marcin Bukat [EMAIL PROTECTED] writes:

Marcin Uz.ytkownik Jean-Marc Lasgouttes napisa?:
 Marcin == Marcin Bukat [EMAIL PROTECTED] writes:
Marcin Hmm. I see the same bug in xforms version. If included file
 is
Marcin in 'parent directory' path is absolute.
 The algorithm used currently is: * compute the included file path
 relative to the document path * if this relative path starts with
 ../, use an absolute path instead. The idea is that paths that are
 upper than the document are not likely to be moved at the same time
 as the document. If you want to call that a bug, you have to
 propose a better algorithm... And of course the user can always
 override this choice. JMarc

Marcin I would say it unconsequent behavior thats all. What about
Marcin adding switch 'always use relative path' to prefferences?

I am not very keen of adding prefs every time we cannot make a
choice... 

I see the need for having an absolute path in some cases: for example,
if you add some logo in the title page of a document, this logo will
probably be in a fixed place.

JMarc


Re: absolute path and graphics file

2003-07-03 Thread Marcin Bukat
Marcin in 'parent directory' path is absolute.

The algorithm used currently is: * compute the included file path
relative to the document path * if this relative path starts with
../, use an absolute path instead. The idea is that paths that are
upper than the document are not likely to be moved at the same time
as the document. If you want to call that a bug, you have to
propose a better algorithm... And of course the user can always
override this choice. JMarc


Marcin I would say it unconsequent behavior thats all. What about
Marcin adding switch 'always use relative path' to prefferences?
I am not very keen of adding prefs every time we cannot make a
choice... 

I see the need for having an absolute path in some cases: for example,
if you add some logo in the title page of a document, this logo will
probably be in a fixed place.
JMarc
Current behavor is ok unless You work on the same document on few 
different machines (home/work for example).

Regards
wo



Re: absolute path and graphics file

2003-07-03 Thread Jean-Marc Lasgouttes
 Marcin == Marcin Bukat [EMAIL PROTECTED] writes:

Marcin Uz.ytkownik Jean-Marc Lasgouttes napisa?:
 Marcin == Marcin Bukat [EMAIL PROTECTED] writes:
Marcin Hmm. I see the same bug in xforms version. If included file
 is
Marcin in 'parent directory' path is absolute.
 The algorithm used currently is: * compute the included file path
 relative to the document path * if this relative path starts with
 ../, use an absolute path instead. The idea is that paths that are
 upper than the document are not likely to be moved at the same time
 as the document. If you want to call that a bug, you have to
 propose a better algorithm... And of course the user can always
 override this choice. JMarc

Marcin I would say it unconsequent behavior thats all. What about
Marcin adding switch 'always use relative path' to prefferences?

I am not very keen of adding prefs every time we cannot make a
choice... 

I see the need for having an absolute path in some cases: for example,
if you add some logo in the title page of a document, this logo will
probably be in a fixed place.

JMarc


Re: absolute path and graphics file

2003-07-03 Thread Marcin Bukat
Marcin in 'parent directory' path is absolute.

The algorithm used currently is: * compute the included file path
relative to the document path * if this relative path starts with
../, use an absolute path instead. The idea is that paths that are
upper than the document are not likely to be moved at the same time
as the document. If you want to call that a bug, you have to
propose a better algorithm... And of course the user can always
override this choice. JMarc


Marcin I would say it unconsequent behavior thats all. What about
Marcin adding switch 'always use relative path' to prefferences?
I am not very keen of adding prefs every time we cannot make a
choice... 

I see the need for having an absolute path in some cases: for example,
if you add some logo in the title page of a document, this logo will
probably be in a fixed place.
JMarc
Current behavor is ok unless You work on the same document on few 
different machines (home/work for example).

Regards
wo



Re: absolute path and graphics file

2003-07-03 Thread Jean-Marc Lasgouttes
> "Marcin" == Marcin Bukat <[EMAIL PROTECTED]> writes:

Marcin> Uz.ytkownik Jean-Marc Lasgouttes napisa?:
>>> "Marcin" == Marcin Bukat <[EMAIL PROTECTED]> writes:
Marcin> Hmm. I see the same bug in xforms version. If included file
>> is
Marcin> in 'parent directory' path is absolute.
>> The algorithm used currently is: * compute the included file path
>> relative to the document path * if this relative path starts with
>> ../, use an absolute path instead. The idea is that paths that are
>> upper than the document are not likely to be moved at the same time
>> as the document. If you want to call that a bug, you have to
>> propose a better algorithm... And of course the user can always
>> override this choice. JMarc

Marcin> I would say it unconsequent behavior thats all. What about
Marcin> adding switch 'always use relative path' to prefferences?

I am not very keen of adding prefs every time we cannot make a
choice... 

I see the need for having an absolute path in some cases: for example,
if you add some logo in the title page of a document, this logo will
probably be in a fixed place.

JMarc


Re: absolute path and graphics file

2003-07-03 Thread Marcin Bukat
Marcin> in 'parent directory' path is absolute.

The algorithm used currently is: * compute the included file path
relative to the document path * if this relative path starts with
../, use an absolute path instead. The idea is that paths that are
upper than the document are not likely to be moved at the same time
as the document. If you want to call that a bug, you have to
propose a better algorithm... And of course the user can always
override this choice. JMarc


Marcin> I would say it unconsequent behavior thats all. What about
Marcin> adding switch 'always use relative path' to prefferences?
I am not very keen of adding prefs every time we cannot make a
choice... 

I see the need for having an absolute path in some cases: for example,
if you add some logo in the title page of a document, this logo will
probably be in a fixed place.
JMarc
Current behavor is ok unless You work on the same document on few 
different machines (home/work for example).

Regards
wo



Re: absolute path and graphics file

2003-07-01 Thread Jean-Marc Lasgouttes
 Guanglei == Guanglei Cui [EMAIL PROTECTED] writes:

Guanglei Thanks, but can this be automatic? Can this be done through
Guanglei working directory setting?

What you are seeing is a bug in the qt frontend of LyX 1.3.2. It will be
fixed in 1.3.3.

JMarc


Re: absolute path and graphics file

2003-07-01 Thread Marcin Bukat
Uz.ytkownik Jean-Marc Lasgouttes napisa?:
Guanglei == Guanglei Cui [EMAIL PROTECTED] writes:


Guanglei Thanks, but can this be automatic? Can this be done through
Guanglei working directory setting?
What you are seeing is a bug in the qt frontend of LyX 1.3.2. It will be
fixed in 1.3.3.
JMarc


Hmm. I see the same bug in xforms version. If included file is in 
'parent directory' path is absolute.

Regards
wo


Re: absolute path and graphics file

2003-07-01 Thread Jean-Marc Lasgouttes
 Marcin == Marcin Bukat [EMAIL PROTECTED] writes:

Marcin Hmm. I see the same bug in xforms version. If included file is
Marcin in 'parent directory' path is absolute.

The algorithm used currently is:

* compute the included file path relative to the document path

* if this relative path starts with ../, use an absolute path
  instead.

The idea is that paths that are upper than the document are not likely
to be moved at the same time as the document. If you want to call that
a bug, you have to propose a better algorithm...

And of course the user can always override this choice.

JMarc


Re: absolute path and graphics file

2003-07-01 Thread Marcin Bukat
Uz.ytkownik Jean-Marc Lasgouttes napisa?:
Marcin == Marcin Bukat [EMAIL PROTECTED] writes:


Marcin Hmm. I see the same bug in xforms version. If included file is
Marcin in 'parent directory' path is absolute.
The algorithm used currently is:

* compute the included file path relative to the document path

* if this relative path starts with ../, use an absolute path
  instead.
The idea is that paths that are upper than the document are not likely
to be moved at the same time as the document. If you want to call that
a bug, you have to propose a better algorithm...
And of course the user can always override this choice.

JMarc
I would say it unconsequent behavior thats all.
What about adding switch 'always use relative path' to prefferences?
Regards
wo




Re: absolute path and graphics file

2003-07-01 Thread Guanglei Cui
However, what I experienced is that the absolute path is used even if the 
included files are in the same directory as the lyx file, which is my case 
and I started lyx always in the directory where the lyx file lives. 

Regards,

On Tuesday 01 July 2003 04:52, Jean-Marc Lasgouttes wrote:
  Marcin == Marcin Bukat [EMAIL PROTECTED] writes:

 Marcin Hmm. I see the same bug in xforms version. If included file is
 Marcin in 'parent directory' path is absolute.

 The algorithm used currently is:

 * compute the included file path relative to the document path

 * if this relative path starts with ../, use an absolute path
   instead.

 The idea is that paths that are upper than the document are not likely
 to be moved at the same time as the document. If you want to call that
 a bug, you have to propose a better algorithm...

 And of course the user can always override this choice.

 JMarc

-- 
Guanglei Cui
Dept. of Chemistry
SUNY at Stony Brook
Stony Brook, NY 11790



Re: absolute path and graphics file

2003-07-01 Thread Jean-Marc Lasgouttes
 Guanglei == Guanglei Cui [EMAIL PROTECTED] writes:

Guanglei However, what I experienced is that the absolute path is
Guanglei used even if the included files are in the same directory as
Guanglei the lyx file, which is my case and I started lyx always in
Guanglei the directory where the lyx file lives.

This particular thing is probably bug 1028
http://bugzilla.lyx.org/show_bug.cgi?id=1028

It will be fixed in 1.3.3.

Now, if you are not using the qt port, then it is something else :)

JMarc


Re: absolute path and graphics file

2003-07-01 Thread Guanglei Cui
Thanks for all the reply. I do use qt lyx. 

On Tuesday 01 July 2003 09:20, Jean-Marc Lasgouttes wrote:
  Guanglei == Guanglei Cui [EMAIL PROTECTED] writes:

 Guanglei However, what I experienced is that the absolute path is
 Guanglei used even if the included files are in the same directory as
 Guanglei the lyx file, which is my case and I started lyx always in
 Guanglei the directory where the lyx file lives.

 This particular thing is probably bug 1028
 http://bugzilla.lyx.org/show_bug.cgi?id=1028

 It will be fixed in 1.3.3.

 Now, if you are not using the qt port, then it is something else :)

 JMarc

-- 
Guanglei Cui
Dept. of Chemistry
SUNY at Stony Brook
Stony Brook, NY 11790



Re: absolute path and graphics file

2003-07-01 Thread Jean-Marc Lasgouttes
 Guanglei == Guanglei Cui [EMAIL PROTECTED] writes:

Guanglei Thanks, but can this be automatic? Can this be done through
Guanglei working directory setting?

What you are seeing is a bug in the qt frontend of LyX 1.3.2. It will be
fixed in 1.3.3.

JMarc


Re: absolute path and graphics file

2003-07-01 Thread Marcin Bukat
Uz.ytkownik Jean-Marc Lasgouttes napisa?:
Guanglei == Guanglei Cui [EMAIL PROTECTED] writes:


Guanglei Thanks, but can this be automatic? Can this be done through
Guanglei working directory setting?
What you are seeing is a bug in the qt frontend of LyX 1.3.2. It will be
fixed in 1.3.3.
JMarc


Hmm. I see the same bug in xforms version. If included file is in 
'parent directory' path is absolute.

Regards
wo


Re: absolute path and graphics file

2003-07-01 Thread Jean-Marc Lasgouttes
 Marcin == Marcin Bukat [EMAIL PROTECTED] writes:

Marcin Hmm. I see the same bug in xforms version. If included file is
Marcin in 'parent directory' path is absolute.

The algorithm used currently is:

* compute the included file path relative to the document path

* if this relative path starts with ../, use an absolute path
  instead.

The idea is that paths that are upper than the document are not likely
to be moved at the same time as the document. If you want to call that
a bug, you have to propose a better algorithm...

And of course the user can always override this choice.

JMarc


Re: absolute path and graphics file

2003-07-01 Thread Marcin Bukat
Uz.ytkownik Jean-Marc Lasgouttes napisa?:
Marcin == Marcin Bukat [EMAIL PROTECTED] writes:


Marcin Hmm. I see the same bug in xforms version. If included file is
Marcin in 'parent directory' path is absolute.
The algorithm used currently is:

* compute the included file path relative to the document path

* if this relative path starts with ../, use an absolute path
  instead.
The idea is that paths that are upper than the document are not likely
to be moved at the same time as the document. If you want to call that
a bug, you have to propose a better algorithm...
And of course the user can always override this choice.

JMarc
I would say it unconsequent behavior thats all.
What about adding switch 'always use relative path' to prefferences?
Regards
wo




Re: absolute path and graphics file

2003-07-01 Thread Guanglei Cui
However, what I experienced is that the absolute path is used even if the 
included files are in the same directory as the lyx file, which is my case 
and I started lyx always in the directory where the lyx file lives. 

Regards,

On Tuesday 01 July 2003 04:52, Jean-Marc Lasgouttes wrote:
  Marcin == Marcin Bukat [EMAIL PROTECTED] writes:

 Marcin Hmm. I see the same bug in xforms version. If included file is
 Marcin in 'parent directory' path is absolute.

 The algorithm used currently is:

 * compute the included file path relative to the document path

 * if this relative path starts with ../, use an absolute path
   instead.

 The idea is that paths that are upper than the document are not likely
 to be moved at the same time as the document. If you want to call that
 a bug, you have to propose a better algorithm...

 And of course the user can always override this choice.

 JMarc

-- 
Guanglei Cui
Dept. of Chemistry
SUNY at Stony Brook
Stony Brook, NY 11790



Re: absolute path and graphics file

2003-07-01 Thread Jean-Marc Lasgouttes
 Guanglei == Guanglei Cui [EMAIL PROTECTED] writes:

Guanglei However, what I experienced is that the absolute path is
Guanglei used even if the included files are in the same directory as
Guanglei the lyx file, which is my case and I started lyx always in
Guanglei the directory where the lyx file lives.

This particular thing is probably bug 1028
http://bugzilla.lyx.org/show_bug.cgi?id=1028

It will be fixed in 1.3.3.

Now, if you are not using the qt port, then it is something else :)

JMarc


Re: absolute path and graphics file

2003-07-01 Thread Guanglei Cui
Thanks for all the reply. I do use qt lyx. 

On Tuesday 01 July 2003 09:20, Jean-Marc Lasgouttes wrote:
  Guanglei == Guanglei Cui [EMAIL PROTECTED] writes:

 Guanglei However, what I experienced is that the absolute path is
 Guanglei used even if the included files are in the same directory as
 Guanglei the lyx file, which is my case and I started lyx always in
 Guanglei the directory where the lyx file lives.

 This particular thing is probably bug 1028
 http://bugzilla.lyx.org/show_bug.cgi?id=1028

 It will be fixed in 1.3.3.

 Now, if you are not using the qt port, then it is something else :)

 JMarc

-- 
Guanglei Cui
Dept. of Chemistry
SUNY at Stony Brook
Stony Brook, NY 11790



Re: absolute path and graphics file

2003-07-01 Thread Jean-Marc Lasgouttes
> "Guanglei" == Guanglei Cui <[EMAIL PROTECTED]> writes:

Guanglei> Thanks, but can this be automatic? Can this be done through
Guanglei> working directory setting?

What you are seeing is a bug in the qt frontend of LyX 1.3.2. It will be
fixed in 1.3.3.

JMarc


Re: absolute path and graphics file

2003-07-01 Thread Marcin Bukat
Uz.ytkownik Jean-Marc Lasgouttes napisa?:
"Guanglei" == Guanglei Cui <[EMAIL PROTECTED]> writes:


Guanglei> Thanks, but can this be automatic? Can this be done through
Guanglei> working directory setting?
What you are seeing is a bug in the qt frontend of LyX 1.3.2. It will be
fixed in 1.3.3.
JMarc


Hmm. I see the same bug in xforms version. If included file is in 
'parent directory' path is absolute.

Regards
wo


Re: absolute path and graphics file

2003-07-01 Thread Jean-Marc Lasgouttes
> "Marcin" == Marcin Bukat <[EMAIL PROTECTED]> writes:

Marcin> Hmm. I see the same bug in xforms version. If included file is
Marcin> in 'parent directory' path is absolute.

The algorithm used currently is:

* compute the included file path relative to the document path

* if this relative path starts with ../, use an absolute path
  instead.

The idea is that paths that are upper than the document are not likely
to be moved at the same time as the document. If you want to call that
a bug, you have to propose a better algorithm...

And of course the user can always override this choice.

JMarc


Re: absolute path and graphics file

2003-07-01 Thread Marcin Bukat
Uz.ytkownik Jean-Marc Lasgouttes napisa?:
"Marcin" == Marcin Bukat <[EMAIL PROTECTED]> writes:


Marcin> Hmm. I see the same bug in xforms version. If included file is
Marcin> in 'parent directory' path is absolute.
The algorithm used currently is:

* compute the included file path relative to the document path

* if this relative path starts with ../, use an absolute path
  instead.
The idea is that paths that are upper than the document are not likely
to be moved at the same time as the document. If you want to call that
a bug, you have to propose a better algorithm...
And of course the user can always override this choice.

JMarc
I would say it unconsequent behavior thats all.
What about adding switch 'always use relative path' to prefferences?
Regards
wo




Re: absolute path and graphics file

2003-07-01 Thread Guanglei Cui
However, what I experienced is that the absolute path is used even if the 
included files are in the same directory as the lyx file, which is my case 
and I started lyx always in the directory where the lyx file lives. 

Regards,

On Tuesday 01 July 2003 04:52, Jean-Marc Lasgouttes wrote:
> > "Marcin" == Marcin Bukat <[EMAIL PROTECTED]> writes:
>
> Marcin> Hmm. I see the same bug in xforms version. If included file is
> Marcin> in 'parent directory' path is absolute.
>
> The algorithm used currently is:
>
> * compute the included file path relative to the document path
>
> * if this relative path starts with ../, use an absolute path
>   instead.
>
> The idea is that paths that are upper than the document are not likely
> to be moved at the same time as the document. If you want to call that
> a bug, you have to propose a better algorithm...
>
> And of course the user can always override this choice.
>
> JMarc

-- 
Guanglei Cui
Dept. of Chemistry
SUNY at Stony Brook
Stony Brook, NY 11790



Re: absolute path and graphics file

2003-07-01 Thread Jean-Marc Lasgouttes
> "Guanglei" == Guanglei Cui <[EMAIL PROTECTED]> writes:

Guanglei> However, what I experienced is that the absolute path is
Guanglei> used even if the included files are in the same directory as
Guanglei> the lyx file, which is my case and I started lyx always in
Guanglei> the directory where the lyx file lives.

This particular thing is probably bug 1028
http://bugzilla.lyx.org/show_bug.cgi?id=1028

It will be fixed in 1.3.3.

Now, if you are not using the qt port, then it is something else :)

JMarc


Re: absolute path and graphics file

2003-07-01 Thread Guanglei Cui
Thanks for all the reply. I do use qt lyx. 

On Tuesday 01 July 2003 09:20, Jean-Marc Lasgouttes wrote:
> > "Guanglei" == Guanglei Cui <[EMAIL PROTECTED]> writes:
>
> Guanglei> However, what I experienced is that the absolute path is
> Guanglei> used even if the included files are in the same directory as
> Guanglei> the lyx file, which is my case and I started lyx always in
> Guanglei> the directory where the lyx file lives.
>
> This particular thing is probably bug 1028
> http://bugzilla.lyx.org/show_bug.cgi?id=1028
>
> It will be fixed in 1.3.3.
>
> Now, if you are not using the qt port, then it is something else :)
>
> JMarc

-- 
Guanglei Cui
Dept. of Chemistry
SUNY at Stony Brook
Stony Brook, NY 11790



absolute path and graphics file

2003-06-30 Thread Guanglei Cui
Dear Lyx users, 
I have a rather newbie questions. Is it possible to use relative path for 
inserted graphics files? It seems it's always the full path name is used in 
lyx files, which is not quite convenient in some cases. 

Regards, 

-- 
Guanglei Cui
Dept. of Chemistry
SUNY at Stony Brook
Stony Brook, NY 11790



Re: absolute path and graphics file

2003-06-30 Thread Rafael Ángel García Garaluz
Guanglei Cui wrote:

Dear Lyx users, 
   I have a rather newbie questions. Is it possible to use relative path for 
inserted graphics files? It seems it's always the full path name is used in 
lyx files, which is not quite convenient in some cases. 

Regards, 
 

Of course you can. The only thing you have to do is to delete the full 
path to the graphics file after you pick it.
For example, if your document is in the path /home/pp/document.lyx and 
your graphics file is /home/pp/files/gg.eps, after the file is inserted, 
you have to delete the string /home/pp/. Then, the file entry will 
only be files/gg.eps, the relative path.

I wish it help you.

Regards, Rafa.



Re: absolute path and graphics file

2003-06-30 Thread Guanglei Cui
Thanks, but can this be automatic? Can this be done through working directory 
setting?


On Monday 30 June 2003 20:55, Rafael Ángel García Garaluz wrote:
 Guanglei Cui wrote:
 Dear Lyx users,
 I have a rather newbie questions. Is it possible to use relative path
  for inserted graphics files? It seems it's always the full path name is
  used in lyx files, which is not quite convenient in some cases.
 
 Regards,

 Of course you can. The only thing you have to do is to delete the full
 path to the graphics file after you pick it.
 For example, if your document is in the path /home/pp/document.lyx and
 your graphics file is /home/pp/files/gg.eps, after the file is inserted,
 you have to delete the string /home/pp/. Then, the file entry will
 only be files/gg.eps, the relative path.

 I wish it help you.

 Regards, Rafa.

-- 
Guanglei Cui
Dept. of Chemistry
SUNY at Stony Brook
Stony Brook, NY 11790



absolute path and graphics file

2003-06-30 Thread Guanglei Cui
Dear Lyx users, 
I have a rather newbie questions. Is it possible to use relative path for 
inserted graphics files? It seems it's always the full path name is used in 
lyx files, which is not quite convenient in some cases. 

Regards, 

-- 
Guanglei Cui
Dept. of Chemistry
SUNY at Stony Brook
Stony Brook, NY 11790



Re: absolute path and graphics file

2003-06-30 Thread Rafael Ángel García Garaluz
Guanglei Cui wrote:

Dear Lyx users, 
   I have a rather newbie questions. Is it possible to use relative path for 
inserted graphics files? It seems it's always the full path name is used in 
lyx files, which is not quite convenient in some cases. 

Regards, 
 

Of course you can. The only thing you have to do is to delete the full 
path to the graphics file after you pick it.
For example, if your document is in the path /home/pp/document.lyx and 
your graphics file is /home/pp/files/gg.eps, after the file is inserted, 
you have to delete the string /home/pp/. Then, the file entry will 
only be files/gg.eps, the relative path.

I wish it help you.

Regards, Rafa.



Re: absolute path and graphics file

2003-06-30 Thread Guanglei Cui
Thanks, but can this be automatic? Can this be done through working directory 
setting?


On Monday 30 June 2003 20:55, Rafael Ángel García Garaluz wrote:
 Guanglei Cui wrote:
 Dear Lyx users,
 I have a rather newbie questions. Is it possible to use relative path
  for inserted graphics files? It seems it's always the full path name is
  used in lyx files, which is not quite convenient in some cases.
 
 Regards,

 Of course you can. The only thing you have to do is to delete the full
 path to the graphics file after you pick it.
 For example, if your document is in the path /home/pp/document.lyx and
 your graphics file is /home/pp/files/gg.eps, after the file is inserted,
 you have to delete the string /home/pp/. Then, the file entry will
 only be files/gg.eps, the relative path.

 I wish it help you.

 Regards, Rafa.

-- 
Guanglei Cui
Dept. of Chemistry
SUNY at Stony Brook
Stony Brook, NY 11790



absolute path and graphics file

2003-06-30 Thread Guanglei Cui
Dear Lyx users, 
I have a rather newbie questions. Is it possible to use relative path for 
inserted graphics files? It seems it's always the full path name is used in 
lyx files, which is not quite convenient in some cases. 

Regards, 

-- 
Guanglei Cui
Dept. of Chemistry
SUNY at Stony Brook
Stony Brook, NY 11790



Re: absolute path and graphics file

2003-06-30 Thread Rafael Ángel García Garaluz
Guanglei Cui wrote:

Dear Lyx users, 
   I have a rather newbie questions. Is it possible to use relative path for 
inserted graphics files? It seems it's always the full path name is used in 
lyx files, which is not quite convenient in some cases. 

Regards, 
 

Of course you can. The only thing you have to do is to delete the full 
path to the graphics file after you pick it.
For example, if your document is in the path /home/pp/document.lyx and 
your graphics file is /home/pp/files/gg.eps, after the file is inserted, 
you have to delete the string "/home/pp/". Then, the file entry will 
only be "files/gg.eps", the relative path.

I wish it help you.

Regards, Rafa.



Re: absolute path and graphics file

2003-06-30 Thread Guanglei Cui
Thanks, but can this be automatic? Can this be done through working directory 
setting?


On Monday 30 June 2003 20:55, Rafael Ángel García Garaluz wrote:
> Guanglei Cui wrote:
> >Dear Lyx users,
> >I have a rather newbie questions. Is it possible to use relative path
> > for inserted graphics files? It seems it's always the full path name is
> > used in lyx files, which is not quite convenient in some cases.
> >
> >Regards,
>
> Of course you can. The only thing you have to do is to delete the full
> path to the graphics file after you pick it.
> For example, if your document is in the path /home/pp/document.lyx and
> your graphics file is /home/pp/files/gg.eps, after the file is inserted,
> you have to delete the string "/home/pp/". Then, the file entry will
> only be "files/gg.eps", the relative path.
>
> I wish it help you.
>
> Regards, Rafa.

-- 
Guanglei Cui
Dept. of Chemistry
SUNY at Stony Brook
Stony Brook, NY 11790