Next: Bibliography
Up: No Title
Previous: No Title
#!/usr/local/bin/perlto
: # *-*-perl-*-* eval 'exec perl -S $0 "$@"' if $running_under_some_shell;
Also, make sure that the files pstoimg, texexpand and latex2html are executable; if necessary use the Unix chmod command to make them executable.
$DONT_INCLUDE = "$DONT_INCLUDE" . ":
<style file name>";
1; # This must be the last line
Another reason why LATEX2HTML might stop is that the LATEX source file itself contains raw TEX commands. In this case you may put such commands inside a latexonly environment.
97.1
The $VERBOSITY variable can be used
to create tracing messages, which may help to locate which command
or environment was being processed when everything stopped.
97.1
You can check which version of
Perl you are using by invoking Perl with the -v option.
While you wait for your technical support people to upgrade Perl
you could try invoking Perl from within LATEX2HTML with
the -d (debug) option. Then when LATEX2HTML starts, it will
immediately fall into the Perl debugger. To continue just press
`c<CR>'. (This option is available only if the
local version of Perl was specially compiled to allow it.)
97.1
Perhaps the processor has fallen into an infinite loop.
Usually there will be a bad definition, or other faulty source code,
which has caused this.
See an earlier problem for
how to set the $VERBOSITY variable to
help locate the bad code leading to this memory exhaustion.
97.1
As a last resort you may consider increasing the virtual memory
(swap space) of your machine. As an indication
of what you might be able to do on your machine,
a very long book (about 1000 printed pages) required about
24MB of RAM and over 150MB of swap space to convert on a local Sun Sparc ELC
running SunOS 4.1.3.
97.1
Much of this memory would have been consumed during image-generation.
This part of the processing is much more efficient in V97.1.
97.1
97.1
This can happen when an image is being created from a large piece
of LATEX source code. The image-reuse mechanism uses the code itself
to construct a database key. If too long, the key is invalid and may
crash DBM or NDBM. (In fact this error should no longer
occur in V97.1, so please advise the LATEX2HTML developers if
you get error messages of this kind.)
The message should contain the name of environment which caused the problem,
along with an identifying number; e.g. eqnarray268.
To find which exact piece of code this represents, run LATEX2HTML
again, using the -debug switch. Then look at the files
in the working directory named TMP-part1, TMP-part2, etc.
Use the unix grep command: grep 268 <dir>/TMP-*
to find that number in these files.
This should enable you to locate exactly where the problem occurs.
One solution may be to wrap the whole environment within
\begin{makeimage} and \end{makeimage}.
This will still cause the image to be created,
but uses just the environment name and number as the database key.
97.1
\~{}
.
%7E
as a ``tilde'' character.
In general the macro handling mechanism is inefficient and very
fragile. Avoid using macros if possible.
97.1
A greater range of macros definitions can now be handled,
especially if appropriate declarations are added to an initialization file.
97.1
{}
s;
\item[{[nested [angle [brackets] are ok]]}]
\begin{figure}
\epsffile{
<PostScript file name>}
\end{figure}
Another reason why this might happen is that your shell environment variable
TEXINPUTS may be undefined. This is not always
fatal but if you have problems you can use full
path-names for included PostScript files (even when the PostScript files are in the same directory as the LATEX source file).
Alternatively try setting TEXINPUTS to `.::'.
With some TEX and LATEX installations setting TEXINPUTS to
`.::' may cause problems in the normal operation of LATEX.
If you get errors such as LATEX complaining that it can no longer find
any style files then you must set TEXINPUTS to
"<path to your LaTeX installation>:."
if you want to use both LATEX and LATEX2HTML.
$DVIPS = "dvips";
$DVIPS = "dvips -r0";
1; # This is the last lineThis is a Perl quirk.
Of course you also have to make sure that LATEX knows where the html.sty file is, either by putting it in the same place as the other style-files on your system, or by changing your TEXINPUTS shell environment variable3.
\ttfamily fixed-width font. \begin{something} nothing here \end{something} default font.When processed by LATEX, the effect of the \tt command is delimited by the beginning of the environment ``something'', so that ``default font'' will appear in the default font. But LATEX2HTML will not recognise ``something'' as a delimiter and ``default font'' will appear in the wrong font.
To avoid this problem (until it is fixed) you may delimit the scope of
some commands explicitly using {}
's; i.e.
\texttt{fixed-width font}.
\begin{something}
nothing here
\end{something}
default font.
With earlier versions of LATEX2HTML you can fix it by
replacing the file pstoppm.ps in the
LATEX2HTML directory with a newer one that accompanies
Ghostscript 3.x.
Alternatively you can avoid using pstoppm.ps
by changing the way GS is invoked in the file pstogif,
using something like:
open (GS, "|$GS -q -sDEVICE=ppmraw -sOutputFile=$base.ppm $base.ps");
% image-test.tex \documentstyle{article} \begin{document} Some text followed by \fbox{some more text in a box}. \end{document}
You should see something like:
This is LaTeX2HTML Version (Wed Dec 1 1993) by Nikos Drakos,
Computer Based Learning Unit, University of Leeds.
OPENING /usr/cblelca/nikos/scripts/tex2html/tests/image-test.tex
Reading ....
Translating ...0/1.....1/1......
Generating images using latex ...
This is TeX, C Version 3.14t3
12222_images.tex
LaTeX Version 2.09 <7 Dec 1989>
Generating postscript images using dvips ...
This is dvips 5.521 Copyright 1986, 1993 Radical Eye Software
' TeX output 1993.12.03:1050' -> 12222_image
(-> 12222_image001) <tex.pro>[1]
Initializing... done.
Ghostscript 2.6.1 (5/28/93)
Copyright (C) 1990-1993 Aladdin Enterprises, Menlo Park, CA.
All rights reserved.
Ghostscript comes with NO WARRANTY: see the file COPYING for details.
GS>GS>Writing 12222_image001.ppm
GS>pnmcrop: cropping 119 rows off the top
pnmcrop: cropping 961 rows off the bottom
pnmcrop: cropping 208 cols off the left
pnmcrop: cropping 484 cols off the right
Doing section links .....
Done.
If there is a problem somewhere during the conversion from PostScript
to an image-format then you can try to do it manually,
so that you can find out where the problem is.
Here is one way to do it (Please use the pstoppm3.ps
file instead of pstoppm.ps if your version of Ghostscript is
later than 3.0):
cblelca% latex image-test.tex
This is TeX, C Version 3.14t3
(image-test.tex
LaTeX Version 2.09 <7 Dec 1989>
(/usr/TeX/tex.lib/inputs/paper.sty
Document Style `paper' <28 Nov 89>.
(/usr/TeX/tex.lib/inputs/pap11.sty)
(/usr/TeX/tex.lib/inputs/doublespace.sty)
(/usr/TeX/tex.lib/inputs/smaller.sty))
(/usr/TeX/tex.lib/inputs/psfig.sty
psfig/tex 1.9
)
No file image-test.aux.
[1] (image-test.aux) )
Output written on image-test.dvi (1 page, 652 bytes).
Transcript written on image-test.log.
cblelca% dvips -o image-test.ps image-test.dvi
This is dvips 5.519 Copyright 1986, 1993 Radical Eye Software
' TeX output 1993.11.12:1412' -> image-test.ps
<tex.pro>. [1]
cblelca% gs -dNODISPLAY pstoppm.ps
Initializing... done.
Ghostscript 2.6.1 (5/28/93)
Copyright (C) 1990-1993 Aladdin Enterprises, Menlo Park, CA.
All rights reserved.
Ghostscript comes with NO WARRANTY: see the file COPYING for details.
GS>(image-test) ppm1run
Writing image-test.ppm
GS>quit
cblelca% pnmcrop image-test.ppm >image-test.crop.ppm
pnmcrop: cropping 61 rows off the top
pnmcrop: cropping 110 rows off the bottom
pnmcrop: cropping 72 cols off the left
pnmcrop: cropping 72 cols off the right
cblelca% ppmtogif image-test.crop.ppm >image-test.gif
If you get into a mess try running LATEX2HTML with the options
-no_reuse and -no_images ; e.g.
cblipca% latex2html -no_reuse -no_images test.tex
This is LaTeX2HTML Version 95 (Tue Nov 29 1994) by Nikos Drakos,
Computer Based Learning Unit, University of Leeds.
OPENING /tmp_mnt/home/cblelca/nikos/tmp/test.tex
Cannot create directory /usr/cblelca/nikos/tmp/test: File exists
(r) Reuse the images in the old directory OR
(d) *** DELETE *** /usr/cblelca/nikos/tmp/test AND ITS CONTENTS OR
(q) Quit ?
:d
Reading ...
Processing macros ....+.
Reading test.aux ......................
Translating ...0/1........1/1.....
Writing image file ...
Doing section links .....
*********** WARNINGS ***********
If you are having problems displaying the correct images with Mosaic,
try selecting "Flush Image Cache" from "Options" in the menu-bar
and then reload the HTML file.
Done.
Then try to have a look in the file images.tex
(as described earlier) and perhaps fix it.
Once you are happy that images.tex is OK, run LATEX2HTML
again with the option -images_only .
The options -no_reuse , -no_images and -images_only
are available with LATEX2HTML version 0.7 or later.
Some problems in displaying the correct inlined images, may be due to the image caching mechanisms of your browser. With some browsers a simple ``Reload Current Document'' will be enough to refresh the images but with others (e.g. Mosaic) you may need to request for the cache to be refreshed. With Mosaic try selecting ``Flush Image Cache'' from ``Options'' in the menu-bar and then reload the HTML file.
{slides}
argument of the \documentclass command with
something like {article}
just before using LATEX2HTML.
One problem may be that all your slides will end up in the same HTML
file.
If you use lslide.sty you may get much better results
(use
to find this or any other style files).
Generated using the LaTeX2HTML