return true;
} else
return false;
+
+ case LFUN_NEWLINE_INSERT:
+ if (params_.subfloat) {
+ flag.setEnabled(false);
+ return true;
+ }
default:
return InsetCollapsable::getStatus(cur, cmd, flag);
if (runparams_in.moving_arg)
os << "\\protect";
os << "\\subfloat";
-
+
OutputParams rp = runparams_in;
+ rp.moving_arg = true;
docstring const caption = getCaption(rp);
if (!caption.empty()) {
os << caption;
}
os << '{';
+ // The main argument is the contents of the float. This is not a moving argument.
+ rp.moving_arg = false;
rp.inFloat = OutputParams::SUBFLOAT;
InsetText::latex(os, rp);
os << "}";
-
+
return;
}
OutputParams runparams(runparams_in);