int InsetRef::latex(Buffer const &, odocstream & os,
OutputParams const &) const
{
- // Don't output p_["name"], this is only used in docbook
- InsetCommandParams p(getCmdName());
+ // We don't want to output p_["name"], since that is only used
+ // in docbook. So we construct new params, without it, and use that.
+ InsetCommandParams p("ref", getCmdName());
p["reference"] = getParam("reference");
os << escape(p.getCommand());
return 0;