On Wed, 2024-12-11 at 14:59 -0800, Rich Shepard wrote:
> I copied an images/ directory to a different parent path and now need
> to
> correct the path to all images in the document. When I click on an
> image
> 'settings' link the old path and directory show up in the dialog box.
> Even
> after I repoint the dialog box the path above the images/ directory
> is lost.
> 
> How can I reset the path to the new image directory so that's where
> the
> settings dialog box opens?
> 
> TIA,
> 
> Rich

I think that you can not do that.

When I need to do that what I do is:

1. make an copy of the file, in case something goes wrong;
2. open the LyX file with a text editor (emacs, vi, kate, ...)
3. search and replace the location

For example let us consider the self-descriptive names path_old and
path_new.

What I do is to search for all occurrences of:

filename path_old

and to replace them with

filename path_new

Notice that above filename is really literal because if you go to
 View->Code Preview Pane

change the format shown to LyX, and place the cursor in the paragraph
where the image is, you will see that this is the format used
internally to store the file location.

Then generate the pdf to ensure that everything works as intended.
This is quite safe, however if something goes wrong you still have the
original file.

I hope that this helps,
-- 
José Abílio
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
https://lists.lyx.org/mailman/listinfo/lyx-users

Reply via email to