From 8f5af7c4537903fb5168ff20fd796fa1f5c8ae42 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Tue, 22 Apr 2014 09:32:48 +0200 Subject: [PATCH] Bibtopic requires styles files to be passed via argument Fixes: #9060 --- src/insets/InsetBibtex.cpp | 7 +++++-- status.21x | 3 +++ 2 files changed, 8 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 diff --git a/status.21x b/status.21x index 8e794d384c..697d5906ac 100644 --- a/status.21x +++ b/status.21x @@ -56,6 +56,9 @@ What's new - Fix output of deleted citations in change tracking mode (bug 8806). +- Fix handling of multiple bibliography styles when using sectioned bibliography + (bug 9060). + * USER INTERFACE -- 2.39.5