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
This commit is contained in:
Juergen Spitzmueller 2018-02-23 07:43:19 +01:00
parent 224e56c935
commit ed331bedd6

View File

@ -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;