commit 46c48a5a3d53eef83f1d99cc20a334502411784e
Author: Juergen Spitzmueller <sp...@lyx.org>
Date:   Fri Feb 23 07:43:19 2018 +0100

    tex2lyx: do not force default bibliography style if none is set
    
    Some classes provide a \bibliographystyle, so we must not output any
    \bibliographystyle if none is set in the TeX file.
    
    Fixes: #10673
    (cherry picked from commit ed331bedd6f7c412cbcf552c58da5d7b62846339)
---
 src/tex2lyx/text.cpp |    4 +++-
 status.23x           |    2 ++
 2 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/tex2lyx/text.cpp b/src/tex2lyx/text.cpp
index 56931dd..a320679 100644
--- a/src/tex2lyx/text.cpp
+++ b/src/tex2lyx/text.cpp
@@ -2473,7 +2473,9 @@ void parse_text(Parser & p, ostream & os, unsigned flags, 
bool outer,
        // nocite{*} option (needed for bibtex inset)
        string btprint;
        string contentslineContent;
-       string bibliographystyle = "default";
+       // Some classes provide a \bibliographystyle, so do not output
+       // any if none is explicitly set.
+       string bibliographystyle;
        bool const use_natbib = isProvided("natbib");
        bool const use_jurabib = isProvided("jurabib");
        string last_env;
diff --git a/status.23x b/status.23x
index 407f06c..e1cfddb 100644
--- a/status.23x
+++ b/status.23x
@@ -74,6 +74,8 @@ What's new
 
 * TEX2LYX
 
+- Do not force default bibliography style if none is set (bug 10673).
+
 
 * ADVANCED FIND AND REPLACE
 

Reply via email to