On Thu, Jun 14, 2007 at 04:06:16PM -0400, Richard Heck wrote: > I've added two scripts: a dir_copy.py script, that simply copies the > entire temporary directory over to a subdirectory of the intended output > directory, and a tex4html_copy.py script that copies only .png, .html, > and .css files, these (I'm pretty sure) being the only kinds of files > generated by htlatex. What happens, in the end, then, is that if you > open /path/to/file/LyXFile.lyx and do File>Export>HTML, then you end up > with a (possibly new) directory /path/to/file/LyXFile.html.LyXconv/ and > all the relevant files are in there. Rather, say, than scattered across > /path/to/file/, which would make it a hassle then to move them to a > webserver.
When the html converter is not htlatex, why don't you simply take a snapshot of the files that are in the temp dir just before calling the converter, put their names in a file, say "FilesToNotBeCopied", and then use a html_copy.py script that copies only those files that are not listed in "FilesToNotBeCopied"? You may also want to check if one of the `files' created by the converter is instead a directory and properly copy that, too. And then remove the `files' that gets copied, of course. -- Enrico