Bibtopic requires styles files to be passed via argument

Fixes: #9060
This commit is contained in:
Juergen Spitzmueller 2014-04-22 09:25:58 +02:00
parent 5c32dc85d5
commit a4ea543f2f

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