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);