On 15/09/2011 12:33 AM, Tommaso Cucinotta wrote:
I guess we have to live with this. What happens with the current code,
actually? Do we output e.g. .eps files to parent directories?


Yes, I just tried:

   a.fig
   nested/source.lyx (including a.fig)

and, after the export, we get:

   nested/source.tex: \includegraphics{\lyxdot \lyxdot /a}
   a.eps (created)

Probably I missed some additional check on export_folder.empty(), and as
a side effect, in my patched code a.eps is actually created inside the
nested/ folder, and referenced without the "\lyxdot \lyxdot /" (to be
fixed, in order to restore the current behavior).

Let's say I have a document, where all my figures are in ../images and I want to export latex to out/latex and xhtml to out/xhtml and have my images in out/images:

out/images  <-- image files
out/latex   <-- latex source
out/xhtml   <-- xhtml source

How to do that?

If I do
lyx -E latex out/latex myfile.lyx
lyx -E xhtml out/xhtml myfile.lyx
I end up with duplicated images in out/latex/images and out/xhtml/images.

--
Julien

Reply via email to