From 97c9ef71847b7bc64dbc56055a140afacae6028b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Uwe=20St=C3=B6hr?= Date: Sat, 23 May 2009 14:39:30 +0000 Subject: [PATCH] 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 --- src/insets/InsetNomencl.cpp | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/src/insets/InsetNomencl.cpp b/src/insets/InsetNomencl.cpp index 33c7366557..19ff3a23a1 100644 --- a/src/insets/InsetNomencl.cpp +++ b/src/insets/InsetNomencl.cpp @@ -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"); }