----- Original Message ----- From: "Adinda Praditya" <[EMAIL PROTECTED]>
To: <[email protected]> Sent: Wednesday, March 08, 2006 7:07 PM Subject: Re: LaTeX2html with Windows
Hi list, I just searched the archive to solve my problem converting to HTML in windows environment. On 2/5/06, Uwe Stöhr <[EMAIL PROTECTED]> wrote:
LaTeX2html is dead since 2001 its successor is tex4ht, but htis package has also much problems and bugs. At the moment we have no default html converter in LyXWin. You can easily define it by adding a converter LaTeX -> HTML in LyX preferences with the line "htlatex $$i". Note that you must have installed tex4ht via MiKTeX's package manager and also note that it won't work due to bug 643
AP: I tried to do above exactly and i do have tex4ht installed. But it won't be converted, there's no error though. Did i miss something? On 2/5/06, Stephen Harris <[EMAIL PROTECTED]> wrote: There are 4 or 5 programs that convert Latex (.tex) files to html. htlatex is recommended and is now the LyX default. Latex2html is another such program which is now pretty much obsolete. LyX needs several helper programs. Msys, Miktex, ghostscript, ghostview. Python and ImageMagick if you want to have graphic format conversion capability. For WinLyx137 using Miktex: LyX->Edfit->Preferences->Converters->Latex -> Html should already have "htlatex $$i" because this converter is detected by the LyX installation process. The helper programs should be installed before the LyX installation so that LyX can detect them. Since htlatex comes with a full Miktex install, you should have htlatex.exe in C:\texmf\miktex\bin LyX is not aware of programs installed after its own installation. So you need to run LyX->Edit->Reconfigure so LyX is updated. If you add a package to your Miktex installation, besides putting it in the correct directory you need to run Miktex Options->Refresh Now which updates the filename database. Then run LyX->Edit->Reconfigure
SH wrote earlier and was quoted to say:
Thanks for your quick reply. I tested htlatex from the command line and it works quite well. XemTex, created by Fabrice Popineau uses Latex2Html and it works from clicking on a button. The output is nearly identical except Latex2Html has the additional "fi" problem, which more than doubles proofreading and editing effort.
-------------------------------------------- AP asked: Does button mean like dvi, pdf buttons? How? After i added a converter LaTeX -> HTML in LyX preferences, there's no HTML in "View" menu, Is it possible to add it? SH: Paul Rubin explained how to add a pdf converter which is similar: http://www.mail-archive.com/[email protected]/msg41307.html Thanks, Adinda P ---------------------------------------------------------- SH responded: I couldn't get the specific program Latex2html to work with Windows. I could get htlatex to work from the command line ("htlatex foo.tex" produces html files, I did it in the \texmf directory). I wanted to test the quality of conversion, htlatex vs. Latex2html. So I downloaded a large program (Xemtex 576mb) which already had Latex2html working. It also has a Latex2html conversion button on its toolbar which does work. I didn't have to do any configuration. I used it strictly to test the quality of output, Latex2html vs. htlatex. If you load a file using LyX, then under File, Export, the fourth option down is Html. But I don't think it works, maybe related to bug #643 which Uwe mentions previously. That is why I recommended running "htlatex foo.tex" from the command line, and it gives information in case something doesn't work or is missing. Here is an example of a conversion: http://www.mathematik.uni-marburg.de/~gumm/ Using XY-pic in LyX (Documentation) html or pdf ----------------------------------------------------- SH: I created the html file using htlatex. The pdf file was created by Prof. Gumm and as you can see is just about perfect. Conversions need to be proofread. ---------------------------------------------------------- http://www.mathematik.uni-marburg.de/~gumm/LyX/xypic/ xyfigure.PNG 08-Nov-2005 22:41 24K xyfigure.lyx 08-Nov-2005 22:41 1.3K xypic.aux 09-Nov-2005 16:33 28 xypic.lyx 17-Feb-2006 19:24 49K xypic.tex 09-Nov-2005 10:23 22K xypic.toc 09-Nov-2005 16:33 0 ----------------------------------------------------------------- SH:These ^^^66are the files I download and then used htlatex to generate the html file which is linked above. It was about a month ago, Feb. 4 2006. I don't know if any LyX updates or Miktex updates have broken anything since then. Good luck, Stephen
