I was having problems using \input in my document.  I had set my
environment variable TEXINPUTS to a set  of directories, and it seemed
they weren't getting searched.  The variable $TEXINPUTS inside
latex2html had the wrong value.  My fix (untested except on the one
broken file) is below.  I added the following  2 lines
# BES  added the following line.
    if($ENV{'TEXINPUTS'}) {$TEXINPUTS = $ENV{'TEXINPUTS'};}

The version of latex2html I am using is 98.2 beta6

Brian Smits


sub deal_with_texinputs {
# The dot precedes all, this let's local files override always.
# The dirs we want are given as parameter list.
#    die("You must have TEXINPUTS set at least to the TeX library to" .
# " work with LaTeX2HTML") unless ($ENV{'TEXINPUTS'}
#     || &find_executable('kpsewhich',$ENV{'PATH'}));
   # BES  added the following line.
    if($ENV{'TEXINPUTS'}) {$TEXINPUTS = $ENV{'TEXINPUTS'};}
    if(!$TEXINPUTS) { $TEXINPUTS = '.' }
    elsif ($TEXINPUTS =~ /^$envkey/) {
 $TEXINPUTS = '.'.$TEXINPUTS
    };
    if ($ROOTED) {$TEXINPUTS .= "$envkey$FIXEDDIR"}
    $TEXINPUTS = &absolutize_path($TEXINPUTS);
    $ENV{'TEXINPUTS'} =
join($envkey,".",@_,$TEXINPUTS,$ENV{'TEXINPUTS'});
}

Reply via email to