My environment: lyx-1.3.6 built from FreeBSD ports FreeBSD 5.4 I am trying to configure latex2html as a converter in lyx. Peculiarity of latex2html is that it generates multiple files in an output directory and the main file is index.html. I am using originaldir,resultdir,resultfile extra options to make things work and I have a partial success, but I am facing a big problem now. The success is that I am able to view->html a document now. The problem is that I can not export a document to html.
Symptoms: 1. originaldir options does not seem to make any difference - both with and without it I can view a document, but can not export it. The situation seems to be that working directory is set to temporary directory in both cases, but in one case only filename is passed to the converter and in the other case full (real) path is passed to the converter, which apparently does not make any difference. Compare (on my system /tmp is a symlink to /var/tmp/tmp): <quote original_dir="1"> OPENING /tmp/lyx_tmpdir57387qVVeAo/lyx_tmpbuf0/packet-structure.tex Note: Working directory is /tmp/lyx_tmpdir57387qVVeAo/lyx_tmpbuf0/packet-structure Note: Images will be generated in /tmp/l2h57389 </quote> <quote original_dir="0"> OPENING /var/tmp/tmp/lyx_tmpdir574020IpbL5/lyx_tmpbuf0/packet-structure.tex Note: Working directory is /var/tmp/tmp/lyx_tmpdir574020IpbL5/lyx_tmpbuf0/packet-structure Note: Images will be generated in /tmp/l2h57407 </quote> 2. results directory is incorrectly copied: latex2html creates its results directory under a temporary directory, then lyx apparently tries to move (using rename(2)) the results directory to the same directory where original document resides, in my case they are on different filesystems, so rename(2) fails, then lyx decides to use copy instead, but lyx's copy is a simple file copy that apparently is not capable of recursive directory copying. Thus, as a result of export I get, using the example document above, a file named "packet-structure" that has the same binary contents as /tmp/.../packet-structure/ directory if it is read as a plain file. -- Andriy Gapon