[l2h] Odd little image problem

Michael L. Hall Michael L. Hall" <hall@galt.lanl.gov
Tue, 4 Apr 2000 16:28:40 -0600 (MDT)

I've found an odd little image problem and narrowed it down to a
small bit of code. Here's the source: 

 \usepackage{alltt} % <-- Line A
 \usepackage[dcucite]{harvard} % <-- Line B

\newcommand{\curl}{\mbox{$\vec{\nabla} \times$}}
 % <-- Line D




When I process this with LaTeX2HTML Version 99.2beta6 (1.42), it
doesn't generate an image for the sqrt(w). If I remove either Line A,
B, or D above, it works. Also, if I remove Line C, which is:

\newcommand{\curl}{\mbox{$\vec{\nabla} \times$}}

it works. Also, if I label Line C like this:

\newcommand{\curl}{\mbox{$\vec{\nabla} \times$}} % <-- Line C

it works.

I think what is happening is that something is generating a hard space
(i.e. "\ ") in images.tex:

\providecommand{\curl}{\mbox{$\mbox{$\stackrel{^{\mathstrut}\smash{\longrightarrow}}{\nabla}$} \times$}}\  %% <-- Line D

which confounds the LaTeX since it's in the preamble (Missing
\begin{document}), which messes up the first page of the image.dvi,
which messes up the image. 

Full output for the run is appended.


Dr. Michael L. Hall               <mailto:Hall@lanl.gov>               
Los Alamos National Laboratory    <http://www.lanl.gov/home/Hall>      
P.O. Box 1663, MS-D409            Research: computational physics, radiation 
Los Alamos, NM 87545              transport, heat pipes, numerical modeling, 
ph: 505-665-4312                  fluid dynamics, magnetohydrodynamics       

galt% latex2html -debug main
Note: Loading /home/hall/.latex2html-init
Note: Initialising with file: /home/hall/.latex2html-init
This is LaTeX2HTML Version 99.2beta6 (1.42)
by Nikos Drakos, Computer Based Learning Unit, University of Leeds.

Revised and extended by:
 Marcus Hennecke, Ross Moore, Herb Swan and others
...producing markup for HTML version 3.2  

Loading /opt/latex2html/versions/html3_2.pl

 *** processing declarations ***

Loading /opt/latex2html/versions/latin1.plStarting at 954886970 seconds

OPENING /tmp/l2hbug/main.tex 

Note: Working directory is /tmp/l2hbug/main
Note: Images will be generated in /tmp/l2h4493

Debug (syswait): Running "/opt/bin/perl /opt/latex2html/bin/texexpand -debug -auto_exclude -save_styles /tmp/l2hbug/main/TMP/styles -texinputs /tmp/l2hbug -out /tmp/l2hbug/main/TMP/main /tmp/l2hbug/main.tex"
 at /opt/bin/latex2html line 771
texexpand V99.2beta6 (Revision 1.10)

texexpand: LaTeX2HTML inputs are in:
texexpand:    .
texexpand:    /tmp/l2hbug
texexpand: %--- Found class:  \documentclass{book}
Debug (syswait): Finished child process: #4501
 at /opt/bin/latex2html line 771

Loading /opt/latex2html/styles/texdefs.perl...
Loading /opt/latex2html/styles/book.perl
Loading /opt/latex2html/styles/alltt.perl
Loading /opt/latex2html/styles/harvard.perlLoading /opt/latex2html/styles/natbib.perl

Loading /opt/latex2html/styles/babelbst.perl
Warning: No implementation found for option: `dcucite' for `harvard' package

Reading ...

Translating ...
0/1:top of main: for main.html

 *** translating preamble ***
Warning: No implementation found for option: `dcucite' for `harvard' package
 *** preamble done ***

1/1:sectionstar:.."About this document ..." for node1.html

Writing image file ...

/opt/Summertime_98.sparc/TeX/bin/latex ./images.tex
Debug (syswait): Running "/opt/Summertime_98.sparc/TeX/bin/latex ./images.tex"
 at /opt/bin/latex2html line 3714
This is TeX, Version 3.14159 (Web2C 7.2)
LaTeX2e <1997/12/01> patch level 2
Babel <v3.6i> and hyphenation patterns for american, german, loaded.

Document Class: book 1997/10/10 v1.3x Standard LaTeX document class

! LaTeX Error: Missing \begin{document}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
l.10 ...sh{\longrightarrow}}{\nabla}$} \times$}}\ 
                                                   %% <-- Line D
beta test version) (images.aux)

latex2htmlLength hsize=451.0pt

latex2htmlLength vsize=554.0pt

latex2htmlLength hoffset=0.0pt

latex2htmlLength voffset=0.0pt

latex2htmlLength topmargin=0.0pt

latex2htmlLength topskip=0.00003pt

latex2htmlLength headheight=0.0pt

latex2htmlLength headsep=0.0pt

latex2htmlLength parskip=0.0pt plus 1.0pt

latex2htmlLength oddsidemargin=35.0pt

latex2htmlLength evensidemargin=89.0pt

l2hSize :tex2html_wrap_inline31:8.50272pt::8.50272pt::16.26164pt.
[2] (images.aux) )
(see the transcript file for additional information)
Output written on images.dvi (2 pages, 584 bytes).
Transcript written on images.log.
Debug (syswait): Finished child process: #4507
 at /opt/bin/latex2html line 3714

 *** processing 1 images ***

Generating postscript images using dvips ...
/opt/Summertime_98.sparc/TeX/bin/dvips -S1 -i  -o/tmp/l2h4493/image ./images.dvi
Debug (syswait): Running "/opt/Summertime_98.sparc/TeX/bin/dvips -S1 -i  -o/tmp/l2h4493/image ./images.dvi
 at /opt/bin/latex2html line 3830
This is dvips(k) 5.78 Copyright 1998 Radical Eye Software (www.radicaleye.com)
' TeX output 2000.04.04:1622' -> /tmp/l2h4493/image
(-> /tmp/l2h4493/image001) <texc.pro><special.pro><color.pro>[1] 
(-> /tmp/l2h4493/image002) <texc.pro><special.pro><color.pro>[2] 
Debug (syswait): Finished child process: #4509
 at /opt/bin/latex2html line 3830
Converting image #1
Debug (syswait): Running "/opt/bin/perl /opt/latex2html/bin/pstoimg -type gif -debug -tmp /tmp/l2h4493 -discard -interlace -antialias -depth 1 -scale 1.6 -geometry 16x17 -margins 107,72 -crop abls -transparent -out img1.gif /tmp/l2h4493/image001.ps"
 at /opt/bin/latex2html line 4162
pstoimg V99.2beta6 (Revision 1.11, Perl 5.00503)
pstoimg: Temporary directory is /tmp/l2h4493
pstoimg: Processing /tmp/l2h4493/image001.ps
pstoimg: Page dimensions are 612x792
pstoimg: Running /opt/Summertime_98.sparc/bin/gs  -sDEVICE=ppmraw -g52x68  -r115  -sOutputFile=/tmp/l2h4493/p4510.pnm 
GS>-102 -695 translate
GS>(/tmp/l2h4493/image001.ps) run
Aladdin Ghostscript 3.33 (4/10/1995)
Copyright (C) 1995 Aladdin Enterprises, Menlo Park, CA.  All rights reserved.
This software comes with NO WARRANTY: see the file COPYING for details.
GS>>>showpage, press <return> to continue<<
GS>Running "/opt/Summertime_98.sparc/netpbm/bin/pnmcrop < /tmp/l2h4493/p4510.pnm | /opt/Summertime_98.sparc/netpbm/bin/pnmcrop -bot | /opt/Summertime_98.sparc/netpbm/bin/pnmcrop -l  > /tmp/l2h4493/p4510.t01"
pnmcrop: cropping 68 rows off the top
pnmcrop: cropping 51 cols off the left
pnmcrop: EOF / read error reading magic number
pstoimg: Error: "/opt/Summertime_98.sparc/netpbm/bin/pnmcrop < /tmp/l2h4493/p4510.pnm | /opt/Summertime_98.sparc/netpbm/bin/pnmcrop -bot | /opt/Summertime_98.sparc/netpbm/bin/pnmcrop -l  > /tmp/l2h4493/p4510.t01" failed: 
Debug (syswait): Finished child process: #4510
 at /opt/bin/latex2html line 4162

Error while converting image

Error: Cannot read 'img1.gif': No such file or directory

Doing section links ......
 *** Adding document-specific styles *** 

*********** WARNINGS ***********  

Failed to convert image /tmp/l2h4493/image001.ps

To resolve the image conversion problems please consult
the "Troubleshooting" section of your local User Manual
or follow the links to it at

Timing: 2 seconds