Handle deleted BibTeX/Biblatex bibliographies

Since we cannot strike-out these, we output a placeholder when
show changes in output is active.

Fixes #11762
This commit is contained in:
Juergen Spitzmueller 2020-03-06 13:49:10 +01:00
parent d94b708a0f
commit 339424ce00

View File

@ -266,6 +266,15 @@ void InsetBibtex::latex(otexstream & os, OutputParams const & runparams) const
&& buffer().params().multibib == "child")
return;
if (runparams.inDeletedInset) {
// We cannot strike-out bibligraphies,
// so we just output a note.
os << "\\textbf{"
<< buffer().B_("[BIBLIOGRAPHY DELETED!]")
<< "}";
return;
}
string style = to_utf8(getParam("options")); // maybe empty! and with bibtotoc
string bibtotoc;
if (prefixIs(style, "bibtotoc")) {