From a4d3fde9d5ac701748947cce8ed8830ab983ff92 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 5 Jul 2006 13:39:22 +0000 Subject: * Follow \bibliographystyle to find .bst files. svn path=/nixpkgs/trunk/; revision=5590 --- pkgs/misc/tex/nix/find-includes.pl | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pkgs/misc/tex/nix') 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 -- cgit 1.4.1