From a4ea543f2fbb0e42431a262017c56882331835ea Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Tue, 22 Apr 2014 09:25:58 +0200 Subject: [PATCH] Bibtopic requires styles files to be passed via argument Fixes: #9060 --- src/insets/InsetBibtex.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/insets/InsetBibtex.cpp b/src/insets/InsetBibtex.cpp index eaec7f9c22..c925bfe3cc 100644 --- a/src/insets/InsetBibtex.cpp +++ b/src/insets/InsetBibtex.cpp @@ -338,7 +338,7 @@ void InsetBibtex::latex(otexstream & os, OutputParams const & runparams) const if (style == "default") style = buffer().params().biblio_style; - if (!style.empty()) { + if (!style.empty() && !buffer().params().use_bibtopic) { string base = normalizeName(buffer(), runparams, style, ".bst"); FileName const try_in_file = makeAbsPath(base + ".bst", buffer().filePath()); @@ -377,7 +377,10 @@ void InsetBibtex::latex(otexstream & os, OutputParams const & runparams) const } if (!db_out.empty() && buffer().params().use_bibtopic) { - os << "\\begin{btSect}{" << db_out << "}\n"; + os << "\\begin{btSect}"; + if (!style.empty()) + os << "[" << style << "]"; + os << "{" << db_out << "}\n"; docstring btprint = getParam("btprint"); if (btprint.empty()) // default -- 2.39.2