]> git.lyx.org Git - features.git/commitdiff
Bibtopic requires styles files to be passed via argument
authorJuergen Spitzmueller <spitz@lyx.org>
Tue, 22 Apr 2014 07:32:48 +0000 (09:32 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Tue, 22 Apr 2014 07:32:48 +0000 (09:32 +0200)
Fixes: #9060
src/insets/InsetBibtex.cpp
status.21x

index eaec7f9c22b6a375a4963eb86a7bb72df5a0de2b..c925bfe3cc9bd3c30c1366c4327a7cbf4837bc2d 100644 (file)
@@ -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
index 8e794d384c08883b4d9dfcc08d255f6d5e653c78..697d5906ac70156ee3a408619acafb183ca53f30 100644 (file)
@@ -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