On 5/7/20 11:25 AM, David Mertens wrote:

Kaplan,

Are you opening this file in LyX from two different operating systems (or two different machines), synchronized via Dropbox? Otherwise I cannot fathom any circumstances that LyX would even think to use a Windows-based path and then a Linux-based path. Maybe running LyX under Cygwin, and then not under Cygwin?

If you are looking at files using two different operating systems (or shared across two different computers with different users, so different absolute paths to files), you can manually enter a relative path to the figures. LyX will always store that relative path just fine. The only issue arises if you decide to change the figure file and use the "Browse" button to find the file. But again, once you have found that file, you can alter the beginning (absolute) part of the path and replace it with the appropriate relative path with ".." and the like.

David

On Thu, May 7, 2020 at 10:22 AM UD Kap <ehud.kap...@gmail.com> wrote:

Pavel,

When you shoot in the dark you come close to the target (I think), so I should be more careful ;-)
When I look at the path of the "confusing" image files (in the Lyx file), it says: C:/Users/Gabriel.000/Dropbox.... 

The beginning of that path (C:/Users/Gabriel.000) is the path to the Windows partition on my disk. If I then click on that path in the Lyx file, I get the usual Linux path (/home/udi/Dropbox...) which then works fine, until the next visit to the Lyx file (might require a boot to show the issue-- I shall check).. 

   So this exercise showed me that when I exit from the Lyx file, and perhaps reboot, the beginning of the path for the confusing image files changes from /home/udi/Dropbox... to c:/gabriel.000/Dropbox... for reasons known only to the Gods of Lyx.  That path confuses Lyx.


Yours,

E. Kaplan


On 5/6/20 3:38 PM, Pavel Sanda wrote:
On Wed, May 06, 2020 at 12:45:34PM -0400, UD Kap wrote:
   Pavel, I think you are getting close-- the line says:** \origin
   unavailable

   What now?
Unfortunately no, this was not fruitful direction, that value is pretty normal.
Can you answer my other questions (see below)?

Reading one more time the original report, I have two additional questions:
- when you say that you return to your presentation day(s) later does it mean
  that LyX was running the whole time or you launch LyX anew?

- you report the error "cannot determine the size of the graphics..".
  But if you click on that image and check in the dialog field "File:"
  do you still see correct path or is it lost?
Pavel
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


--
David Mertens
Assistant Professor of Physics
727.864.8521

Office Hours can be made by appointment Tuesdays and Thursdays between 10 and 2.

Eckerd College
4200 54th Avenue South
St. Petersburg, Florida 33711
Eckerd College
                                              logo

David,

Indeed, I use Linux for (almost) everything, but have (on the same machine) a Windows 10 partition, with its own Lyx/Latex.  I naively assumed that using the browse key in setting up an image in the Lyx presentation will insert the correct path for that image file.  As I have now discovered, the path that was inserted  was valid only for the editing session in which it was inserted. 

    Prompted by your suggestion, I replaced the beginning of the path for all the confusing files (which was pointing to the Windows partition)  by ~, and now Lyx is no longer confused.

  Thank you all for putting up with my stupidity and for your help.

Yours,

Ehud Kaplan


-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users

Reply via email to