On Thu, Jun 11, 2009 at 2:59 PM, Jürgen Spitzmüller<[email protected]> wrote: >> That would be in-place conversion: /home/work/doc.lyx becomes >> /home/work/doc.html, and references the same images. But that is not >> what other LyX developers want: they prefer an output folder >> /home/work/docHtml/ and place everything there: doc.html and images. >> So copying files to /tmp is necessary. > > But it does not happen. At least not for the images here. (I might have > misunderstood the --directory option, though).
Oops, you are right: the output path used is the same as the input path, so images are not copied to the document directory but to the --directory path. The logical thing to do seems to be to convert images into the document directory; so I will change it for the next version. > To clarify: We are talking about View>HTML. In that case, the HTML file that > opens is in /tmp, it is _not_ copied to /home/work. The images, however, are > in /home/work (and not copied to /tmp). So as long as you do View>HTML, you > need to either: > > a.) use absolute paths so that the images in /home/work are found > or > b.) copy all images to /tmp and resolve the paths again as relative paths > > Neither happens at the moment. Perfectly clear now. b) is the preferred solution and will be made to work. > The situation is completely different if you do File>Export. Then all files > will end up in /home/work, and all images should be displayed correctly (with > relative paths). In fact they will end up in /home/work/doc.dir (or something similar), so it is a matter of copying everything from /tmp. Thanks, Alex.
