string const cmd = getCmdName();
docstring const data = getEscapedLabel(rp);
+ if (rp.inulemcmd)
+ os << "\\mbox{";
+
if (cmd == "eqref" && buffer().params().use_refstyle) {
// we advertise this as printing "(n)", so we'll do that, at least
// for refstyle, since refstlye's own \eqref prints, by default,
p["reference"] = ref;
os << p.getCommand(rp);
}
+
+ if (rp.inulemcmd)
+ os << "}";
}