]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetCitation.cpp
Properly terminate command
[lyx.git] / src / insets / InsetCitation.cpp
index 401d0142b5cab1e410278d635b0c6b94ce839514..564ea5bb9a5e75b1b72516c4a2aa22bd2a8b5916 100644 (file)
@@ -445,6 +445,18 @@ docstring InsetCitation::basicLabel(bool for_xhtml) const
        return '[' + label + ']';
 }
 
+
+bool InsetCitation::forceLTR(OutputParams const & rp) const
+{
+       // We have to force LTR for numeric references
+       // [= bibliography, plain BibTeX, numeric natbib
+       // and biblatex]. Except for XeTeX/bidi. See #3005.
+       if (rp.useBidiPackage())
+               return false;
+       return (buffer().masterParams().citeEngine() == "basic"
+               || buffer().masterParams().citeEngineType() == ENGINE_TYPE_NUMERICAL);
+}
+
 docstring InsetCitation::screenLabel() const
 {
        return cache.screen_label;