Re: bibentry and LyX?

2020-03-18 Thread Bernd

Found it: for some unknown reason, urldate is split up into urlyear,
urlmonth and urlday.

\AtBeginDocument{\AtEveryCitekey{\clearfield{urlyear}}}

works.

Bernd :)

-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: bibentry and LyX?

2020-03-18 Thread Bernd

Hello again...

When I tried this method with urldate instead of url, it did not work
(i.e. field was not supressed). Strangely, there were no error messages.

   \AtBeginDocument{\AtEveryCitekey{\clearfield{urldate}}}

I also checked for lastvisited and lastchecked, though my .bib file
contains urldate.

Do you have an idea what went wrong?

Regards,

Bernd


-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: bibentry and LyX?

2020-03-18 Thread Bernd

Am Mittwoch, den 18.03.2020, 18:44 +0100 schrieb Bernd:


in the preamble, it says "not defined" (which should not be the
case).


Either use it in the document body or in preamble within
\AtBeginDocument{
...
}

This is because biblatex needs to be loaded very late (after the user
preamble).

Jürgen


Document body does not work, that's what I tried out first.

But putting \AtEveryCitekey{\clearfield{url}} in a \AtBeginDocument{...} 
container works!

Thank you very much.

Kind regards,
Bernd

-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: bibentry and LyX?

2020-03-18 Thread Jürgen Spitzmüller
Am Mittwoch, den 18.03.2020, 18:44 +0100 schrieb Bernd:
> in the preamble, it says "not defined" (which should not be the
> case).

Either use it in the document body or in preamble within
\AtBeginDocument{
...
}

This is because biblatex needs to be loaded very late (after the user
preamble).

Jürgen


signature.asc
Description: This is a digitally signed message part
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: bibentry and LyX?

2020-03-18 Thread Bernd

Yes, I saw that, but if I put

   \AtEveryCitekey{\clearfield{url}}

in the preamble, it says "not defined" (which should not be the case).

I have to look closer into it.


Alternatively, if I use url=false in the biblatex options, can I somehow
toggle it to url=true for the bibliography?

-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: bibentry and LyX?

2020-03-18 Thread Jürgen Spitzmüller
Am Mittwoch, den 18.03.2020, 17:06 +0100 schrieb Bernd:
> But can it be automated?
> I want the URL only to show up in the dedicated bibliography at the
> end.
> Something like \AtEachCitekey or \AtEveryCitekey (or maybe
> \AddToCitekey if such a thing exists)...

\AtEveryCitekey exists. See biblatex manual.

Jürgen


signature.asc
Description: This is a digitally signed message part
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: bibentry and LyX?

2020-03-18 Thread Bernd

Am Dienstag, den 17.03.2020, 19:11 +0100 schrieb Bernd:

/Dear lyx-users, />//>/I want to use bibentry: />//>/> \usepackage{bibentry} />/> />/> 
\nobibliography />/> ... />/> \bibentry{xyz} />//>/But it says it misses biblatex (which is not true because 
it comes />/preloaded in LyX). /

bibentry is part of the natbib package. Its last release has been made
in 2006, before biblatex was even born.

These won't work together.


/However, I noticed that it is possible to do the same via 
/>/Insert/Literature/Complete. />/Can someone confirm that this is now the only 
possibility? /

It's at least how you do it with biblatex.


/While I have your attention, I want to suppress the URL part of the 
/>/reference. Is this possible at all? /

Just before the reference:
\AtNextCitekey{\clearfield{url}}

Jürgen


//>/Kind regards, />/Bernd /That works! :)


But can it be automated?
I want the URL only to show up in the dedicated bibliography at the end.
Something like \AtEachCitekey or \AtEveryCitekey (or maybe \AddToCitekey if 
such a thing exists)...

Kind regards,
Bernd

-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: bibentry and LyX?

2020-03-18 Thread Jürgen Spitzmüller
Am Dienstag, den 17.03.2020, 19:11 +0100 schrieb Bernd:
> Dear lyx-users,
> 
> I want to use bibentry:
> 
> > \usepackage{bibentry}
> > 
> > \nobibliography
> > ...
> > \bibentry{xyz}
> 
> But it says it misses biblatex (which is not true because it comes
> preloaded in LyX).

bibentry is part of the natbib package. Its last release has been made
in 2006, before biblatex was even born.

These won't work together.

> However, I noticed that it is possible to do the same via
> Insert/Literature/Complete.
> Can someone confirm that this is now the only possibility?

It's at least how you do it with biblatex.

> While I have your attention, I want to suppress the URL part of the
> reference. Is this possible at all?

Just before the reference:
\AtNextCitekey{\clearfield{url}}

Jürgen

> 
> Kind regards,
> Bernd


signature.asc
Description: This is a digitally signed message part
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: bibentry and LyX?

2020-03-17 Thread Bernd

Yes, my LyX has biblatex preloaded (with adaptable options), and
url=false works :) Thank you.

However, this works only globally.

I would like that url=false is just applied when I use \bibentry{xyz},
not in the proper bibliography at the end...

--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: bibentry and LyX?

2020-03-17 Thread Baris Erkus


On 17-Mar-20 9:11 PM, Bernd wrote:


Dear lyx-users,

I want to use bibentry:

\usepackage{bibentry}

\nobibliography

...

\bibentry{xyz}

But it says it misses biblatex (which is not true because it comes 
preloaded in LyX).



However, I noticed that it is possible to do the same via 
Insert/Literature/Complete.


Can someone confirm that this is now the only possibility?


While I have your attention, I want to suppress the URL part of the 
reference. Is this possible at all?



Kind regards,

Bernd


biblatex is not part of LyX; it is part of the LaTeX system you are 
using. LyX only provides the user interface/tools to activate and call 
biblatex. So you have to make sure your LaTeX system has the biblatex.


URL part can be suppressed with some biblatex option that can be stated 
in LyX. AFAIK, for URLs you should use 'url=false'


--
↓↓
Please bottom-post. Start your reply here:

-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


bibentry and LyX?

2020-03-17 Thread Bernd

Dear lyx-users,

I want to use bibentry:

   \usepackage{bibentry}

   \nobibliography

   ...

   \bibentry{xyz}

But it says it misses biblatex (which is not true because it comes
preloaded in LyX).


However, I noticed that it is possible to do the same via
Insert/Literature/Complete.

Can someone confirm that this is now the only possibility?


While I have your attention, I want to suppress the URL part of the
reference. Is this possible at all?


Kind regards,

Bernd

-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users