[LyX/master] French User Guide: fix file paths

Scott Kostyshak skostysh at lyx.org
Sun Mar 7 17:40:50 UTC 2021


On Sun, Mar 07, 2021 at 09:26:50AM +0100, JP wrote:
> Le 7 mars 2021 06:06:23 Scott Kostyshak <skostysh at lyx.org> a écrit :
> 
> > On Sun, Mar 07, 2021 at 05:35:58AM +0100, JP wrote:
> > > Dear Scott
> > > 
> > > Thanks for the fix.
> > 
> > Sure!
> > 
> > > What should I do to avoid such file path errors?
> > 
> > It depends on how those path changes got in there. How did you write the
> > file to the master repository location? If you did "save as" then I
> > think that would explain it because in that case LyX would preserve the
> > paths to the 2.3.x files. In that case, the fix is simple: just copy the
> > file outside of LyX from the 2.3.x directory to the master directory.
> > 
> > If you didn't do "save as", then I'm not sure how the paths got changed.
> > If we can't figure it out, it's easy enough to give you some "sed"
> > commands that would take care of fixing the paths, but that is annoying
> > and we'd have to remember to run them each time 2.3.x docs are ported
> > over to master.
> > 
> 
> I guess I opened the file from the master dir like
> lyx-2.4.0dev ../2.3.x/lib/doc/fr/UserGuide.lyx

Ah yes, that explains it. 

> 
> I should open it from its own dir and then copy the file to master,  I'll
> remember it for Additional.

Yes, copy using your file browser, not using LyX. LyX does not know that you want to change which images are used, so it makes sense that LyX tries to preserve the original image paths.

Scott
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20210307/77ed4141/attachment.asc>


More information about the lyx-devel mailing list