* \input{foo} should look for foo.tex by default.

svn path=/nixpkgs/trunk/; revision=10176
This commit is contained in:
Eelco Dolstra 2008-01-16 13:28:54 +00:00
parent 42e974a9fe
commit 777826925d

View File

@ -59,6 +59,7 @@ while (scalar @workset > 0) {
if (/\\input\{(.*)\}/) {
my $fn2 = $1;
die "absolute path! $fn2" if substr($fn2, 0, 1) eq "/";
push @workset, "$path/$fn2.tex";
push @workset, "$path/$fn2";
} elsif (/\\usepackage(\[.*\])?\{(.*)\}/) {
my $fn2 = $2;