On 06/09/2013 05:22 PM, Bob Alvarez wrote:

    "This will NOT be YAHC (Yet Another HTML Converter). It will be a
    small subset of LyX's capabilities, purposed not to turn a
    document into HTML, but to turn LyX into a quick to use HTML
    authoring tool for HTML web pages. It will in no way try to
    replace the existing HTML Converters, and from what I've seen so
    far, the existing HTML converters would have a hard time replacing
    what I'm trying to make."


Let me state my interest in this topic to see if it overlaps with yours. I agree that HTML exporters like Alex Fernandez' eLyXer do a great job of producing web pages that look like pdf documents. What I would want is to be able to add some capabilities to the HTML that would not be possible in a static format like pdf. But at the same time, I want to use Lyx's capabilities for formatting the document and math typesetting.

As an example, I use Lyx to create web pages with a lot of math. Like most math, it is structured with general statements like theorems with proofs. Many times, the proof gets in the way of the narrative although it is important for it to be there if the reader wants to see it. I saw a website where they added a + sign gadget that if you click it once displays the proof and then clicking it again hides it.

This is relatively easy to do using the javascript openClose function
http://javascriptsource.com/miscellaneous/collapsible-text.html

Alex suggested a way to do this that, if I understand it correctly, requires editing the HTML output. I would be interested in extensions to Lyx that would allow me to add features like these but at the same time be able to export standard pdf documents.

The from LyX's own XHTML exporter is substantially customizable through layout files. I'd be surprised if this sort of thing could be not be done fairly simply. At worst, you'd have to define some new sort of inset in which you could wrap whatever you wanted to be opened and closed.

Richard

Reply via email to