On 1/4/19 9:20 PM, Scott Kostyshak wrote:
> On master, if I open our template acmart.lyx, I get the following
> message in the terminal:
>
>   TextClass.cpp (1497): The layout does not provide a list command for the 
> float `sidebar'. LyX will not be able to produce a float list.
>
> The Customization manual says:
>
>   This must be given if UsesFloatPkg is false
>
> which explains the terminal message (since indeed UsesFloatPkg is
> false). I searched for whether there exists a command, such as
> \listofsidebars, but could not find anything. If it doesn't show up in
> any \listofX, then what is the proper way to specify this in the layout?

I don't think there is one. Perhaps we should add a "NONE" option, or
something, and check for that. The attached might work.

Riki


diff --git a/src/frontends/qt4/Menus.cpp b/src/frontends/qt4/Menus.cpp
index 6690588ba4..f034a249b6 100644
--- a/src/frontends/qt4/Menus.cpp
+++ b/src/frontends/qt4/Menus.cpp
@@ -1180,7 +1180,7 @@ void MenuDefinition::expandFloatListInsert(Buffer const * 
buf)
                        // Different floats could declare the same ListCommand. 
We only
                        // want it on the list once, though.
                        string const & list_cmd = cit->second.listCommand();
-                       if (list_cmd.empty())
+                       if (list_cmd.empty() || list_cmd == "NONE")
                                // we do not know how to generate such a list
                                continue;
                        // This form of insert returns an iterator pointing to 
the newly
diff --git a/src/insets/InsetFloatList.cpp b/src/insets/InsetFloatList.cpp
index 6486b390a2..68ab9249fa 100644
--- a/src/insets/InsetFloatList.cpp
+++ b/src/insets/InsetFloatList.cpp
@@ -145,7 +145,7 @@ void InsetFloatList::latex(otexstream & os, OutputParams 
const &) const
                        os << "\\listof{" << getParam("type") << "}{"
                           << name << "}\n";
                } else {
-                       if (!fl.listCommand().empty())
+                       if (!fl.listCommand().empty() || fl.listCommand()== 
"NONE")
                                os << "\\" << from_ascii(fl.listCommand()) << 
"\n";
                        else
                                os << "%% "

Reply via email to