* Enable option to compress multiple spaces in the index.
svn path=/nixpkgs/trunk/; revision=4314
This commit is contained in:
parent
2748236699
commit
d68e567fe3
@ -7,6 +7,7 @@ rec {
|
|||||||
{ rootFile
|
{ rootFile
|
||||||
, generatePDF ? true
|
, generatePDF ? true
|
||||||
, extraFiles ? []
|
, extraFiles ? []
|
||||||
|
, compressBlanksInIndex ? true
|
||||||
}:
|
}:
|
||||||
|
|
||||||
pkgs.stdenv.mkDerivation {
|
pkgs.stdenv.mkDerivation {
|
||||||
@ -15,7 +16,8 @@ rec {
|
|||||||
builder = ./run-latex.sh;
|
builder = ./run-latex.sh;
|
||||||
copyIncludes = ./copy-includes.pl;
|
copyIncludes = ./copy-includes.pl;
|
||||||
|
|
||||||
inherit rootFile generatePDF extraFiles;
|
inherit rootFile generatePDF extraFiles
|
||||||
|
compressBlanksInIndex;
|
||||||
|
|
||||||
includes = import (findLaTeXIncludes {inherit rootFile;});
|
includes = import (findLaTeXIncludes {inherit rootFile;});
|
||||||
|
|
||||||
|
@ -56,7 +56,10 @@ echo
|
|||||||
|
|
||||||
if test -f $rootNameBase.idx; then
|
if test -f $rootNameBase.idx; then
|
||||||
echo "MAKING INDEX..."
|
echo "MAKING INDEX..."
|
||||||
makeindex $rootNameBase.idx
|
if test -n "$compressBlanksInIndex"; then
|
||||||
|
makeindexFlags="$makeindexFlags -c"
|
||||||
|
fi
|
||||||
|
makeindex $makeindexFlags $rootNameBase.idx
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user