Andre Poenitz wrote:
On Fri, Jan 04, 2008 at 07:28:10PM +0100, Abdelrazak Younes wrote:
Bo Peng wrote:
Dear all,
Embedding of files not in or under current document path leads to a
lot of hard-to-solve problems such as filename conflict, unpacking to
paths under different OS (save in c:\file, restore under unix). If
there is no objection, I will disallow embedding of such files. One
direct advantage is that inzipName is no longer needed because all
files will have a unique relative path/name under lyx temporary
directory.
What if I have this directory structure:

./*.lyx
./img/*.fig
./img/*.png

I would like to package './foo.lyx' that links './img/bar.fig'. I have I choose to embed this document, this means that it will not be possible anymore? I suggest to at least allow embedding of files with a deeper depth than current lyx file.

Even that would not be nice. Think of

 ./text/*.lyx
 ./images/*.fig
 ./images/*.png

Agreed. Bo, maybe one solution would be to reverse greater paths in the temp directory. That this for example:

./foo.lyx
../fig/bar1.fig
../../png/bar1.png

In the archive we could translate that into:

tempXXX/foo.lyx
tempXXX/foo.lyx.up/fig/bar1.fig
tempXXX/foo.lyx.up/foo.lyx.up/png/bar2.png

'up' can be replaced by a unique identifier. What'd you think?

Abdel

Reply via email to