Miki Dovrat wrote:
Hi,

Do the features view/export HTML work in lyx 1.4.2?

They don't work on my lyx 1.4.2 Windows XP with MikTex 2.5 even though htlatex is installed and works via command line.

In html view, I get an error saying lyx can't find the file c:\tmp\lyxtmpdir..\lyx_tmpbuf0\myfile.html

In html export, I see that a dvi is generated in the directory but no html.

If I take an exported latex file and use htlatex in a command line window everything works.

So, does anyone know what is wrong? Using a command line is fine by me, however a little tedious.

Thanks


The basic structure of the html file is created, the problem
is that the file is named foo.htm rather than foo.html which
is the filename Lyx looks for. If you navigate to that tmp
folder and rename foo.htm to foo.html and run View->Html
again, then it will display because it finds the right filename.

The wrong filename is not the major problem. This process does
not work like running htlatex foo(.tex) from the command line
which does incorporate image files generated (.pngs default).

I don't think the generated image filenames are correct. I
think this is similar to bug #2299 http://bugzilla.lyx.org/show_bug.cgi?id=2299

Georg wrote: I also know the cause: dvipdfm needs .bb files for all graphics. LyX simply does not know that and does not copy these files
to  the temporary directory where latex and dvipdfm are run.

Changing the filename output from .htm to .html is minor.
I don't know if the fix Georg made for bug #2299 will fix
this problem although they seem related. Even on a file with
no equations like splash.lyx, the conversion to filename htm
which should be splash.html loses its formatting that is maintained
if you run htlatex from the command line, meaning if you navigate
to the tmp_buf* folder and type htlatex splash.tex, then use
View->Html from LyX, it looks pretty good, but not from how Lyx
invokes htlatex from the View command normally = bad splash.html

Regards,
Stephen

Reply via email to