[LyX/master] Handle bibtex error on biblatex-produced bbl file (#13360)

Juergen Spitzmueller spitz at lyx.org
Sun Sep 6 08:01:40 UTC 2026


commit 31a1aa730e9989b3c88c84e82d76f4e79a76f004
Author: Juergen Spitzmueller <spitz at lyx.org>
Date:   Sun Sep 6 10:00:57 2026 +0200

    Handle bibtex error on biblatex-produced bbl file (#13360)
    
    Extends on 723093895f8cf
---
 src/LaTeX.cpp | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/LaTeX.cpp b/src/LaTeX.cpp
index 4587021cdc..bb9687f59f 100644
--- a/src/LaTeX.cpp
+++ b/src/LaTeX.cpp
@@ -1341,6 +1341,13 @@ int LaTeX::scanLogFile(TeXErrors & terr)
 					// but we need ERROR_RERUN to get rid
 					// of the error in our results.
 					retval |= ERROR_RERUN;
+				if (contains(desc, "LaTeX Error: Missing 'biblatex' package"))
+					// The opposite case: a bbl file produced with biblatex
+					// has been found by bibtex (see #13360)
+					// bibtex will generate the correct one,
+					// but we need ERROR_RERUN to get rid
+					// of the error in our results.
+					retval |= ERROR_RERUN;
 				// get the line number:
 				int line = 0;
 				sscanf(tmp.c_str(), "l.%d", &line);


More information about the lyx-cvs mailing list