Bo Peng wrote:
I think the approach in my patch can be made to work. I can embed the
file just fine, and it gets extracted just fine. But I have seen some
issues with latex output. Sometimes it works, sometimes it doesn't. But
I'm thinking this can be made to work. At the very least, we can give a
relative path to where the embedded file lives. What may be harder to
get right is Export>LaTeX. But I don't know if that worked right before.
If I Export>LaTeX, I may not even have extracted the bundled files.
So we have biblio in params, and EmbeddedFile(searched bioblio.bib)?
This should work. If the file can not be located, we can just disable
embedding of this file.
I am not quite sure about latex output, which name is required here?
In the embedded case, the .tex file is in temppath(), the bib file
maybe in temppath(), or some directory under it.
See other note.
What is supposed to happen if I embed /home/rgheck/pic.png, send the
file to someone, and then he tries to extract it? I just get an error
message in this kind of case. Perhaps one should be able to extract it
to some other location?
People should be able to extract to another location. In case of
implementation difficulties, maybe we can just extract to document
path. I will have a look.
That seems like the easiest thing. In fact, if you can't extract
elsewhere, maybe we should just extract there and pop up a notice.
Indeed, maybe we should pop up a notice anyway: Files extracted to [here
follows list].
rh