1\begin{htmlonly} 2\documentclass[dvips,a4paper]{article} 3\usepackage{html,htmllist,makeidx} 4\input{manhtml.tex} 5% 6\input{support.ptr} % Input counters and section 7\end{htmlonly} 8%\internal{}% 9%\internal{M}% 10%\internal{H}% 11%\internal{F}% 12\startdocument 13% 14%\section{Installation and Further Support\label{sec:sup}\index{install}}% 15\label{sec:sup}\index{installation|(} 16\subsection{Requirements}% 17%\section{Requirements}% 18\index{requirements|(}\html{\\}% 19The translator makes use of several utilities all of which 20are freely available on most platforms. 21 22You can choose between two ways to do the installation of the required 23tools: either go the convenient way and install binary distributions 24(no compilation required, just install out of the box), or get and 25compile a source code distribution. 26You will stick to the latter in case you have a special kind of 27operating system or want to make customisations prior to compilation 28such as applying source level patches. 29Windows users will probably want to read the section about 30\htmlref{installation on Windows}{windowsinst}. 31 32In case you find one of the URLs below broken, use the search 33engine on the TUG home page \CTANtug{} in order to locate the tool. 34Other Web-searching facilities such as Altavista or \appl{FTP search}% 35\htmladdnormallinkfoot{\html{ }}{http://ftpsearch.ntnu.no/ftpsearch} 36will also do the job. 37 38\medskip\noindent 39For the best use of \latextohtml{} you want to get the latest 40versions of all the utilities that it uses. (It will still work 41with earlier versions, but some special effects may not be possible. 42The specific requirements are discussed below.) 43% 44\begin{itemize} 45\item \Perl{} version 5.002, or later (check with \verb/perl -v/); 46\item \LaTeX, meaning \LaTeXe{} dated \texttt{<1995/06/01>}, or later; 47\item \fn{dvips} or \fn{dvipsk}, at version 5.58 or later; 48\item \appl{Ghostscript} at version 4.02 or later; 49\item \fn{netpbm} library of graphics utilities, version \textsc{1-mar-94}\\ 50 (check with \fn{pnmcrop} \Cs{version}). 51\end{itemize} 52 53\medskip\htmlrule 54\medskip\noindent 55More specific requirements for using \latextohtml{} 56depend on the kind of translation you would like to perform, as follows: 57% 58\begin{enumerate} 59\item 60\index{requirements!minimal}% 61\textbf{\LaTeX{} commands but without equations, figures, tables, etc.} \hfill 62\begin{itemize} 63\item 64\htmladdnormallink{Perl}{http://www.perl.com/} 65\begin{small} 66\textbf{Note:} \latextohtml{}\textbf{ requires \Perl{ 5} to operate}. 67\end{small}\html{\smallskip} 68 69\textbf{Warning~1: }% 70You really \emph{do} need \Perl{ 5}.\\ 71Versions of \latextohtml{} up to \textsc{v96.1}h work 72both with \Perl{ 4} at patch level 36 and \Perl{ 5}\,, 73though some of the packages may only work with \Perl{ 5}\,.\html{\\} 74 75 76\textbf{Warning~2: }\index{requirements!Unix shell}% 77Various aspects of \Perl{}, which are used by \latextohtml{}, assume 78certain system commands to be provided by the operating system shell. 79If \fn{csh} or \fn{tcsh} is used to invoke \latextohtml{} 80then everything should work properly.\\ 81\Perl{ 5} eliminates this requirement on the shell. 82 83\index{requirements!DataBase Management system}% 84\item 85\appl{DBM} or \appl{NDBM}, the Unix DataBase Management system, 86or \appl{GDBM}, the GNU database manager. 87 88\textbf{Note: }Some systems lack any DBM support. 89\Perl{ 5} comes with its own database system SDBM, but it is sometimes 90not part of some Perl distributions. 91 92The installation script \fn{install-test} will check that for you. 93If no database system is found, you will have to install Perl 94properly. 95\end{itemize} 96 97\index{requirements!for full graphics}% 98\index{tables!as images}\index{images!tables}% 99\index{images!figures}\index{images!equations}% 100\item 101\textbf{\LaTeX{} commands with equations, figures, tables, etc.} \\ 102As above plus \dots 103% 104\begin{itemize} 105\item \fn{latex} (version 2e recommended but 2.09 will work --- with 106reduced ability to support styles and packages); 107% 108\index{dvips@\texttt{dvips} version} 109\item 110\htmladdnormallink{\fn{dvips}} 111{ftp://ftp.tex.ac.uk/pub/archive/dviware/dvips} 112(version~5.516 or later) or \fn{dvipsk}\\ 113 Version 5.62 or higher enhances the performance of image creation 114 with a \emph{significant} speed-up. See latex2html.config for this 115 after you are done with the installation. 116 Do not use the 'dvips -E' feature unless you have 5.62, else you 117 will get broken images. 118% 119\index{Ghostscript@\textsl{Ghostscript} version} 120\item 121\fn{gs} \appl{Ghostscript} (version 4.03 or later); 122 with the ppmraw device driver, or even better pnmraw. 123 Upgrade to 5.10 or later if you want to go sure about seldom problems 124 with 4.03 to avoid (yet unclarified). 125% 126\index{image conversion!Postscript@\PS\ to GIF}% 127\index{GIF!image conversion}% 128\item 129The \htmladdnormallink{\fn{netpbm}}{ftp://ftp.x.org/R5contrib/} 130library of graphics utilities; \fn{netpbm} dated 1 March 1994 131is required, else part of the image creation process will fail.\\ 132Check with: \fn{pnmcrop} \Cs{version}. 133 134Several of the filters in those libraries are used during the \PS\ to 135GIF conversion. 136\index{image conversion!Postscript@\PS\ to PNG}% 137\index{PNG!image conversion}% 138\item 139If you want PNG images, you need \fn{pnmtopng} (current version is 2.31). 140It is not part of \fn{netpbm} and requires \fn{libpng-0.89c.tar.gz} and 141\fn{libz} (1.0.4) (or later versions). 142\fn{pnmtopng} supports transparency and interlace mode.\\ 143\appl{Netscape Navigator} as well as \appl{MS IE} do support inlined 144PNG images. 145\end{itemize} 146 147 148\index{requirements!for segmentation feature}% 149\index{segmentation!needs latex2e@needs \LaTeXe}% 150\item 151\textbf{\htmlref{Segmentation}{Segmentation} of large documents}\\ 152If you wish to use this feature, you will have to upgrade your 153\LaTeX{} to \LaTeXe\,. 154Some other hyperlinking features also require \LaTeXe\,. 155 156\index{requirements!for transparent images}% 157\index{images!transparent}% 158\item 159\textbf{\htmladdnormallinkfoot{Transparent inlined images}% 160{http://melmac.corp.harris.com/transparent\_images.html}}\\ 161If you dislike the white background color of the 162generated inlined images then you should get either 163the \fn{netpbm} library (instead of the older \fn{pbmplus}) 164or install the \htmladdnormallinkfoot{\fn{giftrans}}{\giftransURL} 165%{ftp://ftp.uni-stuttgart.de/pub/comm/infosystems/www/tools/imaging/giftrans/giftrans-1.11.1.tar.gz} 166filter by Andreas Ley \Email{ley@rz.uni-karlsruhe.de}. 167\latextohtml{} now supports the shareware program \fn{giftool} 168(by Home Pages, Inc., version 1.0), too. 169It can also create interlaced GIFs. 170% 171\end{enumerate} 172 173\index{requirements!without images}% 174 175\noindent 176If \appl{Ghostscript} or the \fn{netpbm} library are 177not available, it is still possible to use the translator with the 178\Cs{no\_images} option. 179 180\index{requirements!for special features}\index{special!features}% 181\index{html.sty@\texttt{html.sty} style-file!needed for special features}% 182\html{\\}% 183 184If you intend to use any of the \htmlref{special features}{sec:hyp} 185of the translator \latex{(see page~\pageref{sec:hyp})} 186then you have to include the \fn{html.sty} file 187in any \LaTeX{} documents that use them. 188 189\index{browser!supports images}% 190\index{Mosaic@\textsl{Mosaic}|see{\htmlref{browser}{IIIbrowser}}}% 191\index{NCSA Mosaic@\textsl{NCSA Mosaic}|see{\htmlref{browser}{IIIbrowser}}}% 192\index{Netscape@\textsl{Netscape Navigator}|see{\htmlref{browser}{IIIbrowser}}}% 193\index{browser!\textsl{NCSA Mosaic}}% 194\index{browser!\textsl{Netscape Navigator}}% 195\html{\\}% 196 197Since by default the translator makes use of inlined images in the final 198\texttt{HTML} output, it would be better to have a viewer 199which supports the \HTMLtag{IMG} tag, 200such as \htmladdnormallink{\textsl{NCSA Mosaic}}{\MosaicDocs}% 201%{http://www.ncsa.uiuc.edu/SDG/Software/Mosaic/Docs/help-about.html} 202or \htmladdnormallink{\textsl{Netscape Navigator}}{\NetscapeHome}. 203Any browser which claims to be compatible with \HTMLiii{} should meet 204this requirement. 205 206\index{browser!character-based}% 207\index{browser!character-based}\index{browser!lynx@\textsl{lynx}}% 208\html{\\}% 209 210If only a character-based browser, such as \appl{lynx}, is available, 211or if you want the generated documents to be more portable, 212then the translator can be used with the \Cs{ascii\_mode} 213\hyperref{option}{option (see Section~}{)}{cs_asciimode}. 214 215\index{requirements|)} 216 217\subsection{Installation on Windows} 218\label{windowsinst}\index{installation!on~Windows~95/98/NT} 219 220\index{source code!for Windows NT platform}% 221For Windows $95$, $98$, and NT you will either need a newer 222\latex2html{} Release $99.1$ or higher, or if you like to try an 223older release get the Windows $97.1$ port by \Popineau\ from 224\url{ftp://ftp.ese-metz.fr/pub/TeX/win32} or the $98.2$ DOS version 225\fn{l2h98\_2dos.tar.gz} by \Taupin{} from \CVSsite. 226Meanwhile, all the operating system dependent issues are integrated 227into the main release, thanks to the cool work of \Rouchal. 228 229To install the tools required to run the translator, perform the steps 230below. Thanks to Jens Berger (\texttt{jberger@mail.zedat.fu-berlin.de}) 231for providing this list! 232\begin{itemize} 233\item install \fn{WinZip} from \WinZipURL; 234\item install \TeX/\LaTeXe{} and \fn{dvips};\\ 235 E.g. the \fn{MikTeX} $1.20$ distribution from \MikTeXURL. 236\item install \fn{Perl};\\ 237 E.g. \fn{ActivePerl} $509$ or higher from \ActiveStateURL. 238 Windows $95$ users will also need \fn{DCOM}, it is listed on 239 that download page, too. 240\item install \fn{GhostScript};\\ 241 E.g. \fn{Aladdin GhostScript} $5.50$ from \GhostScriptURL. 242\item install the \fn{NetPBM} tools library from \NetpbmWinURL. 243\item unpack \latextohtml{}, e.g. under \verb|C:\TEXMF\LATEX2HTML|; 244\item check that the path to \fn{GSWIN32C.EXE} is added to the 245 \texttt{PATH} variable in your \texttt{AUTOEXEC.BAT}; 246\item with \latextohtml{} $99.1$ or higher, edit \texttt{l2hconf.pin}, 247 then run \texttt{CONFIG.BAT} to install the translator;\\ 248 with older releases, edit \texttt{LATEX2HTML.CONFIG} and run 249 \begin{verbatim} 250 cd c:\texmf\latex2html 251 perl install-test 252 \end{verbatim} 253 from within a DOS box. 254\item you might want to write a small \texttt{.BAT} file in your 255 \latextohtml{} directory: 256 \begin{verbatim} 257 perl c:\texmf\latex2html\latex2html %1 %2 %3 >> l2h.log 258 \end{verbatim} 259 \texttt{\%1} is the name of the \texttt{.TEX} file, 260 \texttt{\%2} and \texttt{\%3} are optional arguments to the 261 translator such as \Cs{"-split 3"}.\\ 262 Note that if you want more than two arguments you will need 263 to supply more parameters to the \texttt{.BAT} file. 264\item run it with a test document \texttt{test.tex}: 265 \begin{verbatim} 266 l2h test 267 \end{verbatim} 268 Maybe you will need to run \LaTeX{} before this, too! 269\end{itemize} 270 271 272\subsection[center]{Getting \protect\latextohtml} 273%\section[center]{Getting \protect\latextohtml} 274\tableofchildlinks* 275\htmlrule 276\index{source code}% 277\index{source code!from CTAN}% 278\index{CTAN}% 279One way \latextohtml may be obtained is through one of the three 280\htmladdnormallink{Comprehensive \TeX{} Archive Network (CTAN)}% 281{\CTANtug{}} sites. 282They are located at 283\begin{htmllist}\htmlitemmark{GreenBall} 284\item [US ] 285United States: 286\htmladdnormallinkfoot{\CTANtug{}}{\CTANtug{\CTANA}}\,, 287\item [UK ] 288United Kingdom: 289\htmladdnormallinkfoot{\path{http://www.tex.ac.uk/}}% 290{http://www.tex.ac.uk/\CTANA} 291\item [DE ] 292Germany: 293\htmladdnormallinkfoot{\path{ftp://ftp.dante.de/}}% 294{ftp://ftp.dante.de/\CTANA}\,. 295\end{htmllist} 296In the directory \htmladdnormallink{\CTANA/}{\CTANtug{\CTANA}} 297should be the latest version, as a compressed archive. 298 299\smallskip\noindent 300There are also many mirrors. 301To find the nearest to you, get a listing via the command: 302\begin{quote} 303\texttt{finger ctan@www.tug.org} 304\end{quote} 305 306\noindent 307The site at \CVSsite\ is a convenient alternative for European users. 308This is connected to the \htmlref{developer's repository}{cvsrepos}, 309so should always have the most recent release. 310 311\index{source code!home site}% 312\smallskip\noindent 313Alternatively, a compressed \fn{tar} file of the source and related files 314may be obtained via \appl{anonymous ftp} to \sourceA\,. 315 316\smallskip\noindent 317Two other \appl{ftp}-sites are: 318\begin{itemize} 319\item \sourceB{} 320\item \sourceC{} 321\end{itemize} 322 323\index{source code!using Archie@using \textsl{Archie}}% 324\index{source code!using FTP search@using \textsl{FTP search}}% 325\smallskip\noindent 326Other \appl{ftp}-sites nearer to you can be found using \appl{Archie} at 327\url{http://hoohoo.ncsa.uiuc.edu/archie.html} or 328\url{http://www.pvv.unit.no/archie/} (faster) 329or more recent Web-searching tools such as \appl{FTP search} 330in \htmladdnormallink{Norway}{http://ftpsearch.ntnu.no/ftpsearch}. 331\begin{quote} 332\textbf{Warning: }% 333Some \appl{ftp}-sites may not carry the latest version. 334\end{quote} 335 336\index{source code!patches}% 337\smallskip\noindent 338Updates and patches are posted on the \latextohtml{} server at \patches\,. 339 340\bigskip 341\index{source code!developer's repository}\label{cvsrepos}% 342\noindent 343Finally there is the \latextohtml{} developers' CVS repository, at \CVSrepos\,.\\ 344The files to be found here are the most up-to-date with current developments, 345but they cannot be guaranteed to be fully reliable. New features may be 346still under development and not yet sufficiently tested for release. 347A daily updated compressed archive of the developers' work may be 348downloaded from \CVSlatest\,. 349 350\begin{quote} 351\textbf{Warning: }Use the files from this site at your own risk. 352\end{quote}% 353 354\htmlrule\index{source code!compressed}% 355\medskip\noindent 356Having obtained a compressed \fn{tar} version, save it into a file 357\fn{latex2html-98.1.tar.gz} say, 358then extract its contents with 359%begin{latexonly} 360\begin{small} 361%end{latexonly} 362\begin{verbatim} 363% gzip -d latex2html-98.1.tar.gz 364% tar xvf latex2html-98.1.tar 365\end{verbatim} 366%begin{latexonly} 367\end{small} 368%end{latexonly} 369\index{source code!listing}% 370 371\noindent 372You should then have the following: 373\begin{itemize} 374\item \fn{README} file; 375\cbversion{98.1}\begin{changebar}% 376\item \fn{Changes} index with latest changes; 377\item \strikeout{\fn{Changes.detailed}} (no longer supplied); 378\end{changebar} 379\item \fn{latex2html} \Perl{} script; 380\item \fn{texexpand} \Perl{} script\footnote{Initially written 381by \RobertThau, completely rewritten by \Rouchal\ and \Lippmann.}; 382\item \fn{latex2html.config} configuration file; 383\item \fn{install-test} \Perl{} script, for installation and testing; 384\item \fn{dot.latex2html-init} sample initialisation file; 385% 386\item \fn{texinputs/} subdirectory, containing various \LaTeX{} style-files; 387\item \fn{versions/} subdirectory, containing code for specific 388\texttt{HTML} versions; 389\item \fn{makemap} \Perl{} script; 390\item \fn{example/} subdirectory, containing the segmentation example, 391described in detail in 392\hyperref{a later section}{Section~}{}{Segmentation}; 393\item \fn{.dvipsrc} file;% 394\begin{htmlonly} 395\item \strikeout{\fn{pstogif} \Perl{} script} (no longer supplied); 396\end{htmlonly} 397\item \fn{pstoimg} \Perl{} script for image conversion (replaces \fn{pstogif}); 398\item \fn{configure-pstoimg} \Perl{} script for installation; 399\item \fn{local.pm} \Perl{} input file; 400\item \fn{icons.gif/} subdirectory, containing icons in GIF format; 401\item \fn{icons.png/} subdirectory, containing icons in PNG format; 402\item \fn{makeseg} \Perl{} script and examples to handle segmented 403documents via a generated Makefile, see \verb/makeseg.tex/; 404\cbversion{98.1}\begin{changebar} 405\item \fn{docs/foilhtml/} contains \LaTeX{} package and \Perl{} implementation by \Veytsman, 406to support \FoilTeX{} to \fn{HTML} translation; 407\item \fn{IndicTeX-HTML/} package that contains \Perl{} and 408 \LaTeX{} code for translating Indic\TeX{} documents (see README file); 409\end{changebar} 410\item \fn{docs/} subdirectory, containing the files needed to create 411a version of this manual; 412\item \fn{styles/} subdirectory, containing \Perl{} code for handling 413some style-files; 414\item \fn{tests/} contains some test documents for \latextohtml. 415\end{itemize} 416 417\htmlrule 418\tableofchildlinks 419 420\subsection{Installing \protect\latextohtml}% 421%\section{Installing \protect\latextohtml}% 422\index{installation!latex2html}\html{\\}% 423To install \latextohtml{} you \textbf{MUST} do the following: 424% 425\begin{enumerate} 426\item 427\textbf{Specify where \Perl{} is on your system}. \\ 428In each of the files \fn{latex2html}, \fn{texexpand}, \fn{pstoimg}, 429\fn{install-test} and \fn{makemap}, 430modify the first line saying where \Perl{} is on your system. 431 432\index{installation!without Perl@without \Perl{} shell scripts} 433 434\noindent 435Some system administrators do not allow \Perl{} programs to run as shell scripts. 436This means that you may not be able to run any of the above programs. 437\emph{In this case change the first line in each of these programs from } 438\html{\smallskip} 439%begin{latexonly} 440\begin{small} 441%end{latexonly} 442\verb|#!/usr/local/bin/perl | 443%begin{latexonly} 444\end{small} 445%end{latexonly} 446\html{\smallskip}\emph{to}: 447%begin{latexonly} 448\begin{small} 449%end{latexonly} 450\begin{verbatim} 451# *-*-perl-*-* 452 eval 'exec perl -S $0 "$@"' 453 if $running_under_some_shell; 454\end{verbatim} 455%begin{latexonly} 456\end{small} 457%end{latexonly} 458 459\index{installation!system installation}% 460\index{installation!LaTeX packages}% 461\item 462Copy the files to the destination directory.\\ 463Copy the contents of the \fn{texinputs/} directory to a place where they 464will be found by \LaTeX, or set up your \fn{TEXINPUTS} variable to point 465to that directory. 466 467\index{installation!check path-names}% 468\index{installation!graphics utilities}% 469\item 470\textbf{Run \fn{install-test}\,.} \\ 471This \Perl{} script will make some changes in the \fn{latex2html} file 472and then check whether the path-names to any external utilities 473required by \fn{latex2html} are correct. 474It will not actually install the external utilities. 475\fn{install-test} asks you whether to configure for GIF or 476\fn{PNG} image generation. 477Finally it creates the file \fn{local.pm} which houses pathnames for the 478external utilities determined earlier. 479 480\smallskip\noindent 481You might need to make \fn{install-test} executable before using it.\\ 482Use \verb/chmod +x install-test/ to do this. 483 484\smallskip\noindent 485You may also need to make the files \fn{pstogif}, 486\fn{texexpand}, \fn{configure-pstoimg} and \fn{latex2html} executable 487if \fn{install-test} fails to do it for you. 488 489\index{installation!system installation}% 490\item 491If you like so, copy or move the \fn{latex2html} executable script to 492some location outside the \fn{\$LATEX2HTMLDIR} directory. 493 494\index{installation!change configuration}% 495\index{installation!change defaults} 496\item 497You might want to edit \fn{latex2html.config} to reflect your needs. 498Read the instructions about \fn{\$ICONSERVER} carefully to make sure your 499\fn{HTML} documents will be displayed right via the Web server.\\ 500While you're at it you may want to change some of the default 501options in this file.\\ 502If you do a system installation for many users, only cope with general 503aspects; let the user override these with \verb|$HOME/.latex2html-init|. 504% 505\end{enumerate} 506 507 508Note that you \emph{must} run \fn{install-test} now; 509formerly you could manage without. 510If you want to reconfigure \latextohtml{} for GIF/PNG image 511generation, or because some of the external tools changed the location, 512simply rerun \fn{configure-pstoimg}. 513 514 515\medskip\htmlrule[50\% center] 516\noindent 517This is usually enough for the main installation, but you may also 518want to do some of the following, to ensure that advanced features 519of \latextohtml{} work correctly on your system: 520\begin{itemize} 521\index{html.sty@\texttt{html.sty} style-file!location}% 522\index{installation!environment variable}% 523\item 524\textbf{To use the new \LaTeX{} commands 525which are defined in \fn{html.sty}:}\\ 526Make sure that \LaTeX{} knows where the \fn{html.sty} file is, 527either by putting it in the same place as the other style-files on your system, 528or by changing your \fn{TEXINPUTS} shell environment variable, 529or by copying \fn{html.sty} into the same directory as your \LaTeX{} source file. 530 531The environment variable \fn{TEXINPUTS} is not to be confused with 532the \latextohtml{} installation variable \fn{\$TEXINPUTS} described next. 533\par 534 535\index{installation!input-path variable}% 536\item 537There is an installation variable in \fn{latex2html.config} 538called \fn{\$TEXINPUTS}, 539which tells \latextohtml{} where to look for \LaTeX{} style-files to process. 540It can also affect the input-path of \LaTeX{} when called by \latextohtml, 541unless the command \fn{latex} is really a script 542which overwrites the \fn{\$TEXINPUTS} variable 543prior to calling the real \fn{latex}. 544This variable is overridden by the environment variable of the same name 545if it is set. 546 547\index{installation!fonts-path variable}% 548\item 549The installation variable \fn{\$PK\_GENERATION} specifies which 550fonts are used in the generation of mathematical equations. A value 551of ``\texttt{0}'' causes the same fonts to be used as those for the default 552printer. Because they were designed for a printer of much greater 553resolution than the screen, equations will generally appear to be 554of a lower quality than is otherwise possible. To cause \latextohtml{} to 555dynamically generate fonts that are designed specifically for the 556screen, you should specify a value of ``\texttt{1}'' for this variable. 557If you do, then check to see whether your version of \texttt{dvips} 558supports the command-line option \Cs{mode}\,. If it does, 559then also set the installation variable \fn{\$DVIPS\_MODE} to 560a low resolution entry from \fn{modes.mf}, such as \fn{toshiba}. 561 562It may also be necessary to edit the \fn{MakeTeXPK} script, 563to recognise this mode at the appropriate resolution. 564 565If you have \PS\ fonts available for use with \LaTeX{} and \fn{dvips} 566then you can probably ignore the above complications and simply 567set \fn{\$PK\_GENERATION} to ``\texttt{0}'' 568and \fn{\$DVIPS\_MODE} to \texttt{\char34\char34} (the empty string). 569You must also make sure that \fn{gs} has the locations of the 570fonts recorded in its \fn{gs\_fonts.ps} file. This should already be the case 571where \appl{GS-Preview} is installed as the viewer for \texttt{.dvi}-files, 572using the \PS\ fonts. 573 574If \fn{dvips} does \emph{not} support the \Cs{mode} switch, 575then leave \fn{\$DVIPS\_MODE} undefined, and verify that the 576\fn{.dvipsrc} file points to the correct screen device and its 577resolution. 578 579\index{installation!filename-prefix}\label{autoprefix}% 580\item 581The installation variable \fn{\$AUTO\_PREFIX} 582allows the filename-prefix to be automatically set 583to the base filename-prefix of the document being translated. 584This can be especially useful for multiple-segment documents. 585 586%%JCL obsolete with Perl5 587%%\index{installation!Linux@\textsl{Linux} systems}% 588%%\item 589%%On certain \appl{Linux} systems it is necessary to uncomment 590%%the line ``\texttt{use GDBM\_File}'' in the \fn{latex2html} 591%%and \fn{install-test} scripts, to define the interface to the 592%%data\-base-management routines. 593 594\index{installation!makemap script@\texttt{makemap} script}% 595\index{CERN!image-map server}\index{NCSA!image-map server}% 596\item 597The \fn{makemap} script also has a configuration variable \fn{\$SERVER}, 598which must be set to either \texttt{CERN} or \texttt{NCSA}, 599depending on the type of Web-server you are using. 600 601 602\index{installation!initialization files}% 603\index{initialization file!per user}% 604\label{initfile}% 605\item \textbf{To set up different initialization files:}\\ 606For a ``per user'' initialization file, 607copy the file \fn{dot.latex2html-init} in the home directory 608of any user that wants it, modify it according to her preferences and 609rename it as \ \fn{.latex2html-init}. At runtime, both the 610\fn{latex2html.config} file and \fn{\$HOME/.latex2html-init} file will be 611loaded, but the latter will take precedence. 612 613\index{initialization file!per directory}% 614 615You can also set up a ``per directory'' initialization file by 616copying a version of \ \fn{.latex2html-init} in each directory you 617would like it to be effective. An initialization file 618\path{/X/Y/Z/.latex2html-init} will take precedence over all other 619initialization files if \path{/X/Y/Z} is the ``current directory'' when 620\latextohtml{} is invoked. 621 622\index{initialization file!incompatible with early versions}% 623\begin{quotation}\noindent 624\textbf{Warning: }% 625This initialization file is incompatible with 626any version of \latextohtml\ prior to \textsc{v96.1}\,. 627Users must either update this file in their home directory, 628or delete it altogether. 629\end{quotation} 630 631\index{installation!icons subdirectory@\texttt{icons/} subdirectory}% 632\item \label{icondir}% 633\textbf{To make your own local copies of the \latextohtml{} icons:} \\ 634Please copy the \fn{icons/} subdirectory to a 635place under your WWW tree 636where they can be served by your server. 637Then modify the value of the \fn{\$ICONSERVER} variable in 638\fn{latex2html.config} accordingly. 639\index{installation!local icons}% 640Alternatively, a local copy of the icons can be included within 641the subdirectory containing your completed \texttt{HTML} documents. 642This is most easily done using the \Cs{local\_icons} command-line switch, 643or by setting \fn{\$LOCAL\_ICONS} to ``\texttt{1}'' in \fn{latex2html.config} 644or within an initialization file, as described \htmlref{above}{initfile}. 645 646\index{Livermore, California }% 647\begin{quotation}\noindent 648\textbf{Warnings: }% 649If you cannot do that, bear in mind that these icons will have 650to travel from Livermore, California!!! 651Also note that several more icons were added in \textsc{v96.1} 652that were not present in earlier versions of \latextohtml. 653\end{quotation} 654 655\index{installation!create manual}% 656\index{documentation!test of installation}% 657\item 658\textbf{To make your own local copy of the \latextohtml{} 659documentation:} \\ 660This will also be a good test of your installation. 661% To do it run \latextohtml{} on the file \fn{docs/manual.tex}. 662% You will get better results if you run \LaTeX{} first on the 663% same file in order to create some auxiliary files. 664% 665\index{documentation!dvi version@\texttt{.dvi} version}% 666\noindent 667Firstly, to obtain the \texttt{.dvi} version for printing, 668from within the \fn{docs/} directory it is sufficient to type: 669 670%begin{latexonly} 671\begin{small} 672%end{latexonly} 673\texttt{ make manual.dvi} 674%begin{latexonly} 675\end{small} 676%end{latexonly} 677 678\noindent 679This initiates the following sequence of commands: 680%begin{latexonly} 681\begin{small} 682%end{latexonly} 683\begin{verbatim} 684latex manual.tex 685makeindex -s l2hidx.ist manual.idx 686makeindex -s l2hglo.ist -o manual.gls manual.glo 687latex manual.tex 688latex manual.tex 689\end{verbatim} 690%begin{latexonly} 691\end{small} 692%end{latexonly} 693\index{documentation!using makeindex@using \texttt{makeindex}}% 694\index{documentation!index and glossary}% 695...in which the two configuration files \fn{l2hidx.ist} and \fn{l2hglo.ist} 696for the \fn{makeindex} program, are used to create the index and glossary respectively. 697The 2nd run of \fn{latex} is needed to assimilate references, etc. 698and include the index and glossary.\html{\\}% 699\index{documentation!without makeindex@without \texttt{makeindex}}% 700\html{\\} 701(In case \fn{makeindex} is not available, a copy of its outputs \fn{manual.ind} 702and \fn{manual.gls} are included in the \fn{docs/} subdirectory, 703along with \fn{manual.aux}\,.)\html{\\} 704The 3rd run of \fn{latex} is needed to adjust page-numbering for the Index 705and Glossary within the Table-of-Contents. 706 707\noindent 708Next, the \texttt{HTML} version is obtained by typing: 709 710%begin{latexonly} 711\begin{small} 712%end{latexonly} 713\texttt{make manual.html} 714%begin{latexonly} 715\end{small} 716%end{latexonly} 717 718\noindent 719This initiates a series of calls to \latextohtml{} on the separate 720segments of the manual; 721the full manual is thus created as a ``segmented document'' 722(see \hyperref{a later section}{Section~}{}{Segmentation}). 723The whole process may take quite some time, 724as each segment needs to be processed at least twice, 725to collect the cross-references from other segments. 726 727\medskip 728\index{documentation!requirements}\html{\\}% 729\noindent 730The files necessary for correct typesetting of the manual to be 731found within the \fn{docs/} subdirectory. 732They are as follows: 733\begin{itemize} 734% 735\index{html.sty@\texttt{html.sty} style-file}% 736\index{documentation!style-files}% 737\item 738style-files: 739 \fn{l2hman.sty}, \fn{html.sty}, \fn{htmllist.sty}, \fn{justify.sty},\\ 740 \fn{changebar.sty} and \fn{url.sty} 741% 742\index{documentation!input files}% 743\item 744inputs: 745 \strikeout{\fn{changes.tex},} \fn{credits.tex}, \fn{features.tex}, \fn{hypextra.tex},\\ 746 \fn{licence.tex}, \fn{manhtml.tex}, \fn{manual.tex}, \fn{overview.tex},\\ 747 \fn{problems.tex}, \fn{support.tex} and \fn{userman.tex} 748% 749\index{documentation!graphics}% 750\item 751sub-directory: 752 \fn{psfiles/} containing \PS\ graphics 753 used in the printed version of this manual 754% 755\index{documentation!images}% 756\item 757images of small curved arrows: \fn{up.gif}, \fn{dn.gif} 758% 759\index{documentation!filename data}% 760\item 761filename data: 762 \fn{l2hfiles.dat} 763% 764\index{documentation!auxiliaries}% 765\item 766auxiliaries: 767 \fn{manual.aux}, \fn{manual.ind}, \fn{manual.gls} 768% 769\end{itemize} 770 771The last three can be derived from the others, but are included for convenience. 772\par 773 774\index{documentation!Changes section}% 775\item 776 777\textbf{To get a printed version of the `Changes' section: }\\ 778Due to the burgeoning size of the \fn{Changes} file with successive 779revisions of \latextohtml, the `Changes' section is no longer 780supported for the manual. 781Please refer to text file \fn{Changes} instead which is part of the 782distribution. 783 784 785\index{discussion group}\index{bugs!bug reports}% 786\item 787\textbf{To join the community of \latextohtml{} users:} \\ 788More information on a mailing list, discussion archives, bug reporting 789forms and more is available at 790\url{http://cbl.leeds.ac.uk/nikos/tex2html/doc/latex2html/latex2html.html} 791 792 793\cbversion{99.1}\begin{changebar} 794\index{\TeX{} Users Group (TUG)}\index{TUG!TUG: \TeX{} Users Group}% 795\item 796\latextohtml{} is actively supported by the international 797\TeX{} Users Group (\TUGurl). All users are encouraged to join \TUGurl, 798to keep up-to-date with the latest development in \TeX{}, \LaTeX, 799\latextohtml{} and related programs. 800Consult the TUG Web pages at \url{http://www.tug.org/}. 801\end{changebar} 802 803\end{itemize} 804 805 806\subsection[center]{Getting Support and More Information\label{support}}% 807%\section[center]{Getting Support and More Information\label{support}}% 808\index{support}% 809\index{support!mailing list}\index{mailing list!Argonne National Labs} 810 811\cbversion{99.1}\begin{changebar} 812A \htmladdnormallink{\latextohtml{} mailing list}% 813{mailto:latex2html-request@tug.org} 814is managed by the international \TeX{} User Group (\TUGurl). 815 816This mailing used was originally established at the Argonne National Labs, 817where it was based for several years. 818(Thanks to \IanFoster{} and \BobOlson, and others.) 819Since February 1999, it has been run by \TUGurl, thanks to 820\ArtOgawa{} and \RossMoore. 821\end{changebar} 822 823\smallskip\noindent 824To join send a message to: \Email{latex2html-request@tug.org } 825\index{mailing list!subscribe}\\ 826with the contents:~~\texttt{ subscribe }\latex{.} 827 828 829\smallskip\noindent 830To be removed from the list send a message to: 831\Email{latex2html-request@tug.org } 832\index{mailing list!unsubscribe}\\ 833with the contents:~~\texttt{ unsubscribe }\latex{.} 834 835 836\bigskip\noindent 837The mailing list also has a 838\htmladdnormallinkfoot{searchable online archive}{\ListURL}. 839It is recommended to start with this, 840to become familiar with the topics actually discussed, 841and to search for articles related to your own interests. 842 843\cbversion{99.1}\begin{changebar} 844An \htmladdnormallinkfoot {older archive} 845{\url{http://cbl.leeds.ac.uk/nikos/tex2html/doc/mail/mail.html}} 846may still be accessible, but is no longer actively maintained. 847\end{changebar} 848 849\bigskip 850Enjoy! 851 852