mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
Only write btUnits if we have a bibliography
Fixes: #11562
(cherry picked from commit b77094a497
)
This commit is contained in:
parent
264dfede0e
commit
b50949b472
@ -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;
|
||||
}
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user