polyglossia loaded after biblatex

Wolfgang Engelmann engelmann at uni-tuebingen.de
Wed Dec 8 07:58:45 UTC 2021



Am 08.12.21 um 08:25 schrieb Jürgen Spitzmüller:
> Am Mittwoch, dem 08.12.2021 um 07:47 +0100 schrieb Wolfgang Engelmann:
>> Hi,
>> i get an error
>> ! Package biblatex Error: 'polyglossia' loaded after biblatex.
>>
>> However, in the tex file it comes BEFORE the biblatex
>>
>> \usepackage{color}
>> \definecolor{fg}{rgb}{0.000000,0.000000,0.000000}
>> \definecolor{bg}{rgb}{0.980392,0.941176,0.901961}
>> \pagecolor{bg}
>> \usepackage{polyglossia}
>> \setdefaultlanguage[variant=british]{english}
>> \usepackage[style=biblatex-spbasic]{biblatex}
>> \def\lyxlock{}
>>
>> I am not sure were in the LyX file polyglossia is set;
>> should be another name.
>>
>> I use Komascript book style, Debian, Lyx 2.4.0 dev
>>
>> Question: Were in the lyx file can I correct the error?
> 
> Do you load biblatex, or polyglossia, manually in the preamble? LyX
> should load the two packages in the correct order.
> 
> Jürgen
> 

My preamble:

\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
%%\setmainlanguage{english}
%\usepackage{biblatex}
%biblatex-spbasic Herbert Voss
\usepackage{xurl}
\usepackage[style=biblatex-spbasic]{biblatex}
\usepackage{libertinus-otf}}
.... more without relevance to the question

  Do you need also the selected stuff in the DOCUMENTS?

This might be relevant?
from
https://wiki.lyx.org/BibTeX/Biblatex).#toc8
Using Biblatex with polyglossia (XeTeX or LuaTeX with non-TeX fonts)

If you use the polyglossia language package, you will need to manually 
load the polyglossia package and set the default language manually in 
the preamble just before the \usepackage of biblatex, as follows:
\usepackage{polyglossia}
\setdefaultlanguage{english}
Substitute english with the main language of your document.

Thanks
Wolfgang


More information about the lyx-users mailing list