mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 14:45:27 +00:00
* Support LaTeX documents that have multiple bibliographies (using the
multibib package). svn path=/nixpkgs/trunk/; revision=13723
This commit is contained in:
parent
2fd7742470
commit
5689d7338e
|
@ -61,13 +61,18 @@ runLaTeX
|
|||
echo
|
||||
|
||||
|
||||
if grep -q '\\citation' $rootNameBase.aux; then
|
||||
echo "RUNNING BIBTEX..."
|
||||
bibtex --terse $rootNameBase
|
||||
cp $rootNameBase.bbl $out
|
||||
runNeeded=1
|
||||
echo
|
||||
fi
|
||||
# Run bibtex to process all bibliographies. There may be several when
|
||||
# we're using the multibib package.
|
||||
for auxFile in $(find . -name "*.aux"); do
|
||||
if grep -q '\\citation' $auxFile; then
|
||||
echo "RUNNING BIBTEX ON $auxFile..."
|
||||
auxBase=$(basename $auxFile .aux)
|
||||
bibtex --terse $auxBase
|
||||
cp $auxBase.bbl $out
|
||||
runNeeded=1
|
||||
echo
|
||||
fi
|
||||
done
|
||||
|
||||
|
||||
if test "$runNeeded"; then
|
||||
|
|
Loading…
Reference in a new issue