Ethan Metsger wrote:
Hi, all.

I have a quick question. I've been developing a bit of documentation for one of our products using LyX. It's a small project, and I'm hoping to spur adoption of LyX by demonstrating some nice clean results here.

One of the really nice features of LyX is the ability to do exports from the command-line using something like 'lyx -e pdf2 document.lyx'. However, I have found it necessary to use different branches to separate PDF formatting from, e.g., HTML formatting, so as not to confuse some of the conversion programs like tex4ht and so on. (At least part of my efforts for this particular project will be generating reasonable HTML versions of our documentation; we do this through Framemaker already, but Frame has proven somewhat annoying to use, and we're gradually trending towards OSS products anyway.)

So I'm curious if there is a way to activate a branch through the command-line, e.g., using '-x <some command>'.
I don't see any LFUN for this at the moment, but it shouldn't be terribly difficult to add one. File an enhancement request.

Any pointers on doing lyx-to-HTML conversion would be helpful also, if anyone is so inclined.
Well, that depends upon your OS. On Linux, HTML export works pretty well, though of course your results depend upon what LaTeX to HTML converter you use. On other OS's, mileage seems to vary, mostly because htlatex is buggy on Windows. But you might try the relatively new Plastex converter, which is written in Python and so ought to be more portable. I've been meaning to add a line to configure.py that would detect and install it but just haven't gotten around to it.

Richard

--
==================================================================
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://frege.brown.edu/heck/
==================================================================
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto

Reply via email to