I sent a plea for help to this list a couple of days ago about being
unable to get latex2html to process the images.tex file properly.  I
got some very helpful suggestions from Ross Moore, but unfortunately I
still can't figure out what's going wrong.  I'm appending some more
detailed output to this message; I hope some kind soul will help me
decipher it!

(I'll summarize the problem I'm having first, and then I'll append the
full output from install-test and latex2html -debug .  If there's any
other information I should be providing, please let me know!)

The brief story: I'm trying to run latex2html-98.1p1 on a Linux Slackware
system.  I have netpbm-1mar1994.p1, ghostscript 3.33, dvips 5.58f,
teTeX, perl 5.004.  Everything seems to work OK when I install
latex2html, but when I try to run it on a simple test file containing
either a displayed equation or any inline math, it fails to 
process images.tex properly.  The specific error I get is 

>> Cannot find logfile ./images.log at /usr/local/bin/latex2html line 3372.

right after it's tried to execute

>> /usr/lib/teTeX/bin/latex ./images.tex

The strange thing is that, if I go into the appropriate directory and
execute that command myself, it works fine, creating both images.dvi
and images.log as it should.  I'm having trouble guessing why the
exact same command fails when the perl script tries to execute it, but
works fine when I execute it.

I'm sorry to bother you all with this, but I'm really stuck
and I could really use some expert help!

-Ted

------------------------------------------------------------------------------

Here's what happens when I run latex2html -debug on a simple file:

tmp% cat test.tex
\documentstyle{article}
\begin{document}
abcde
$$
\int_0^1x^2\,dx=17
$$
fghij
\end{document}
tmp% 
tmp% 
tmp% 
tmp% latex2html -debug test.tex

This is LaTeX2HTML Version 98.1p1 release (March 2nd, 1998)
originally 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 /usr/local/lib/latex2html/versions/html3_2.pl

 *** processing declarations ***
Starting at 905177105 seconds
OPENING /home/bunn/tmp/test.tex 


/usr/local/lib/latex2html/texexpand -debug -auto_exclude  -save_styles test/TMP/styles 
/home/bunn/tmp/test.tex > test/TMP/test
texexpand: TeX inputs are in:
texexpand:   .
texexpand:   .
texexpand:   /home/bunn/tmp
texexpand:   /home/bunn/tmp
texexpand:   .
texexpand:   /usr/lib/teTeX/texmf/tex//
texexpand: %--- Found style: \documentstyle{article}


 *** finished child process: #25440

 ***  `texexpand' done ***


 ***  database open ***

Loading /usr/local/lib/latex2html/styles/texdefs.perl...

Loading /usr/local/lib/latex2html/styles/article.perl
Reading ...
++
wrapping raw arg commands 

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

 *** translating preamble ***
..
 *** preamble done ***
;,;

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

Writing image file ...

/usr/lib/teTeX/bin/latex ./images.tex


/usr/lib/teTeX/bin/latex ./images.tex

 *** finished child process: #25447
Cannot find logfile ./images.log at /usr/local/bin/latex2html line 3372.
tmp% 



------------------------------------------------------------------------------

And here's the output of install-test:


/usr/local/lib/latex2html# ./install-test

This is install-test for LaTeX2HTML V98.1
=========================================

$LATEX2HTMLDIR of latex2html.config is not set up, we can do this now.
$LATEX2HTMLDIR will be used to host the release of LaTeX2HTML you unpacked
and is defined at the top of latex2html.config.
Before we continue, make sure that everything of LaTeX2HTML is there and that
you are *in* that directory.

Note: the latex2html script itself need not reside here, you can place it
elsewhere (e.g. in /usr/local/bin ) after install-test completes successfully.

What is the LaTeX2HTML directory?
 [/usr/local/lib/latex2html]: 
$LATEX2HTMLDIR will be "/usr/local/lib/latex2html"
1 ...changing LaTeX2HTML directory in latex2html.config was successful.

Main script installation was... 0 1 ...successful.
Testing availability of external programs...
Perl version 5.004 is OK. 
texexpand was found.
Setting up texexpand script...1 ...succeeded
Checking for availability of DBM or NDBM (Unix DataBase Management)...
DBM was found.
Checking if globbing works... globbing is ok.
DVIPS version 5.58 is OK.
pstoimg was found.
Setting up pstoimg script...0 1 ...succeeded
Setting up configure-pstoimg script...1 ...succeeded
Looking for latex...
latex was found.
Styles directory was found.

Main set-up done.
You may complete this set-up by configuring pstoimg now...proceed?
y

This is configure-pstoimg V96.2 by Marek Rouchal

Welcome to the Configuration of pstoimg!

You will be guided in few steps through the setup of pstoimg, the part of
latex2html that produces bitmap images from the LaTeX source.
Type `configure-pstoimg -h' for a brief usage information and a list of
user-definable options.


Hit return to proceed to the next configuration step.


Pstoimg can support both GIF and PNG format.
Please note that there are certain legal limitations on the use of the GIF
image format.

If you go on, pstoimg will be configured for GIF or PNG format.
You may reconfigure pstoimg at any time by saying configure-pstoimg.
Which format do you want to have supported?
Answer g (GIF) or p (PNG).

g
Configuring for GIF format.
Changing $IMAGE_TYPE in latex2html.config...succeeded

Hit return to proceed to the next configuration step.


Ghostscript Configuration
=========================

Ghostscript is "/usr/bin/gs", Version 3.33
Pstoimg will use the ppmraw device.
Ghostscript library path is /usr/lib/ghostscript

Hit return to proceed to the next configuration step.


Netpbm/Pbmplus Configuration
============================

ppmtogif is /usr/local/netpbm/ppmtogif
    ppmtogif understands -transparent. Good!
    ppmtogif understands -interlace. Good!
pnmcrop is /usr/local/netpbm/pnmcrop
pnmflip is /usr/local/netpbm/pnmflip
ppmquant is /usr/local/netpbm/ppmquant
pnmfile is /usr/local/netpbm/pnmfile
pnmcat is /usr/local/netpbm/pnmcat
pbmmake is /usr/local/netpbm/pbmmake

Hit return to proceed to the next configuration step.


Transparent/Interlaced Image Configuration
==========================================

Using netpbm to make transparent GIFs.
Using netpbm to make interlaced GIFs.

Hit return to proceed to the next configuration step.

Setup pstoimg
=============

Creating local configuration file...


Well done!
Pstoimg is now hopefully configured to run on your system.
Type `pstoimg -h' for a brief usage information.
Please specify the desired image format in the file latex2html.config.

/usr/local/lib/latex2html# 

Reply via email to