Hi Pavel,

On Mon, May 4, 2009 at 12:48 PM, Pavel Sanda <sa...@lyx.org> wrote:
>> Sorry, I must have missed the question in the turmoil. Can you give me
>> a pointer?
>
> tools -> preferences -> file formats -> html (elyxer) -> copier
>
> see copiers section in customization manual. this maybe the cause why images
> didn't work for me with your converter. i dont think that file->export
> will work without correctly setting this.

After a few recompilations and some tinkering I think I know why
images are not working. (I used the EmbeddedObjects.lyx guide.) eLyXer
is actually working in the /tmp directory, and the result is then
copied back to the document directory. Unfortunately there are no
images to convert in the /tmp directory, so eLyXer doesn't find them
and cannot convert them.

Furthermore, the copier takes the /tmp/*/EmbeddedObjects.html file and
moves it to a folder called EmbeddedObjects.html.LyXconv, and places
the actual file EmbeddedObjects.html inside. So even if the image can
be directly embedded inside the HTML (like a PNG), and needs no
conversion, the HTML file does not find it. Removing the copier
altogether (so that just the plain EmbeddedObjects.html is copied)
solved this last problem.

As to the first issue, what do you suggest? Maybe a custom copier
could copy images to /tmp? I see that other converters place versions
of the images there. Still I don't very much like this approach, and
would very much do a conversion in place (without going through /tmp).
Unfortunately I don't think this is possible. Any ideas?

Thanks,

Alex.

Reply via email to