mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 02:14:50 +00:00
Fix for bug 4670, by JMarc.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23974 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
ffaab7d150
commit
5ddb79e2a0
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user