[For the following, I found an answer myself, but I didn't find the necessary extra step on any forums. Therefore, I shortly provide it in Q&A style.]
I have some custom formatting to tweak my biblatex
settings that I want LyX to use (via \DeclareFieldFormat
), but putting those in the Latex preamble (via Document->Settings->LaTeX Preamble) creates errors. (In my case, I want all titles to be Italic which makes using a footnote style and referring to titles and shorttitles within Text more legible.)
The problem seems that LyX loads biblatex
just before \begin{document}
as seen in exported LaTeX, but the custom LaTeX preamble before that. Tweaking biblatex
before loading biblatex
seems bad.
Errors are classic:
Undefined control sequence Missing \begin{document} You can't use `macro parameter character #' in horizontal mode.
etc.