html2latex converts an HTML file (which
may contain WebEQ applets) into a LaTeX2e file.  Any WebEQ applet tags
that contain WebTeX commands will be replaced with the equivalent
LaTeX commands.
 html2latex can also put images from the HTML file
into the LaTeX file if you have an image conversion program such
as ImageMagick's convert.
html2latex [options] [infile] [outfile]
html2lat [options] [infile] [outfile]html2lat.bat.
The HTML input file infile and the LaTeX output file
outfile are dealt with in the following way:
infile is the name of the HTML file to parse (or "-" for
  standard input)
  infile is missing, it defaults to "-".
  outfile is the name of the file to write (or "-" for standard out).
  outfile is missing, it defaults to the input file name with
  its extension replaced by ".tex" (or possibly some other string
  specified in the .tag file), or to "-" if infile is "-".
 [options] include one or more of
-images	    -noimages	    -ps	    -images
 -nops	    -noimages
 -home dirname  -texcomments   <!--\TeX ...your LaTeX commands here...-->
<!--SUSPENDinTeX--> ... HTML code here will be ignored ... <!--RESUMEinTeX-->
-teximages     ALT
parameter of images contains LaTeX code,
                        the image is replaced with the LaTeX
                        (The other images are still processed if you
                        use -images.)
The first four characters of the ALT parameter should
be \TeX followed by a space.  The remaining characters in
the parameter will be placed verbatim in the output LaTeX file. An example is
<IMG SRC="array.gif" ALT="\TeX $\begin{array}{cc}a&b\\c&d\end{array}$">
This option also automatically sets the -texcomments flag.
 -noinitstring  -noinitstring
                        to supress the initial and final lines
                        (for example, \begin{document} )
 -f formatfile  .tag file to load.  This allows the user to expand
html2latex to convert HTML tags that are not currently
recognized.  
html2latex:
html2latex.)
html2latex.tag.  This allows users to modify the rules
for converting HTML tags to LaTeX.
input.html to the LaTeX2e file
output.tex, use 
the command 
        html2latex input.html output.tex
If input.html contains images that you would like inserted in the
output, add the -images flag:
        html2latex -images input.html output.tex
(This converts the GIF and JPEG images into PostScript files that are
called by LaTeX when it processes output.tex.)
The LaTeX2e file output.tex should be converted to DVI with the command
latex2e output.
html2latex uses a program you specify to convert any
images linked by the HTML page into the EPS format which may by
included in LaTeX files.  One program that does this is "convert",
part of the ImageMagick
 package.  Whatever program you use, you will
need to give the command format in the file
html2latex-local.tag.  Replace the existing string
assigned to the variable $htmlConvert with the command
you will use, leaving the strings "%in" and
"%out" where the command expects the names of the input
and output files, respectively. 
README
html2latex
html2latex.tag
html2latex.tex
webtex2latex.tag
html2latex-local.tag
html2lat.bat
html2latex from the Geometry
Center html2latex download
page.  If you are working on a UNIX system, unpack
html2latex with the command 
corresponding to the file you've downloaded:
        gunzip < GChtml2latex.tar.gz | tar xvf -
        uncompress < GChtml2latex.tar.Z | tar xvf -
The directory GChtml2latex will be created containing the files listed above.
On a Windows system, use WinZip or a similar program.
You will need to customize your copy by changing the variables in
the file html2latex-local.tag to reflect the position of
the directory in your system.
NOTE:  The first line of the file html2latex must
be changed to reflect the exact path of perl on your system.
html2latex.  Perl 4
will also work.  On Windows machines, you can use Perl for Win32.
convert
is the one that is used by default in html2latex.  You may use a
different image conversion program by specifying the conversion
command in html2latex-local.tag.
html2latex
will cause LaTeX errors when you try to run 
latex2e. Some of the more common problems that cause this
are listed here:
Complicated HTML tables and WebTeX arrays may not be converted correctly. In particular, nested arrays are likely to need adjustment once they are converted to LaTeX.
There may be many other instances where you need to tweak the LaTeX
output to make it acceptable for the LaTeX compiler.  Sometimes
html2latex will put a line break (preceded by a percent
sign) in the middle of a LaTeX
command, if there is no obvious place to break the line.  If too many
of these line breaks occur, you may reduce their likelihood by
increasing the value of the variable $htmlWidth in
the file html2latex-local.tag.
Frames and background images are not understood.
This program does NOT work across the network.  The images must be on
the system you are using to run html2latex.
It would be nice to convert a WebTeX source file directly to LaTeX. Currently, a WebTeX source file must be run through the WebEQ Wizard to create the WebEQ applets before it can be converted to LaTeX.
html2latex was
written by Davide Cervone.  This version was developed by Jeffrey Schaefer.
Please send questions or comments about html2latex to