[LyX/master] Handle deleted BibTeX/Biblatex bibliographies
Juergen Spitzmueller
spitz at lyx.org
Fri Mar 6 12:31:25 UTC 2020
commit 339424ce0083693cb274a042d2460cec77104ff1
Author: Juergen Spitzmueller <spitz at lyx.org>
Date: Fri Mar 6 13:49:10 2020 +0100
Handle deleted BibTeX/Biblatex bibliographies
Since we cannot strike-out these, we output a placeholder when
show changes in output is active.
Fixes #11762
---
src/insets/InsetBibtex.cpp | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/src/insets/InsetBibtex.cpp b/src/insets/InsetBibtex.cpp
index e2b88ca..bf70c44 100644
--- a/src/insets/InsetBibtex.cpp
+++ b/src/insets/InsetBibtex.cpp
@@ -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")) {
More information about the lyx-cvs
mailing list