Recently, I described a problem where l2h wasn't correctly finding
the .aux file. Here's a (brief) recap of the relevant part of the
work area:
./lib.tex the main document
./paper-letter/lib.aux the .aux file
./lib/ the l2h output dir
latex was run from "./paper-letter/" with ".." on TEXINPUTS, and
works just fine.
I start l2h from ".". It looks for lib.aux in "." (formed in two
different ways; see process_ext_file()), but that isn't useful.
To get process_ext_file() to behave the same way, I added the
following code just before the line "if ( $found ) {" in
process_ext_file(); it seems to do the trick and be the right thing
*if* TEXINPUTS gives absolute paths. l2h should probably adjust
$ENV{'TEXINPUTS'} to be absolute right from the start to avoid this
requirement.
# FLD: This is needed to find aux. files in locations that don't match
# the dir of the main source file.
my $texpath;
foreach $texpath (split /$envkey/, $ENV{'TEXINPUTS'}) {
$file = "$texpath$dd$extfile.$ext";
if ($found = (-f $file)) {
break;
}
}
-Fred
--
Fred L. Drake, Jr.
[EMAIL PROTECTED]
Corporation for National Research Initiatives
1895 Preston White Drive Reston, VA 20191