Alex Fernandez wrote:
Dear LyX users,
Hi, That looks like a very nice tool. The HTML code is indeed good-looking!
LyX is a wonderful editor; its PDF output is perhaps unmatched by other graphical editors. But the most common interchange method of today is HTML, and LyX does not produce good HTML. There are some tools for TeX -> HTML conversion, and even LyX -> HTML, but the results tend to be poor and rigid. So undeterred by the myriad of similar efforts I set to the task of producing a simple, specialized tool for LyX -> HTML conversion, and the result is eLyXer. It is meant to produce acceptable-to-beautiful HTML code, depending on your browser's Unicode and CSS rendering merits. To use it just type at the prompt: $ elyxer document.lyx document.html This command takes a LyX document called (surprisingly) document.lyx, and produces (just as surprisingly) a web page called document.html. Ta-dah! The conversion is complete. For better results you may need to copy the file docs/lyx.css to your working directory, and perhaps customize it a bit. See this wiki page for details: http://wiki.lyx.org/Tools/ELyXer and be sure to read the user guide included in the package. A pretty example can be seen at http://vecinos-productions.com/rayleigh/book.html
Is there a problem with the bibliography export ? It looks like the above example contains many more entries in the bibliography that there are references in the text, most having not numbers between the brackets.
Best regards, Olivier PS: I noticed you use #!/usr/bin/python while the python scripts of LyX use #! /usr/bin/env python I'm not sure, but the later my be more 'universal' (tolerant/portable)