Re: Customizing biblatex beyond Citation Style - Options field

2018-11-12 Thread Bert Lloyd
Jürgen,

Including this in Document Settings - LaTeX Preamble solved the problem.

Many thanks.

On Thu, Nov 8, 2018 at 4:27 PM Jürgen Spitzmüller  wrote:
>
>
>
> Am Do., 8. Nov. 2018, 17:13 hat Bert Lloyd  
> geschrieben:
>>
>> 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
>
>
> Use
>
> \AtBeginDocument{%
> \AtEveryBibitem{%
>   \clearlist{language}
> }
> }
>
> Jürgen
>
>>
>> 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


Re: Customizing biblatex beyond Citation Style - Options field

2018-11-08 Thread Jürgen Spitzmüller
Am Do., 8. Nov. 2018, 17:13 hat Bert Lloyd 
geschrieben:

> 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
>

Use

\AtBeginDocument{%
\AtEveryBibitem{%
  \clearlist{language}
}
}

Jürgen


> 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
>


Re: Customizing biblatex beyond Citation Style - Options field

2018-11-08 Thread Bert Lloyd
I suppose it would, but I would prefer to load biblatex through LyX in
the standard way if possible.
On Thu, Nov 8, 2018 at 12:04 PM Benedict Holland
 wrote:
>
> If you don't include biblatex in the UI (remove any bibliography settings in 
> Lyx), it shouldn't load anything. Of course, then it is on you to include 
> biblatex with all options and customizations you would like.
>
> Does that work?
>
> Thanks,
> ~Ben
>
> On Thu, Nov 8, 2018 at 11:13 AM Bert Lloyd  wrote:
>>
>> 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


Re: Customizing biblatex beyond Citation Style - Options field

2018-11-08 Thread Benedict Holland
If you don't include biblatex in the UI (remove any bibliography settings
in Lyx), it shouldn't load anything. Of course, then it is on you to
include biblatex with all options and customizations you would like.

Does that work?

Thanks,
~Ben

On Thu, Nov 8, 2018 at 11:13 AM Bert Lloyd  wrote:

> 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
>


Customizing biblatex beyond Citation Style - Options field

2018-11-08 Thread Bert Lloyd
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