Installation and Further Support


Requirements


The translator makes use of several utilities all of which are freely available on most platforms.

You can choose between two ways to do the installation of the required tools: either go the convenient way and install binary distributions (no compilation required, just install out of the box), or get and compile a source code distribution. You will stick to the latter in case you have a special kind of operating system or want to make customisations prior to compilation such as applying source level patches. Windows users will probably want to read the section about installation on Windows.

For the best use of LATEX2HTML you want to get the latest versions of all the utilities that it uses. (It will still work with earlier versions, but some special effects may not be possible. The specific requirements are discussed below.)





More specific requirements for using LATEX2HTML depend on the kind of translation you would like to perform, as follows:

  1. LATEX commands but without equations, figures, tables, etc.

  2. LATEX commands with equations, figures, tables, etc.
    As above plus ...

  3. Segmentation of large documents
    If you wish to use this feature, you will have to upgrade your LATEX to LATEX2e . Some other hyperlinking features also require LATEX2e .

  4. Transparent inlined images
    If you dislike the white background color of the generated inlined images then you should get either the netpbm library (instead of the older pbmplus) or install the giftrans filter by Andreas Ley <ley@rz.uni-karlsruhe.de>. LATEX2HTML now supports the shareware program giftool (by Home Pages, Inc., version 1.0), too. It can also create interlaced GIFs.

If Ghostscript or the netpbm library are not available, it is still possible to use the translator with the -no_images option.


If you intend to use any of the special features of the translator then you have to include the html.sty file in any LATEX documents that use them.


If only a character-based browser, such as lynx, is available, or if you want the generated documents to be more portable, then the translator can be used with the -ascii_mode option.


Installation on Windows

For Windows 95, 98, and NT you will either need a newer html Release 99.1 or higher, or if you like to try an older release get the Windows 97.1 port by Fabrice Popineau from ftp://ftp.ese-metz.fr/pub/TeX/win32. Meanwhile, all the operating system dependent issues are integrated into the main release, thanks to the cool work of Marek Rouchal.

To install the tools required to run the translator, perform the steps below. Thanks to Jens Berger (jberger@mail.zedat.fu-berlin.de) for providing this list!

Getting LATEX2HTML

Subsections

LATEX2HTML is available through the Fedora, Debian, and Ubuntu package managers for Linux, and the macports package manager for MacOS.

Releases of LATEX2HTML may also be obtained at https://www.github.com/latex2html/latex2html/releases ,


Finally there is the LATEX2HTML developers' source repository, at https://www.github.com/latex2html/latex2html/ .
The files to be found here are the most up-to-date with current developments, but they cannot be guaranteed to be fully reliable. New features may be still under development and not yet sufficiently tested for release. A daily updated compressed archive of the developers' work may be downloaded from https://www.github.com/latex2html/latex2html/archive/master.zip .




Having obtained a compressed tar version, save it into a file latex2html-2019.tar.gz say, then extract its contents with

% gzip -d latex2html-2019.tar.gz
% tar xvf latex2html-2019.tar

You should then have the following:




Subsections


Installing LATEX2HTML


To install LATEX2HTML you MUST do the following:
  1. Specify where Perl is on your system.
    In each of the files latex2html, texexpand, pstoimg, install-test and makemap, modify the first line saying where Perl is on your system.

    Some system administrators do not allow Perl programs to run as shell scripts. This means that you may not be able to run any of the above programs. In this case change the first line in each of these programs from

    #!/usr/local/bin/perl

    to:
    # *-*-perl-*-*
        eval 'exec perl -S  $0 "$@"'
        if $running_under_some_shell;
    

  2. Copy the files to the destination directory.
    Copy the contents of the texinputs/ directory to a place where they will be found by LATEX, or set up your TEXINPUTS variable to point to that directory.

  3. Run install-test .
    This Perl script will make some changes in the latex2html file and then check whether the path-names to any external utilities required by latex2html are correct. It will not actually install the external utilities. install-test asks you whether to configure for GIF or PNG image generation. Finally it creates the file local.pm which houses pathnames for the external utilities determined earlier.

    You might need to make install-test executable before using it.
    Use chmod +x install-test to do this.

    You may also need to make the files pstogif, texexpand, configure-pstoimg and latex2html executable if install-test fails to do it for you.

  4. If you like so, copy or move the latex2html executable script to some location outside the $LATEX2HTMLDIR directory.

  5. You might want to edit latex2html.config to reflect your needs. Read the instructions about $ICONSERVER carefully to make sure your HTML documents will be displayed right via the Web server.
    While you're at it you may want to change some of the default options in this file.
    If you do a system installation for many users, only cope with general aspects; let the user override these with $HOME/.latex2html-init.

Note that you must run install-test now; formerly you could manage without. If you want to reconfigure LATEX2HTML for GIF/PNG image generation, or because some of the external tools changed the location, simply rerun configure-pstoimg.




This is usually enough for the main installation, but you may also want to do some of the following, to ensure that advanced features of LATEX2HTML work correctly on your system:

Getting Support and More Information

A LATEX2HTML mailing list is managed by the international TEX User Group (http://www.tug.org).

This mailing used was originally established at the Argonne National Labs, where it was based for several years. (Thanks to Ian Foster and Bob Olson, and others.) Since February 1999, it has been run by http://www.tug.org, thanks to Art Ogawa and Ross Moore.

To join send a message to: <latex2html-request@tug.org >
with the contents:   subscribe

To be removed from the list send a message to: <latex2html-request@tug.org >
with the contents:   unsubscribe


The mailing list also has a searchable online archive. It is recommended to start with this, to become familiar with the topics actually discussed, and to search for articles related to your own interests.


Enjoy!