summary refs log tree commit diff
path: root/pkgs/misc/tex
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2006-06-14 10:11:21 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2006-06-14 10:11:21 +0000
commit61218069486c28c328e3c8003ae0f28a33e6c384 (patch)
treef626ac88345d0c6fd2f041147b89604eab5783f7 /pkgs/misc/tex
parentb315ca4871188c16d491f1df51b5c1c1aaca2ea9 (diff)
downloadnixpkgs-61218069486c28c328e3c8003ae0f28a33e6c384.tar
nixpkgs-61218069486c28c328e3c8003ae0f28a33e6c384.tar.gz
nixpkgs-61218069486c28c328e3c8003ae0f28a33e6c384.tar.bz2
nixpkgs-61218069486c28c328e3c8003ae0f28a33e6c384.tar.lz
nixpkgs-61218069486c28c328e3c8003ae0f28a33e6c384.tar.xz
nixpkgs-61218069486c28c328e3c8003ae0f28a33e6c384.tar.zst
nixpkgs-61218069486c28c328e3c8003ae0f28a33e6c384.zip
* Follow \usepackage.
svn path=/nixpkgs/trunk/; revision=5436
Diffstat (limited to 'pkgs/misc/tex')
-rw-r--r--pkgs/misc/tex/nix/find-includes.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/misc/tex/nix/find-includes.pl b/pkgs/misc/tex/nix/find-includes.pl
index da10c4699af..f3b5c495075 100644
--- a/pkgs/misc/tex/nix/find-includes.pl
+++ b/pkgs/misc/tex/nix/find-includes.pl
@@ -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 "/";