On 11/26/2010 01:08 PM, JuJu wrote:
Hi,
I was wondering if there is any possibility to make Lyx know where I moved
the files (like pictures f.e.) that I am referring to in my Lyx-document.
For example:
I save a STATA result called output.tex in my folder "Work" on the desktop.
I open a new Lyx-Document -> then i use the menu "insert->file" to include
my file. I use the option browse to tell Lyx where the document is stored.
Lyx now shows the following path /Desktop/Work/output.tex.
Up to here everything is fine.
But now i decide to sort all of my files in folder "Work" and create a
subfolder "STATA_Outputs".
Now the path for Lyx to find the document has to be
/Desktop/Work/STATA_Outputs/output.tex.
But Lyx did not recognize that i moved the file and still shows
/Desktop/Work/output.tex in the Browse-field.
That of course does not work anymore now, because the file is not there.
Same problem with graphs and pdfs...
So my question is now: Is there a possibility to make Lyx automatically
adjust the paths of inserted pictures, pdfs, files, etc. when i move them.
No, and it's not clear how that would work. If LyX can't find the file,
I guess it could start searching the entire filesystem, but that looks
like a bad idea.
The best thing to do is to put these files in some location that LaTeX
knows about. You can do things like:
\include{myfile}
and LaTeX will try to find myfile.tex in various places. This is
controlled, I think, by the TEXINPUTS environment variable.
Richard