cmd:latex2html 

Usage 

texf=cdict

Individual sections 

latex2html $texf

one big file 

latex2html -split 0 -nonavigation -dir ~/tmp $texf
cp -v ~/tmp/$texf.* .
dirdir $texf*

Help 

latex2html -h
-split num
    Stop making separate files at this depth (say "-split
    0" for one huge HTML file).
-(no)navigation
    Put a navigation panel at the top of each page
    (default).
-(no)show_section_numbers
    When this is set true, the section numbers are shown.
    The section numbers should then match those that would
    have been produced by LaTeX.  The correct section
    numbers are obtained from the $FILE.aux file generated
    by LaTeX.  Hiding the section numbers encourages use
    of particular sections as standalone documents. In
    this case the cross reference to a section is shown
    using the default symbol rather than the section
    number.

Source 

http://www.latex2html.org/

Version 2002-2-1, 08-Jan-2004 

latex2html-2002-2-1.tar.gz from CVS, 24-Feb-2004 http://saftsack.fs.uni-bayreuth.de/~latex2ht/user/latex2html-2002-2-1.tar.gz

Build & Installation 

Steps 
$ configure
[...]
Note: Will install...
      ... executables to   : /usr/local/bin
      ... shared library items to : /usr/local/share/lib/latex2html
      ... unshared library items to : /usr/local/lib/latex2html
$ make install
Info: Running /usr/bin/mktexlsr to rebuild ls-R database...
mktexlsr: Updating /usr/share/texmf/ls-R...
mktexlsr: Updating /var/lib/texmf/ls-R...
mktexlsr: Done.

Version latex2html 2002 (1.62) 

Comes with tetex-latex-1.0.7-57

Supported styles 

Supported styles are in /usr/share/latex2html/styles/*.perl.

cd /usr/share/latex2html/styles
ls -C | sed 's/\.perl/     /g'
CJK             czech           irish              polski
TEMPLATE        danish          italian            portuges
afrikaan        dutch           j-article          psfrag
alltt           english         j-book             psfrag.jp1.4
american        enumerate       j-report           report
amsart          epsbox          japanese           rgb.txt
amsbook         epsfig          jarticle           romanian
amsfonts        esperant        jbook              scottish
amsmath         estonian        jreport            seminar
amssymb         finnish         jsarticle          slides
amstex          floatfig        jsbook             slovak
article         floatflt        jslides            slovene
ascmac          frames          justify            spanish
austrian        francais        latexsym           supertabular
babel           french          letter             texdefs
babelbst        galician        longtable          texnames
bahasa          german          lsorbian           textcomp
book            germanb         lyx                turkish
brazil          graphics        magyar             usorbian
breton          graphicx        makeidx            verbatim
catalan         harvard         more_amsmath       verbatimfiles
changebar       havard          multicol           webtex
chemsym         heqn            natbib             welsh
color           hthtml          nharvard           wrapfig
colordvi        html            norsk              xspace
crayola.txt     htmllist        nynorsk            xy
croatian        inputenc        polish

Comments 

Bug: commands in comment 

If commented out tex lines have commands in them, those commands will be picked wrongly by latex2html.

able to use comment package 

Yes, able to use comment package.

Can't handle TEXINPUTS 
latex textest.tex
This is TeX, Version 3.14159 (Web2C 7.3.1)
(textest.tex
LaTeX2e <2000/06/01>
Babel <v3.7h> and hyphenation patterns for american, french, german, ngerman, i
talian, nohyphenation, loaded.
(/usr/share/texmf/tex/latex/base/article.cls
Document Class: article 2000/05/19 v1.4b Standard LaTeX document class
(/usr/share/texmf/tex/latex/base/size11.clo))
(/lfs/cache/fromCD/tex/cmd-gnrl.tex) (textest.aux)
[...]

latex2html -verbosity 0 -split 0 -nonavigation -noinfo -noaddress -dir /tmp textest.tex
texexpand V2002 (Revision 1.11)
texexpand: include cmd-gnrl.tex failed. Reinserting  command
Loading /usr/share/latex2html/styles/texdefs.perl...
[Tip]

!!

ln -s /lfs/cache/fromCD/tex/cmd-gnrl.tex

latex2html -verbosity 0 -split 0 -nonavigation -noinfo -noaddress -dir /tmp textest.tex
texexpand V2002 (Revision 1.11)
Loading /usr/share/latex2html/styles/texdefs.perl...
  -- ok now, have to ln to here
limited new-command syntax 

The following is OK with latex or latex2rtf, but Nok for latex2html

\newcommand\rfSkip\smallskip

* Could not find argument for command \newcommand **

Can't renew-command 
\newcommand{\lih}{\item } % item list highlight
\renewcommand{\lih}{\item } % item list highlight

The above won't work (no item entries generated). It will only work when
commment out the renewcommand

During the process:

Processing macros ...,,,,,,,,,,,,,++..............
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Translating ...0/0.
*** redefining \lih ***
..;.,,........................,................................;...

Doing section links ....
Unknown commands: item
Done.

Version 99.2beta8 

Build, Test run & Installation 

Help 

Note for —prefix: The final directory structure depends on the name of the prefix:

  • if prefix contains the string "latex2html" or "l2h": Then binaries go into $prefix/bin, while the rest goes into $prefix

After configure has completed, you may check the cfgcache.pm file if everything is ok. It contains all the information gathered from your system and there should be no need to change anything.

  1. Building

Run "make". The distribution files (extension .pin) are turned into the locally adapted scripts, using the configuration from cfgcache.pm. If you need to change things, then re-run the configuration step with the appropriate options (preferred) or edit the cfgcache.pm file and run "make" again.

  1. Testing

Do a plausibility check: "make check". The perl scripts are checked for syntax correctness. For compiling a small test document, type "make test".