From ed331bedd6f7c412cbcf552c58da5d7b62846339 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Fri, 23 Feb 2018 07:43:19 +0100 Subject: [PATCH] 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 --- src/tex2lyx/text.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/tex2lyx/text.cpp b/src/tex2lyx/text.cpp index 036156927f..00affe0a31 100644 --- a/src/tex2lyx/text.cpp +++ b/src/tex2lyx/text.cpp @@ -2477,7 +2477,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; -- 2.39.5