> > > This looks very interesting - one wishlist item done > already!
This will be a good feature to have, but make it work in every cases is tricky so a lot of testing is needed. > > 1. Graphics, listings, bib file etc can be embedded into the .lyx file. > > > Will it be possible to add child documents as well? Assuming > you get the permissions, of course. It is not considered now, but I will see what I can do later. With separate .lyx files, you can open a child document without loading the master one. Embedding child documents will disable this. > > 2. Embedding of certain files are automatic (graphics, bib etc), and > > other files can be embedded manually. User can choose not to embed any file. > > > Very good. Perhaps an "embed all" button for cases when > one wants to package a large work in a single file for > transmission purposes? There will also be a 'unpack all' button (or dialog checkbox) to unpack all embedded files. > > 3. Embedded file.lyx file is a zip file, with file.lyx, manifest.txt > > and embedded files. There is no subdirectory in this zip file. > > > What happens if the user inserts the graphics > "a/nameclash.eps" and "b/nameclash.eps" and then > tries to embed both? Maybe subdirectories are > needed? The implementation may change dramatically. Right now, a/nameclash.eps is stored as nameclash.eps, while b/nameclash.eps is stored as _1_nameclash.eps, and a manifest file is used to hold their original pathnames. > Finally, this raises the question if zip is the archive format > we want to use. I assume it is available on all the platforms > that runs LyX? lyx already requires zlib which has zip support. My implementation copies zlib/contrib/minizip to perform zip/unzip, which should work on all platforms that support zlib. Cheers, Bo