* Follow \usepackage.

svn path=/nixpkgs/trunk/; revision=5436
This commit is contained in:
Eelco Dolstra 2006-06-14 10:11:21 +00:00
parent b315ca4871
commit 6121806948

View File

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