]> git.lyx.org Git - features.git/commitdiff
tex2lyx: do not force default bibliography style if none is set
authorJuergen Spitzmueller <spitz@lyx.org>
Fri, 23 Feb 2018 06:43:19 +0000 (07:43 +0100)
committerRichard Heck <rgheck@lyx.org>
Sat, 17 Mar 2018 19:44:05 +0000 (15:44 -0400)
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
status.23x

index 56931ddc5594c9502cc995f0e4e0449f2954e7b0..a3206797f7b6eb964e174376c532ed2fdcc1fc8c 100644 (file)
@@ -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;
index 407f06c703763f42bc0c1f9cd9ad536e4267fb2b..e1cfddbe3f08d7ee43e20ee67344f43130b6aa91 100644 (file)
@@ -74,6 +74,8 @@ What's new
 
 * TEX2LYX
 
+- Do not force default bibliography style if none is set (bug 10673).
+
 
 * ADVANCED FIND AND REPLACE