InsetNomencl.cpp: remove the check to not undergo the predefined label width as discussed

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29833 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Uwe Stöhr 2009-05-23 14:39:30 +00:00
parent 2b8a1bb41b
commit 97c9ef7184

View File

@ -264,20 +264,12 @@ int InsetPrintNomencl::latex(odocstream & os, OutputParams const &) const
if (getParam("set_width") == "auto") {
docstring widest = nomenclWidest(buffer());
// Set the label width via nomencl's command \nomlabelwidth.
// This must be output before the command
// \printnomenclature
// This must be output before the command \printnomenclature
if (!widest.empty()) {
// assure that the width is never below the
// value predefined in nomencl.cfg
os << "\\newlength{\\symbwidth}\n";
os << "\\settowidth{\\symbwidth}{"
os << "\\settowidth{\\nomlabelwidth}{"
<< widest
<< "}\n";
os << "\\ifthenelse{%\n";
os << "\\lengthtest{\\symbwidth < \\nomlabelwidth}}\n";
os << " {\\setlength{\\symbwidth}{\\nomlabelwidth}}\n";
os << " {}\n";
lines += 6;
++lines;
}
} else if (getParam("set_width") == "custom") {
// custom length as optional arg of \printnomenclature
@ -299,8 +291,6 @@ int InsetPrintNomencl::latex(odocstream & os, OutputParams const &) const
void InsetPrintNomencl::validate(LaTeXFeatures & features) const
{
features.require("nomencl");
// needed for InsetPrintNomencl::latex
features.require("ifthen");
}