Bo Peng wrote:
The way _I_ would like things to work for me (the use case 2 I was
talking about) is as follow:

1) I write a document in tradional, unbundled, fashion: 'filename.lyx'
2) When I am done, I click "save in bundled format". This will
generate a 'filename.lyz' file wherever I said to generate it (could
be in the same directory). This bundle creation was done in two steps:
  a) create a [tmpdir]/filenamedir.lyxdir/ directory
  b) copy filename.lyx to [tmpdir]/filename.lyxdir/content.lyx
  c) copy layout (if not standard) and biblio to
[tmpdir]/filenamedir.lyxdir/embed/
  d) copy referenced files to [tmpdir]/filename.lyxdir/embed/
  e) modify [tmpdir]/filenamedir.lyxdir/content.lyx so that file
reference point to the corresponding files in
[tmpdir]/filenamedir.lyxdir/embed/. The session info should keep a
trace of the original referenced file paths.
  f) zip the directory filenamedir.lyxdir/ into filenamedir.lyz

Just an additional precision here WRT code complexity. Actions a) to f) can be done via an external script.

Abdel.

Reply via email to