summary refs log tree commit diff
path: root/pkgs/misc/tex/nix
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2006-07-05 13:39:22 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2006-07-05 13:39:22 +0000
commita4d3fde9d5ac701748947cce8ed8830ab983ff92 (patch)
treef76586fd7fa15efe998854ab23fa92ebe9f12f6f /pkgs/misc/tex/nix
parent506f113378f37d0638b6de9adbd3fce30a34d98c (diff)
downloadnixpkgs-a4d3fde9d5ac701748947cce8ed8830ab983ff92.tar
nixpkgs-a4d3fde9d5ac701748947cce8ed8830ab983ff92.tar.gz
nixpkgs-a4d3fde9d5ac701748947cce8ed8830ab983ff92.tar.bz2
nixpkgs-a4d3fde9d5ac701748947cce8ed8830ab983ff92.tar.lz
nixpkgs-a4d3fde9d5ac701748947cce8ed8830ab983ff92.tar.xz
nixpkgs-a4d3fde9d5ac701748947cce8ed8830ab983ff92.tar.zst
nixpkgs-a4d3fde9d5ac701748947cce8ed8830ab983ff92.zip
* Follow \bibliographystyle to find .bst files.
svn path=/nixpkgs/trunk/; revision=5590
Diffstat (limited to 'pkgs/misc/tex/nix')
-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 f3b5c495075..c85b6901924 100644
--- a/pkgs/misc/tex/nix/find-includes.pl
+++ b/pkgs/misc/tex/nix/find-includes.pl
@@ -54,6 +54,10 @@ while (scalar @workset > 0) {
 	    my $fn2 = $2;
             die "absolute path! $fn2" if substr($fn2, 0, 1) eq "/";
 	    push @workset, $path . "/" . $fn2 . ".cls";
+	} elsif (/\\bibliographystyle\{(.*)\}/) {
+	    my $fn2 = $1;
+            die "absolute path! $fn2" if substr($fn2, 0, 1) eq "/";
+	    push @workset, $path . "/" . $fn2 . ".bst";
 	} elsif (/\\bibliography\{(.*)\}/) {
             foreach my $bib (split /,/, $1) {
                 $bib =~ s/^\s+//; # remove leading / trailing whitespace