* 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
|
echo
|
||||||
|
|
||||||
|
|
||||||
if grep -q '\\citation' $rootNameBase.aux; then
|
# Run bibtex to process all bibliographies. There may be several when
|
||||||
echo "RUNNING BIBTEX..."
|
# we're using the multibib package.
|
||||||
bibtex --terse $rootNameBase
|
for auxFile in $(find . -name "*.aux"); do
|
||||||
cp $rootNameBase.bbl $out
|
if grep -q '\\citation' $auxFile; then
|
||||||
runNeeded=1
|
echo "RUNNING BIBTEX ON $auxFile..."
|
||||||
echo
|
auxBase=$(basename $auxFile .aux)
|
||||||
fi
|
bibtex --terse $auxBase
|
||||||
|
cp $auxBase.bbl $out
|
||||||
|
runNeeded=1
|
||||||
|
echo
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
|
||||||
if test "$runNeeded"; then
|
if test "$runNeeded"; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user