diff --git a/src/insets/InsetCitation.cpp b/src/insets/InsetCitation.cpp index 260bd41bf2..45eaccf067 100644 --- a/src/insets/InsetCitation.cpp +++ b/src/insets/InsetCitation.cpp @@ -508,13 +508,16 @@ void InsetCitation::textString(odocstream & os) const // the \cite command is valid. Eg, the user has natbib enabled, inputs some // citations and then changes his mind, turning natbib support off. The output // should revert to \cite[]{} -int InsetCitation::latex(odocstream & os, OutputParams const &) const +int InsetCitation::latex(odocstream & os, OutputParams const & op) const { biblio::CiteEngine cite_engine = buffer().params().citeEngine(); // FIXME UNICODE docstring const cite_str = from_utf8( asValidLatexCommand(getCmdName(), cite_engine)); + if (op.moving_arg) + os << "\\protect"; + os << "\\" << cite_str; docstring const & before = getParam("before");