On Mar 9, 2006, at 12:39 PM, BEJ wrote:
I'm using LyX 1.4.0 on a G4 PowerBook with OS 10.4.5, and 1.3.5 on
a G5 iMac with OS 10.4.5. Has LyX moved away from allowing choice
in use of a LaTeX to HTML converter? With 1.3.5 when I run
reconfigure, I see this:
checking for a LaTeX -> HTML converter... (tth latex2html hevea)
+checking for "tth"... no
+checking for "latex2html"... yes
OK, this is good, because I have macros set up in jEdit to convert
the html for posting on my blog and other forums, and converting
this output to rtf is fairly trivial.
But on the PowerBook with 1.4.0 (and previously 1.3.8), I see this:
checking for a LaTex -> HTML converter...
+checking for "htlatex"... yes
checking LaTeX configuration... auto
This is BAD for my purposes, because htlatex is using classes and
spans to format output, instead of simple italics or bold tags.
Even worse, the span tags straddle a linebreak, so I can't even do
a simple find and replace for them. And that doesn't even bring up
the issue of the commented line numbering htlatex does, which also
needs to go.
Does someone have a workaround for this that doesn't involve
delving into the morass that is the documentation for the new
converter? Perhaps, getting LyX 1.4.0 to recognize my Fink install
of LaTeX2HTML?
You simply need to define a converter from within LyX's preferences.
Two steps here:
1. LyX > Preferences > File formats: enter "html2" into the Format
field, "HTML (latex2html)" into the GUI name field (or anything else
you'd find illuminating -- this is what will show up in LyX's menus,
and "html" in the Extension field. (I'd also add "open" in the Viewer
field.) Click on the "Add" button.
2. LyX > Preferences > Converters: select "LaTeX" from the From drop-
down list and "HTML (latex2html)" from the To drop-down list. Then
enter whatever command you want to run in the Converter field (I have
"latex2html $$i -show_section_numbers -no_subdir -split 0 -
local_icons -numbered_footnotes -contents_in_navigation" -- note that
the $$i is the placeholder for the LaTeX document LyX produces).
Click the "Add" button, then the "Save" button.
You should now be able to use latex2html -- and you can produce it
from the View menu if you've added "open" in the Viewer field as I
suggested.
Bennett