Only write btUnits if we have a bibliography

Fixes: #11562
(cherry picked from commit b77094a497)
This commit is contained in:
Juergen Spitzmueller 2019-04-23 08:58:01 +02:00
parent 264dfede0e
commit b50949b472
2 changed files with 7 additions and 2 deletions

View File

@ -12,6 +12,7 @@
#include "output_latex.h"
#include "BiblioInfo.h"
#include "Buffer.h"
#include "BufferParams.h"
#include "Encoding.h"
@ -1374,7 +1375,8 @@ void latexParagraphs(Buffer const & buf,
if (multibib_child && mparams.useBiblatex())
os << "\\newrefsection";
else if (multibib_child && mparams.useBibtopic()) {
else if (multibib_child && mparams.useBibtopic()
&& !buf.masterBibInfo().empty()) {
os << "\\begin{btUnit}\n";
runparams.openbtUnit = true;
}
@ -1484,7 +1486,8 @@ void latexParagraphs(Buffer const & buf,
&& layout.latexname() == bparams.multibib) {
if (runparams.openbtUnit)
os << "\\end{btUnit}\n";
if (!bparams.useBiblatex()) {
if (!bparams.useBiblatex()
&& !buf.masterBibInfo().empty()) {
os << '\n' << "\\begin{btUnit}\n";
runparams.openbtUnit = true;
}

View File

@ -122,6 +122,8 @@ What's new
- Load required packages to correctly typeset unicode symbols entered
in math mode (bug 11526).
- Only write btUnits if we have a bibliography (bug 11562).
* USER INTERFACE