- case LFUN_CAPTION_INSERT:
- return new InsetCaption(buf);
+ case LFUN_CAPTION_INSERT: {
+ string arg = cmd.getArg(0);
+ if (arg.empty())
+ arg = "Standard";
+ return new InsetCaption(buf, arg);
+ }
string tmptok = lex.getString();
inset.reset(new InsetWrap(buf, tmptok));
} else if (tmptok == "Caption") {
string tmptok = lex.getString();
inset.reset(new InsetWrap(buf, tmptok));
} else if (tmptok == "Caption") {
} else if (tmptok == "Index") {
inset.reset(new InsetIndex(buf, InsetIndexParams()));
} else if (tmptok == "FloatList") {
} else if (tmptok == "Index") {
inset.reset(new InsetIndex(buf, InsetIndexParams()));
} else if (tmptok == "FloatList") {