When using Biblatex and exporting to 2.2.x, I think we need to set the
bibliography processor to biber, right?

I'm guessing this wasn't caught before because a lot of testers have
biber set in preferences.

Attached is a patch. It works well for me, but I am not very familiar
with lyx2lyx.

Scott
diff --git a/lib/lyx2lyx/lyx_2_3.py b/lib/lyx2lyx/lyx_2_3.py
index edc5b1f..cb3204b 100644
--- a/lib/lyx2lyx/lyx_2_3.py
+++ b/lib/lyx2lyx/lyx_2_3.py
@@ -1222,6 +1222,11 @@ def revert_biblatex(document):
             bbxopts += "," + biblio_options
         bbxopts += "]"
         add_to_preamble(document, "\\usepackage" + bbxopts + "{biblatex}")
+        i = find_token(document.header, "\\bibtex_command", 0)
+        if i == -1:
+            document.warning("Malformed document! Missing \\bibtex_command")
+        else:
+            document.header[i] = "\\bibtex_command biber"
 
     #
     # Body

Attachment: signature.asc
Description: PGP signature

Reply via email to