diff --git a/src/insets/InsetBibtex.cpp b/src/insets/InsetBibtex.cpp index f8ea110504..e85814a653 100644 --- a/src/insets/InsetBibtex.cpp +++ b/src/insets/InsetBibtex.cpp @@ -313,11 +313,8 @@ int InsetBibtex::latex(Buffer const & buffer, odocstream & os, } -vector const InsetBibtex::getFiles(Buffer const & buffer) const +vector const InsetBibtex::getFiles(Buffer const &) const { - FileName path(buffer.filePath()); - support::Path p(path); - vector vec; string tmp; diff --git a/src/insets/InsetCitation.cpp b/src/insets/InsetCitation.cpp index 23d90c7c70..e4e1d523fe 100644 --- a/src/insets/InsetCitation.cpp +++ b/src/insets/InsetCitation.cpp @@ -418,13 +418,16 @@ void InsetCitation::textString(Buffer const & buf, odocstream & os) const // citations and then changes his mind, turning natbib support off. The output // should revert to \cite[]{} int InsetCitation::latex(Buffer const & buffer, odocstream & os, - OutputParams const &) const + OutputParams const & op) const { biblio::CiteEngine cite_engine = buffer.params().getEngine(); // FIXME UNICODE docstring const cite_str = from_utf8( biblio::asValidLatexCommand(getCmdName(), cite_engine)); + if (op.moving_arg) + os << "\\protect"; + os << "\\" << cite_str; docstring const & before = getParam("before");