Re: Images Directories

2012-03-05 Thread BOB Merhebi
Hello Stephan,

On 02/24/2012 08:57 AM, Stephan Witt wrote:
 I can remember it didn't work with some LyX versions ages ago. I just
 tried it with 1.6.9 and it works with this version. In case you cannot
 upgrade to 2.0 consider an upgrade to the latest 1.6 release. If this
 is a no-go too - try to correct the path to the images manually. I
 think LyX isn't converting the file name of the image to a relative
 on. After selecting the image path with the help of the open file
 dialog the path you may remove the leading part of the file name and
 close the image property dialog without using the Browse... button
 again. Stephan 

I last reported that it did work in 1.6.7 if the figures folder and
the lyx files are in the same directory.

In any case, I upgraded to the latest 2.0.3 using the ppa.

thanks all

-- 
Sincerely Yours,
-Merhebi, Bob

Thunderbird Signature


Re: Images Directories

2012-03-05 Thread BOB Merhebi
Hello Stephan,

On 02/24/2012 08:57 AM, Stephan Witt wrote:
 I can remember it didn't work with some LyX versions ages ago. I just
 tried it with 1.6.9 and it works with this version. In case you cannot
 upgrade to 2.0 consider an upgrade to the latest 1.6 release. If this
 is a no-go too - try to correct the path to the images manually. I
 think LyX isn't converting the file name of the image to a relative
 on. After selecting the image path with the help of the open file
 dialog the path you may remove the leading part of the file name and
 close the image property dialog without using the Browse... button
 again. Stephan 

I last reported that it did work in 1.6.7 if the figures folder and
the lyx files are in the same directory.

In any case, I upgraded to the latest 2.0.3 using the ppa.

thanks all

-- 
Sincerely Yours,
-Merhebi, Bob

Thunderbird Signature


Re: Images & Directories

2012-03-05 Thread BOB Merhebi
Hello Stephan,

On 02/24/2012 08:57 AM, Stephan Witt wrote:
> I can remember it didn't work with some LyX versions ages ago. I just
> tried it with 1.6.9 and it works with this version. In case you cannot
> upgrade to 2.0 consider an upgrade to the latest 1.6 release. If this
> is a no-go too - try to correct the path to the images manually. I
> think LyX isn't converting the file name of the image to a relative
> on. After selecting the image path with the help of the open file
> dialog the path you may remove the leading part of the file name and
> close the image property dialog without using the "Browse..." button
> again. Stephan 

I last reported that it did work in 1.6.7 "if" the figures folder and
the lyx files are in the same directory.

In any case, I upgraded to the latest 2.0.3 using the ppa.

thanks all

-- 
Sincerely Yours,
-Merhebi, Bob

Thunderbird Signature


Fwd: Re: Images Directories

2012-02-23 Thread BOB Merhebi


 Original Message 
Subject:Re: Images  Directories
Date:   Fri, 24 Feb 2012 02:05:07 +0200
From:   BOB Merhebi bobmerh...@gmail.com
To: Jacob Bishop bishop.ja...@gmail.com



Hello Jacob,

On Wed 22 Feb 2012 02:48:35 AM EET, Jacob Bishop wrote:
 Bob,

 On Tue, Feb 21, 2012 at 2:22 PM, BOB Merhebi bobmerh...@gmail.com
 mailto:bobmerh...@gmail.com wrote:
 snip

 Indeed, that's what I do too. I have a folder -call it A- inside of
 which there are 3 folders (one for figures -B-, one for my report
 -C- 
 another for my beamer -presentation -D-). I use the figure folder for
 both the report  the beamer. But if I rename A, the images links are
 broken.!


 Interesting. I just did a simple test on LyX 2.0 with the exact
 example you provided, and I do not experience that problem. Renaming
 or moving A causes absolutely no issue for me.


I did not mention that I'm using LyX 1.6.7 on a Linux Lucid!

 The only thing I can think of is that you might be using absolute
 rather than relative paths. I wouldn't initially think this is the
 problem, because I know that LyX uses relative paths by default.

Honestly, I am not aware of what you're talking about! Never heard of 
abs/rel paths.

 However, it's the only logical explanation I can come up with for the
 behavior you're describing (Which I am not able to reproduce). You
 should not have to explicitly provide relative paths, but why don't
 you try that and see if it resolves the problem?

 If you understand relative paths vs. complete paths, you can skip this
 explanation and try that. Otherwise, I will try to explain using the
 folder setup you gave. Your report is in -C-, which is in -A-. Your
 figures are in -B-, which is also in -A-. When you insert an image and
 it puts in the complete path, then it's something like
 C:\Users\YourName\A\B\someFigure.png and that is a problem. If you
 rename A to Alpha, you have the problem that when LyX looks for your
 image in C:\Users\YourName\A\B\someFigure.png it will find nothing
 because C:\Users\YourName\A\B\someFigure.png does not exist (because
 A does not exist). It should be looking in
 C:\Users\YourName\Alpha\B\someFigure.png That's the problem.

 The solution is to use relative paths.  You can explicitly use a
 relative path by specifying it in the textbox that comes up under
 input-graphics. If an absolute path is listed there, that is likely
 the problem. So, if you're in C, you can change the path in the figure
 reference to ..\B\someFigure.png (which is a relative path) rather
 than C:\Users\YourName\A\B\someFigure.png (which is a complete
 path). This means that LyX simply checks up one directory, then tries
 to move down, not caring what drive we're on, or what the master
 folder is named, since it never reaches that point in the tree.


I think I catch what you mean.
In my version: under the Graphics tab, File. I tried it but still 
the image breaks!
I just checked 
this:http://lyx.475766.n2.nabble.com/How-to-stop-Figure-location-broken-when-I-open-file-in-different-computer-td480875.html
In the third post, it says that the images should be at the same level 
or below that of the lyx file?

I also checked this: 
http://comments.gmane.org/gmane.editors.lyx.general/66263
 then this: http://wiki.lyx.org/FAQ/RelativeFiguresLocation

I tried all but none worked except the last (after relocating my 
figures folder within the lyx folder). It worked :D

I guess having the figures folder on the same level doesn't work with 
1.6.7

 If you're using relative paths and still have the problem, then I'm
 stumped. Hope this helps.

 Jacob


Thank you Jacob :D You saved me loads of to-come waste of time.

-- 
Sincerely Yours,
-Merhebi, Bob

Thunderbird Signature



-- 
Sincerely Yours,
-Merhebi, Bob

Thunderbird Signature


Re: Images Directories

2012-02-23 Thread Stephan Witt
Am 24.02.2012 um 01:09 schrieb BOB Merhebi:

 
 
  Original Message 
 Subject:  Re: Images  Directories
 Date: Fri, 24 Feb 2012 02:05:07 +0200
 From: BOB Merhebi bobmerh...@gmail.com
 To:   Jacob Bishop bishop.ja...@gmail.com
 
 Hello Jacob,
 
 On Wed 22 Feb 2012 02:48:35 AM EET, Jacob Bishop wrote:
  Bob,
 
  On Tue, Feb 21, 2012 at 2:22 PM, BOB Merhebi 
 bobmerh...@gmail.com
 
  mailto:bobmerh...@gmail.com
  wrote:
  snip
 
  Indeed, that's what I do too. I have a folder -call it A- inside of
  which there are 3 folders (one for figures -B-, one for my report
  -C- 
  another for my beamer -presentation -D-). I use the figure folder for
  both the report  the beamer. But if I rename A, the images links are
  broken.!
 
 
  Interesting. I just did a simple test on LyX 2.0 with the exact
  example you provided, and I do not experience that problem. Renaming
  or moving A causes absolutely no issue for me.
 
 
 I did not mention that I'm using LyX 1.6.7 on a Linux Lucid!
 
  The only thing I can think of is that you might be using absolute
  rather than relative paths. I wouldn't initially think this is the
  problem, because I know that LyX uses relative paths by default.
 
 Honestly, I am not aware of what you're talking about! Never heard of 
 abs/rel paths.
 
  However, it's the only logical explanation I can come up with for the
  behavior you're describing (Which I am not able to reproduce). You
  should not have to explicitly provide relative paths, but why don't
  you try that and see if it resolves the problem?
 
  If you understand relative paths vs. complete paths, you can skip this
  explanation and try that. Otherwise, I will try to explain using the
  folder setup you gave. Your report is in -C-, which is in -A-. Your
  figures are in -B-, which is also in -A-. When you insert an image and
  it puts in the complete path, then it's something like
  C:\Users\YourName\A\B\someFigure.png and that is a problem. If you
  rename A to Alpha, you have the problem that when LyX looks for your
  image in C:\Users\YourName\A\B\someFigure.png it will find nothing
  because C:\Users\YourName\A\B\someFigure.png does not exist (because
  A does not exist). It should be looking in
  C:\Users\YourName\Alpha\B\someFigure.png That's the problem.
 
  The solution is to use relative paths.  You can explicitly use a
  relative path by specifying it in the textbox that comes up under
  input-graphics. If an absolute path is listed there, that is likely
  the problem. So, if you're in C, you can change the path in the figure
  reference to ..\B\someFigure.png (which is a relative path) rather
  than C:\Users\YourName\A\B\someFigure.png (which is a complete
  path). This means that LyX simply checks up one directory, then tries
  to move down, not caring what drive we're on, or what the master
  folder is named, since it never reaches that point in the tree.
 
 
 I think I catch what you mean.
 In my version: under the Graphics tab, File. I tried it but still 
 the image breaks!
 I just checked 
 this:
 http://lyx.475766.n2.nabble.com/How-to-stop-Figure-location-broken-when-I-open-file-in-different-computer-td480875.html
 
 In the third post, it says that the images should be at the same level 
 or below that of the lyx file?
 
 I also checked this: 
 
 http://comments.gmane.org/gmane.editors.lyx.general/66263
 
  then this: 
 http://wiki.lyx.org/FAQ/RelativeFiguresLocation
 
 
 I tried all but none worked except the last (after relocating my 
 figures folder within the lyx folder). It worked :D
 
 I guess having the figures folder on the same level doesn't work with 
 1.6.7

I can remember it didn't work with some LyX versions ages ago.
I just tried it with 1.6.9 and it works with this version.
In case you cannot upgrade to 2.0 consider an upgrade to the latest 1.6 release.
If this is a no-go too - try to correct the path to the images manually.
I think LyX isn't converting the file name of the image to a relative on.
After selecting the image path with the help of the open file dialog the
path you may remove the leading part of the file name and close the image
property dialog without using the Browse... button again.

Stephan

Fwd: Re: Images Directories

2012-02-23 Thread BOB Merhebi


 Original Message 
Subject:Re: Images  Directories
Date:   Fri, 24 Feb 2012 02:05:07 +0200
From:   BOB Merhebi bobmerh...@gmail.com
To: Jacob Bishop bishop.ja...@gmail.com



Hello Jacob,

On Wed 22 Feb 2012 02:48:35 AM EET, Jacob Bishop wrote:
 Bob,

 On Tue, Feb 21, 2012 at 2:22 PM, BOB Merhebi bobmerh...@gmail.com
 mailto:bobmerh...@gmail.com wrote:
 snip

 Indeed, that's what I do too. I have a folder -call it A- inside of
 which there are 3 folders (one for figures -B-, one for my report
 -C- 
 another for my beamer -presentation -D-). I use the figure folder for
 both the report  the beamer. But if I rename A, the images links are
 broken.!


 Interesting. I just did a simple test on LyX 2.0 with the exact
 example you provided, and I do not experience that problem. Renaming
 or moving A causes absolutely no issue for me.


I did not mention that I'm using LyX 1.6.7 on a Linux Lucid!

 The only thing I can think of is that you might be using absolute
 rather than relative paths. I wouldn't initially think this is the
 problem, because I know that LyX uses relative paths by default.

Honestly, I am not aware of what you're talking about! Never heard of 
abs/rel paths.

 However, it's the only logical explanation I can come up with for the
 behavior you're describing (Which I am not able to reproduce). You
 should not have to explicitly provide relative paths, but why don't
 you try that and see if it resolves the problem?

 If you understand relative paths vs. complete paths, you can skip this
 explanation and try that. Otherwise, I will try to explain using the
 folder setup you gave. Your report is in -C-, which is in -A-. Your
 figures are in -B-, which is also in -A-. When you insert an image and
 it puts in the complete path, then it's something like
 C:\Users\YourName\A\B\someFigure.png and that is a problem. If you
 rename A to Alpha, you have the problem that when LyX looks for your
 image in C:\Users\YourName\A\B\someFigure.png it will find nothing
 because C:\Users\YourName\A\B\someFigure.png does not exist (because
 A does not exist). It should be looking in
 C:\Users\YourName\Alpha\B\someFigure.png That's the problem.

 The solution is to use relative paths.  You can explicitly use a
 relative path by specifying it in the textbox that comes up under
 input-graphics. If an absolute path is listed there, that is likely
 the problem. So, if you're in C, you can change the path in the figure
 reference to ..\B\someFigure.png (which is a relative path) rather
 than C:\Users\YourName\A\B\someFigure.png (which is a complete
 path). This means that LyX simply checks up one directory, then tries
 to move down, not caring what drive we're on, or what the master
 folder is named, since it never reaches that point in the tree.


I think I catch what you mean.
In my version: under the Graphics tab, File. I tried it but still 
the image breaks!
I just checked 
this:http://lyx.475766.n2.nabble.com/How-to-stop-Figure-location-broken-when-I-open-file-in-different-computer-td480875.html
In the third post, it says that the images should be at the same level 
or below that of the lyx file?

I also checked this: 
http://comments.gmane.org/gmane.editors.lyx.general/66263
 then this: http://wiki.lyx.org/FAQ/RelativeFiguresLocation

I tried all but none worked except the last (after relocating my 
figures folder within the lyx folder). It worked :D

I guess having the figures folder on the same level doesn't work with 
1.6.7

 If you're using relative paths and still have the problem, then I'm
 stumped. Hope this helps.

 Jacob


Thank you Jacob :D You saved me loads of to-come waste of time.

-- 
Sincerely Yours,
-Merhebi, Bob

Thunderbird Signature



-- 
Sincerely Yours,
-Merhebi, Bob

Thunderbird Signature


Re: Images Directories

2012-02-23 Thread Stephan Witt
Am 24.02.2012 um 01:09 schrieb BOB Merhebi:

 
 
  Original Message 
 Subject:  Re: Images  Directories
 Date: Fri, 24 Feb 2012 02:05:07 +0200
 From: BOB Merhebi bobmerh...@gmail.com
 To:   Jacob Bishop bishop.ja...@gmail.com
 
 Hello Jacob,
 
 On Wed 22 Feb 2012 02:48:35 AM EET, Jacob Bishop wrote:
  Bob,
 
  On Tue, Feb 21, 2012 at 2:22 PM, BOB Merhebi 
 bobmerh...@gmail.com
 
  mailto:bobmerh...@gmail.com
  wrote:
  snip
 
  Indeed, that's what I do too. I have a folder -call it A- inside of
  which there are 3 folders (one for figures -B-, one for my report
  -C- 
  another for my beamer -presentation -D-). I use the figure folder for
  both the report  the beamer. But if I rename A, the images links are
  broken.!
 
 
  Interesting. I just did a simple test on LyX 2.0 with the exact
  example you provided, and I do not experience that problem. Renaming
  or moving A causes absolutely no issue for me.
 
 
 I did not mention that I'm using LyX 1.6.7 on a Linux Lucid!
 
  The only thing I can think of is that you might be using absolute
  rather than relative paths. I wouldn't initially think this is the
  problem, because I know that LyX uses relative paths by default.
 
 Honestly, I am not aware of what you're talking about! Never heard of 
 abs/rel paths.
 
  However, it's the only logical explanation I can come up with for the
  behavior you're describing (Which I am not able to reproduce). You
  should not have to explicitly provide relative paths, but why don't
  you try that and see if it resolves the problem?
 
  If you understand relative paths vs. complete paths, you can skip this
  explanation and try that. Otherwise, I will try to explain using the
  folder setup you gave. Your report is in -C-, which is in -A-. Your
  figures are in -B-, which is also in -A-. When you insert an image and
  it puts in the complete path, then it's something like
  C:\Users\YourName\A\B\someFigure.png and that is a problem. If you
  rename A to Alpha, you have the problem that when LyX looks for your
  image in C:\Users\YourName\A\B\someFigure.png it will find nothing
  because C:\Users\YourName\A\B\someFigure.png does not exist (because
  A does not exist). It should be looking in
  C:\Users\YourName\Alpha\B\someFigure.png That's the problem.
 
  The solution is to use relative paths.  You can explicitly use a
  relative path by specifying it in the textbox that comes up under
  input-graphics. If an absolute path is listed there, that is likely
  the problem. So, if you're in C, you can change the path in the figure
  reference to ..\B\someFigure.png (which is a relative path) rather
  than C:\Users\YourName\A\B\someFigure.png (which is a complete
  path). This means that LyX simply checks up one directory, then tries
  to move down, not caring what drive we're on, or what the master
  folder is named, since it never reaches that point in the tree.
 
 
 I think I catch what you mean.
 In my version: under the Graphics tab, File. I tried it but still 
 the image breaks!
 I just checked 
 this:
 http://lyx.475766.n2.nabble.com/How-to-stop-Figure-location-broken-when-I-open-file-in-different-computer-td480875.html
 
 In the third post, it says that the images should be at the same level 
 or below that of the lyx file?
 
 I also checked this: 
 
 http://comments.gmane.org/gmane.editors.lyx.general/66263
 
  then this: 
 http://wiki.lyx.org/FAQ/RelativeFiguresLocation
 
 
 I tried all but none worked except the last (after relocating my 
 figures folder within the lyx folder). It worked :D
 
 I guess having the figures folder on the same level doesn't work with 
 1.6.7

I can remember it didn't work with some LyX versions ages ago.
I just tried it with 1.6.9 and it works with this version.
In case you cannot upgrade to 2.0 consider an upgrade to the latest 1.6 release.
If this is a no-go too - try to correct the path to the images manually.
I think LyX isn't converting the file name of the image to a relative on.
After selecting the image path with the help of the open file dialog the
path you may remove the leading part of the file name and close the image
property dialog without using the Browse... button again.

Stephan

Fwd: Re: Images & Directories

2012-02-23 Thread BOB Merhebi


 Original Message 
Subject:Re: Images & Directories
Date:   Fri, 24 Feb 2012 02:05:07 +0200
From:   BOB Merhebi <bobmerh...@gmail.com>
To: Jacob Bishop <bishop.ja...@gmail.com>



Hello Jacob,

On Wed 22 Feb 2012 02:48:35 AM EET, Jacob Bishop wrote:
> Bob,
>
> On Tue, Feb 21, 2012 at 2:22 PM, BOB Merhebi <bobmerh...@gmail.com
> <mailto:bobmerh...@gmail.com>> wrote:
> 
>
> Indeed, that's what I do too. I have a folder -call it A- inside of
> which there are 3 folders (one for figures -B-, one for my report
> -C- &
> another for my beamer -presentation -D-). I use the figure folder for
> both the report & the beamer. But if I rename A, the images links are
> broken.!
>
>
> Interesting. I just did a simple test on LyX 2.0 with the exact
> example you provided, and I do not experience that problem. Renaming
> or moving A causes absolutely no issue for me.
>

I did not mention that I'm using LyX 1.6.7 on a Linux Lucid!

> The only thing I can think of is that you might be using absolute
> rather than relative paths. I wouldn't initially think this is the
> problem, because I know that LyX uses relative paths by default.

Honestly, I am not aware of what you're talking about! Never heard of 
abs/rel paths.

> However, it's the only logical explanation I can come up with for the
> behavior you're describing (Which I am not able to reproduce). You
> should not have to explicitly provide relative paths, but why don't
> you try that and see if it resolves the problem?
>
> If you understand relative paths vs. complete paths, you can skip this
> explanation and try that. Otherwise, I will try to explain using the
> folder setup you gave. Your report is in -C-, which is in -A-. Your
> figures are in -B-, which is also in -A-. When you insert an image and
> it puts in the complete path, then it's something like
> "C:\Users\YourName\A\B\someFigure.png" and that is a problem. If you
> rename A to Alpha, you have the problem that when LyX looks for your
> image in "C:\Users\YourName\A\B\someFigure.png" it will find nothing
> because "C:\Users\YourName\A\B\someFigure.png" does not exist (because
> A does not exist). It should be looking in
> "C:\Users\YourName\Alpha\B\someFigure.png" That's the problem.
>
> The solution is to use relative paths.  You can explicitly use a
> relative path by specifying it in the textbox that comes up under
> input->graphics. If an absolute path is listed there, that is likely
> the problem. So, if you're in C, you can change the path in the figure
> reference to "..\B\someFigure.png" (which is a relative path) rather
> than "C:\Users\YourName\A\B\someFigure.png" (which is a complete
> path). This means that LyX simply checks up one directory, then tries
> to move down, not caring what drive we're on, or what the master
> folder is named, since it never reaches that point in the tree.
>

I think I catch what you mean.
In my version: under the "Graphics" tab, "File". I tried it but still 
the image breaks!
I just checked 
this:http://lyx.475766.n2.nabble.com/How-to-stop-Figure-location-broken-when-I-open-file-in-different-computer-td480875.html
In the third post, it says that the images should be at the same level 
or below that of the lyx file?

I also checked this: 
http://comments.gmane.org/gmane.editors.lyx.general/66263
& then this: http://wiki.lyx.org/FAQ/RelativeFiguresLocation

I tried all but none worked except the last (after relocating my 
figures folder within the lyx folder). It worked :D

I guess having the figures folder on the same level doesn't work with 
1.6.7

> If you're using relative paths and still have the problem, then I'm
> stumped. Hope this helps.
>
> Jacob


Thank you Jacob :D You saved me loads of to-come waste of time.

-- 
Sincerely Yours,
-Merhebi, Bob

Thunderbird Signature



-- 
Sincerely Yours,
-Merhebi, Bob

Thunderbird Signature


Re: Images & Directories

2012-02-23 Thread Stephan Witt
Am 24.02.2012 um 01:09 schrieb BOB Merhebi:

> 
> 
>  Original Message 
> Subject:  Re: Images & Directories
> Date: Fri, 24 Feb 2012 02:05:07 +0200
> From: BOB Merhebi <bobmerh...@gmail.com>
> To:   Jacob Bishop <bishop.ja...@gmail.com>
> 
> Hello Jacob,
> 
> On Wed 22 Feb 2012 02:48:35 AM EET, Jacob Bishop wrote:
> > Bob,
> >
> > On Tue, Feb 21, 2012 at 2:22 PM, BOB Merhebi 
> <bobmerh...@gmail.com
> >
>  <mailto:bobmerh...@gmail.com>
> > wrote:
> > 
> >
> > Indeed, that's what I do too. I have a folder -call it A- inside of
> > which there are 3 folders (one for figures -B-, one for my report
> > -C- &
> > another for my beamer -presentation -D-). I use the figure folder for
> > both the report & the beamer. But if I rename A, the images links are
> > broken.!
> >
> >
> > Interesting. I just did a simple test on LyX 2.0 with the exact
> > example you provided, and I do not experience that problem. Renaming
> > or moving A causes absolutely no issue for me.
> >
> 
> I did not mention that I'm using LyX 1.6.7 on a Linux Lucid!
> 
> > The only thing I can think of is that you might be using absolute
> > rather than relative paths. I wouldn't initially think this is the
> > problem, because I know that LyX uses relative paths by default.
> 
> Honestly, I am not aware of what you're talking about! Never heard of 
> abs/rel paths.
> 
> > However, it's the only logical explanation I can come up with for the
> > behavior you're describing (Which I am not able to reproduce). You
> > should not have to explicitly provide relative paths, but why don't
> > you try that and see if it resolves the problem?
> >
> > If you understand relative paths vs. complete paths, you can skip this
> > explanation and try that. Otherwise, I will try to explain using the
> > folder setup you gave. Your report is in -C-, which is in -A-. Your
> > figures are in -B-, which is also in -A-. When you insert an image and
> > it puts in the complete path, then it's something like
> > "C:\Users\YourName\A\B\someFigure.png" and that is a problem. If you
> > rename A to Alpha, you have the problem that when LyX looks for your
> > image in "C:\Users\YourName\A\B\someFigure.png" it will find nothing
> > because "C:\Users\YourName\A\B\someFigure.png" does not exist (because
> > A does not exist). It should be looking in
> > "C:\Users\YourName\Alpha\B\someFigure.png" That's the problem.
> >
> > The solution is to use relative paths.  You can explicitly use a
> > relative path by specifying it in the textbox that comes up under
> > input->graphics. If an absolute path is listed there, that is likely
> > the problem. So, if you're in C, you can change the path in the figure
> > reference to "..\B\someFigure.png" (which is a relative path) rather
> > than "C:\Users\YourName\A\B\someFigure.png" (which is a complete
> > path). This means that LyX simply checks up one directory, then tries
> > to move down, not caring what drive we're on, or what the master
> > folder is named, since it never reaches that point in the tree.
> >
> 
> I think I catch what you mean.
> In my version: under the "Graphics" tab, "File". I tried it but still 
> the image breaks!
> I just checked 
> this:
> http://lyx.475766.n2.nabble.com/How-to-stop-Figure-location-broken-when-I-open-file-in-different-computer-td480875.html
> 
> In the third post, it says that the images should be at the same level 
> or below that of the lyx file?
> 
> I also checked this: 
> 
> http://comments.gmane.org/gmane.editors.lyx.general/66263
> 
> & then this: 
> http://wiki.lyx.org/FAQ/RelativeFiguresLocation
> 
> 
> I tried all but none worked except the last (after relocating my 
> figures folder within the lyx folder). It worked :D
> 
> I guess having the figures folder on the same level doesn't work with 
> 1.6.7

I can remember it didn't work with some LyX versions ages ago.
I just tried it with 1.6.9 and it works with this version.
In case you cannot upgrade to 2.0 consider an upgrade to the latest 1.6 release.
If this is a no-go too - try to correct the path to the images manually.
I think LyX isn't converting the file name of the image to a relative on.
After selecting the image path with the help of the open file dialog the
path you may remove the leading part of the file name and close the image
property dialog without using the "Browse..." button again.

Stephan

Images Directories

2012-02-21 Thread BOB Merhebi
Hello there,

I guess the question I'm going to ask is somewhat naive, but I think it
is important to ask.

Given that you've been working on some document that includes images and
that you're done working with it and wish to archive it somewhere else
(i.e; another directory).

the Problem: Obviously images will no longer show in the LyX document
since the directories have changed!

the naive Question: How can I counter that to ensure that I do not
need to reset all image directories every time I change the file's location?

Thanks in advance

-- 
Sincerely Yours,
-Merhebi, Bob

Thunderbird Signature


Re: Images Directories

2012-02-21 Thread Jacob Bishop
On Tue, Feb 21, 2012 at 10:05 AM, BOB Merhebi bobmerh...@gmail.com wrote:

 Hello there,

 I guess the question I'm going to ask is somewhat naive, but I think it
 is important to ask.

 Given that you've been working on some document that includes images and
 that you're done working with it and wish to archive it somewhere else
 (i.e; another directory).

 the Problem: Obviously images will no longer show in the LyX document
 since the directories have changed!

 the naive Question: How can I counter that to ensure that I do not
 need to reset all image directories every time I change the file's
 location?

 Thanks in advance

 --
 Sincerely Yours,
 -Merhebi, Bob

 Thunderbird Signature


Bob,

As your question demonstrates, there are problems if you look at a .lyx
file as a standalone entity. It needs to be thought of as only part of a
document, the other part being the figures and any other linked content.

Because of this, I never move a file alone. Every document has a directory
that goes with it. When I create a document, it goes into its own folder.
In the document folder, I create a figures subfolder. All of my figures
are referenced with relative paths. Then, whenever I move a document, it
moves with the folder it was created in, and all the subfolders (including
the one with the figures in it) go with it. Done this way, the document
folder can be moved anywhere within the filesystem, and the document will
still compile without a problem.

Another bonus of using this method is that I can switch seamlessly between
systems. I synchronize my files with Dropbox, and switch between both
Windows and Linux computers seamlessly. The files compile on both systems
without any changes, even though the absolute paths are very different.

I have suffered from numerous problems before finally settling on this as a
solution. Hopefully this helps.

Jacob


Re: Images Directories

2012-02-21 Thread BOB Merhebi
Hello Jacob,

 Bob,

 As your question demonstrates, there are problems if you look at a
 .lyx file as a standalone entity. It needs to be thought of as only
 part of a document, the other part being the figures and any other
 linked content.

 Because of this, I never move a file alone. Every document has a
 directory that goes with it. When I create a document, it goes into
 its own folder. In the document folder, I create a figures
 subfolder. All of my figures are referenced with relative paths. Then,
 whenever I move a document, it moves with the folder it was created
 in, and all the subfolders (including the one with the figures in it)
 go with it. Done this way, the document folder can be moved anywhere
 within the filesystem, and the document will still compile without a
 problem.

Indeed, that's what I do too. I have a folder -call it A- inside of
which there are 3 folders (one for figures -B-, one for my report -C- 
another for my beamer -presentation -D-). I use the figure folder for
both the report  the beamer. But if I rename A, the images links are
broken.!

 Another bonus of using this method is that I can switch seamlessly
 between systems. I synchronize my files with Dropbox, and switch
 between both Windows and Linux computers seamlessly. The files compile
 on both systems without any changes, even though the absolute paths
 are very different.

That's an interesting solution. Will keep it in mind, but the only thing
I need is to be able to move my folder to archive with the image links
still in contact!

 I have suffered from numerous problems before finally settling on this
 as a solution. Hopefully this helps.

 Jacob

-- 
Sincerely Yours,
-Merhebi, Bob

Thunderbird Signature


Re: Images Directories

2012-02-21 Thread Jacob Bishop
Bob,

On Tue, Feb 21, 2012 at 2:22 PM, BOB Merhebi bobmerh...@gmail.com wrote:
snip

 Indeed, that's what I do too. I have a folder -call it A- inside of
 which there are 3 folders (one for figures -B-, one for my report -C- 
 another for my beamer -presentation -D-). I use the figure folder for
 both the report  the beamer. But if I rename A, the images links are
 broken.!


Interesting. I just did a simple test on LyX 2.0 with the exact example you
provided, and I do not experience that problem. Renaming or moving A causes
absolutely no issue for me.

The only thing I can think of is that you might be using absolute rather
than relative paths. I wouldn't initially think this is the problem,
because I know that LyX uses relative paths by default. However, it's the
only logical explanation I can come up with for the behavior you're
describing (Which I am not able to reproduce). You should not have to
explicitly provide relative paths, but why don't you try that and see if it
resolves the problem?

If you understand relative paths vs. complete paths, you can skip this
explanation and try that. Otherwise, I will try to explain using the folder
setup you gave. Your report is in -C-, which is in -A-. Your figures are in
-B-, which is also in -A-. When you insert an image and it puts in the
complete path, then it's something like
C:\Users\YourName\A\B\someFigure.png and that is a problem. If you rename
A to Alpha, you have the problem that when LyX looks for your image in
C:\Users\YourName\A\B\someFigure.png it will find nothing because
C:\Users\YourName\A\B\someFigure.png does not exist (because A does not
exist). It should be looking in C:\Users\YourName\Alpha\B\someFigure.png
That's the problem.

The solution is to use relative paths.  You can explicitly use a relative
path by specifying it in the textbox that comes up under input-graphics.
If an absolute path is listed there, that is likely the problem. So, if
you're in C, you can change the path in the figure reference to
..\B\someFigure.png (which is a relative path) rather than
C:\Users\YourName\A\B\someFigure.png (which is a complete path). This
means that LyX simply checks up one directory, then tries to move down, not
caring what drive we're on, or what the master folder is named, since it
never reaches that point in the tree.

If you're using relative paths and still have the problem, then I'm
stumped. Hope this helps.

Jacob


Images Directories

2012-02-21 Thread BOB Merhebi
Hello there,

I guess the question I'm going to ask is somewhat naive, but I think it
is important to ask.

Given that you've been working on some document that includes images and
that you're done working with it and wish to archive it somewhere else
(i.e; another directory).

the Problem: Obviously images will no longer show in the LyX document
since the directories have changed!

the naive Question: How can I counter that to ensure that I do not
need to reset all image directories every time I change the file's location?

Thanks in advance

-- 
Sincerely Yours,
-Merhebi, Bob

Thunderbird Signature


Re: Images Directories

2012-02-21 Thread Jacob Bishop
On Tue, Feb 21, 2012 at 10:05 AM, BOB Merhebi bobmerh...@gmail.com wrote:

 Hello there,

 I guess the question I'm going to ask is somewhat naive, but I think it
 is important to ask.

 Given that you've been working on some document that includes images and
 that you're done working with it and wish to archive it somewhere else
 (i.e; another directory).

 the Problem: Obviously images will no longer show in the LyX document
 since the directories have changed!

 the naive Question: How can I counter that to ensure that I do not
 need to reset all image directories every time I change the file's
 location?

 Thanks in advance

 --
 Sincerely Yours,
 -Merhebi, Bob

 Thunderbird Signature


Bob,

As your question demonstrates, there are problems if you look at a .lyx
file as a standalone entity. It needs to be thought of as only part of a
document, the other part being the figures and any other linked content.

Because of this, I never move a file alone. Every document has a directory
that goes with it. When I create a document, it goes into its own folder.
In the document folder, I create a figures subfolder. All of my figures
are referenced with relative paths. Then, whenever I move a document, it
moves with the folder it was created in, and all the subfolders (including
the one with the figures in it) go with it. Done this way, the document
folder can be moved anywhere within the filesystem, and the document will
still compile without a problem.

Another bonus of using this method is that I can switch seamlessly between
systems. I synchronize my files with Dropbox, and switch between both
Windows and Linux computers seamlessly. The files compile on both systems
without any changes, even though the absolute paths are very different.

I have suffered from numerous problems before finally settling on this as a
solution. Hopefully this helps.

Jacob


Re: Images Directories

2012-02-21 Thread BOB Merhebi
Hello Jacob,

 Bob,

 As your question demonstrates, there are problems if you look at a
 .lyx file as a standalone entity. It needs to be thought of as only
 part of a document, the other part being the figures and any other
 linked content.

 Because of this, I never move a file alone. Every document has a
 directory that goes with it. When I create a document, it goes into
 its own folder. In the document folder, I create a figures
 subfolder. All of my figures are referenced with relative paths. Then,
 whenever I move a document, it moves with the folder it was created
 in, and all the subfolders (including the one with the figures in it)
 go with it. Done this way, the document folder can be moved anywhere
 within the filesystem, and the document will still compile without a
 problem.

Indeed, that's what I do too. I have a folder -call it A- inside of
which there are 3 folders (one for figures -B-, one for my report -C- 
another for my beamer -presentation -D-). I use the figure folder for
both the report  the beamer. But if I rename A, the images links are
broken.!

 Another bonus of using this method is that I can switch seamlessly
 between systems. I synchronize my files with Dropbox, and switch
 between both Windows and Linux computers seamlessly. The files compile
 on both systems without any changes, even though the absolute paths
 are very different.

That's an interesting solution. Will keep it in mind, but the only thing
I need is to be able to move my folder to archive with the image links
still in contact!

 I have suffered from numerous problems before finally settling on this
 as a solution. Hopefully this helps.

 Jacob

-- 
Sincerely Yours,
-Merhebi, Bob

Thunderbird Signature


Re: Images Directories

2012-02-21 Thread Jacob Bishop
Bob,

On Tue, Feb 21, 2012 at 2:22 PM, BOB Merhebi bobmerh...@gmail.com wrote:
snip

 Indeed, that's what I do too. I have a folder -call it A- inside of
 which there are 3 folders (one for figures -B-, one for my report -C- 
 another for my beamer -presentation -D-). I use the figure folder for
 both the report  the beamer. But if I rename A, the images links are
 broken.!


Interesting. I just did a simple test on LyX 2.0 with the exact example you
provided, and I do not experience that problem. Renaming or moving A causes
absolutely no issue for me.

The only thing I can think of is that you might be using absolute rather
than relative paths. I wouldn't initially think this is the problem,
because I know that LyX uses relative paths by default. However, it's the
only logical explanation I can come up with for the behavior you're
describing (Which I am not able to reproduce). You should not have to
explicitly provide relative paths, but why don't you try that and see if it
resolves the problem?

If you understand relative paths vs. complete paths, you can skip this
explanation and try that. Otherwise, I will try to explain using the folder
setup you gave. Your report is in -C-, which is in -A-. Your figures are in
-B-, which is also in -A-. When you insert an image and it puts in the
complete path, then it's something like
C:\Users\YourName\A\B\someFigure.png and that is a problem. If you rename
A to Alpha, you have the problem that when LyX looks for your image in
C:\Users\YourName\A\B\someFigure.png it will find nothing because
C:\Users\YourName\A\B\someFigure.png does not exist (because A does not
exist). It should be looking in C:\Users\YourName\Alpha\B\someFigure.png
That's the problem.

The solution is to use relative paths.  You can explicitly use a relative
path by specifying it in the textbox that comes up under input-graphics.
If an absolute path is listed there, that is likely the problem. So, if
you're in C, you can change the path in the figure reference to
..\B\someFigure.png (which is a relative path) rather than
C:\Users\YourName\A\B\someFigure.png (which is a complete path). This
means that LyX simply checks up one directory, then tries to move down, not
caring what drive we're on, or what the master folder is named, since it
never reaches that point in the tree.

If you're using relative paths and still have the problem, then I'm
stumped. Hope this helps.

Jacob


Images & Directories

2012-02-21 Thread BOB Merhebi
Hello there,

I guess the question I'm going to ask is somewhat naive, but I think it
is important to ask.

Given that you've been working on some document that includes images and
that you're done working with it and wish to archive it somewhere else
(i.e; another directory).

the Problem: Obviously images will no longer show in the LyX document
since the directories have changed!

the "naive" Question: How can I counter that to ensure that I do not
need to reset all image directories every time I change the file's location?

Thanks in advance

-- 
Sincerely Yours,
-Merhebi, Bob

Thunderbird Signature


Re: Images & Directories

2012-02-21 Thread Jacob Bishop
On Tue, Feb 21, 2012 at 10:05 AM, BOB Merhebi  wrote:

> Hello there,
>
> I guess the question I'm going to ask is somewhat naive, but I think it
> is important to ask.
>
> Given that you've been working on some document that includes images and
> that you're done working with it and wish to archive it somewhere else
> (i.e; another directory).
>
> the Problem: Obviously images will no longer show in the LyX document
> since the directories have changed!
>
> the "naive" Question: How can I counter that to ensure that I do not
> need to reset all image directories every time I change the file's
> location?
>
> Thanks in advance
>
> --
> Sincerely Yours,
> -Merhebi, Bob
>
> Thunderbird Signature
>

Bob,

As your question demonstrates, there are problems if you look at a .lyx
file as a standalone entity. It needs to be thought of as only part of a
document, the other part being the figures and any other linked content.

Because of this, I never move a file alone. Every document has a directory
that goes with it. When I create a document, it goes into its own folder.
In the document folder, I create a "figures" subfolder. All of my figures
are referenced with relative paths. Then, whenever I move a document, it
moves with the folder it was created in, and all the subfolders (including
the one with the figures in it) go with it. Done this way, the document
folder can be moved anywhere within the filesystem, and the document will
still compile without a problem.

Another bonus of using this method is that I can switch seamlessly between
systems. I synchronize my files with Dropbox, and switch between both
Windows and Linux computers seamlessly. The files compile on both systems
without any changes, even though the absolute paths are very different.

I have suffered from numerous problems before finally settling on this as a
solution. Hopefully this helps.

Jacob


Re: Images & Directories

2012-02-21 Thread BOB Merhebi
Hello Jacob,

> Bob,
>
> As your question demonstrates, there are problems if you look at a
> .lyx file as a standalone entity. It needs to be thought of as only
> part of a document, the other part being the figures and any other
> linked content.
>
> Because of this, I never move a file alone. Every document has a
> directory that goes with it. When I create a document, it goes into
> its own folder. In the document folder, I create a "figures"
> subfolder. All of my figures are referenced with relative paths. Then,
> whenever I move a document, it moves with the folder it was created
> in, and all the subfolders (including the one with the figures in it)
> go with it. Done this way, the document folder can be moved anywhere
> within the filesystem, and the document will still compile without a
> problem.
>
Indeed, that's what I do too. I have a folder -call it A- inside of
which there are 3 folders (one for figures -B-, one for my report -C- &
another for my beamer -presentation -D-). I use the figure folder for
both the report & the beamer. But if I rename A, the images links are
broken.!

> Another bonus of using this method is that I can switch seamlessly
> between systems. I synchronize my files with Dropbox, and switch
> between both Windows and Linux computers seamlessly. The files compile
> on both systems without any changes, even though the absolute paths
> are very different.
>
That's an interesting solution. Will keep it in mind, but the only thing
I need is to be able to move my folder to archive with the image links
still in contact!

> I have suffered from numerous problems before finally settling on this
> as a solution. Hopefully this helps.
>
> Jacob

-- 
Sincerely Yours,
-Merhebi, Bob

Thunderbird Signature


Re: Images & Directories

2012-02-21 Thread Jacob Bishop
Bob,

On Tue, Feb 21, 2012 at 2:22 PM, BOB Merhebi  wrote:


> Indeed, that's what I do too. I have a folder -call it A- inside of
> which there are 3 folders (one for figures -B-, one for my report -C- &
> another for my beamer -presentation -D-). I use the figure folder for
> both the report & the beamer. But if I rename A, the images links are
> broken.!
>

Interesting. I just did a simple test on LyX 2.0 with the exact example you
provided, and I do not experience that problem. Renaming or moving A causes
absolutely no issue for me.

The only thing I can think of is that you might be using absolute rather
than relative paths. I wouldn't initially think this is the problem,
because I know that LyX uses relative paths by default. However, it's the
only logical explanation I can come up with for the behavior you're
describing (Which I am not able to reproduce). You should not have to
explicitly provide relative paths, but why don't you try that and see if it
resolves the problem?

If you understand relative paths vs. complete paths, you can skip this
explanation and try that. Otherwise, I will try to explain using the folder
setup you gave. Your report is in -C-, which is in -A-. Your figures are in
-B-, which is also in -A-. When you insert an image and it puts in the
complete path, then it's something like
"C:\Users\YourName\A\B\someFigure.png" and that is a problem. If you rename
A to Alpha, you have the problem that when LyX looks for your image in
"C:\Users\YourName\A\B\someFigure.png" it will find nothing because
"C:\Users\YourName\A\B\someFigure.png" does not exist (because A does not
exist). It should be looking in "C:\Users\YourName\Alpha\B\someFigure.png"
That's the problem.

The solution is to use relative paths.  You can explicitly use a relative
path by specifying it in the textbox that comes up under input->graphics.
If an absolute path is listed there, that is likely the problem. So, if
you're in C, you can change the path in the figure reference to
"..\B\someFigure.png" (which is a relative path) rather than
"C:\Users\YourName\A\B\someFigure.png" (which is a complete path). This
means that LyX simply checks up one directory, then tries to move down, not
caring what drive we're on, or what the master folder is named, since it
never reaches that point in the tree.

If you're using relative paths and still have the problem, then I'm
stumped. Hope this helps.

Jacob