Dear LyX Users,
I am using biblatex in LyX 2.3. I have added several options through
the standard approach (Document Settings - Bibliography - Citation
Style - Options; for example: hyperref=true), and this works fine.
However, there are some further tweaks I would like to make that as
far as I know cannot be done this way. For example, in plain LaTex, I
would add
\AtEveryBibitem{%
\clearlist{language}
}
after \usepackage[...]{biblatex}
I attempted to implement this via Document Settings - Preamble.
However, the problem I am having is that it appears that, by default,
LyX places
\usepackage[...]{biblatex}
\addbibresource{are-495.bib}
at the very end of the latex preamble.
As a result, options I add via Document Settings - Preamble appear
before \usepackage[...]{biblatex}, leading to an error message:
Undefined control sequence
\AtEveryBibitem
{%
The control sequence at the end of the top line...
I tried including the \AtEveryBibitem{%... material in the body of the
document using ERT, but this also lead to an error:
! LaTeX Error: Can be used only in preamble.
So, is there a way I can
A) Control where LyX puts \usepackage[...]{biblatex} in the latex preamble?
B) Add material to a specific part of the latex preamble (i.e., the
end, or at least after \usepackage[...]{biblatex})?
C) Pass options to biblatex a different way?
D) Other?
Many thanks,
BL