Bibtopic requires styles files to be passed via argument

Fixes: #9060
This commit is contained in:
Juergen Spitzmueller 2014-04-22 09:32:48 +02:00
parent 85cdab36c2
commit 8f5af7c453
2 changed files with 8 additions and 2 deletions

View 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

View 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