BibTeX, biblatex and bibernatbib authoryear - problem in Lyx

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
rb
Posts: 2
Joined: Sun Apr 04, 2010 10:35 am

natbib authoryear - problem in Lyx

Post by rb »

Hi!
I've the following problem:
I'd like to list my references with natbib and authordate, like:
Author, date, ...
So I chose:
> Settings > Bibliography Settings > "Use NatBib"
> "Cite Style: Author-year".
and:
Insert > Citation Reference > Citation style: "Name-year".
However I am still getting brackets and numbers, like
[1] Author, date, ...

I am using the documentclass elsevier article.
I added a .tex file which contains an extraction of my article settings (see below).

I already recognized that \usepackage[authoryear]{natbib} doesn't show up in the .tex file.
So I added that line in the preamble. Unfortunately I am getting the message:
LaTeX Error: Option clash for package natbib.

discription:
\usepackage
{multicol}
The package natbib has already been loaded with options:
[numbers]
There has now been an attempt to load it with options
[authoryear]
Adding the global options:
numbers,authoryear
to your \documentclass declaration may fix this.
Try typing <return> to proceed.

Well I don't know how to add those global options to a lyx documentclass..
I am using the ecology.bst file from Patrick W. Daly

Thank you in advance!

rb
Attachments
bug1.tex
Tex file
(1.23 KiB) Downloaded 635 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

rb
Posts: 2
Joined: Sun Apr 04, 2010 10:35 am

Re: natbib authoryear - problem in Lyx

Post by rb »

Got it!
I just had to add "\bibpunct{(}{)}{,}{a}{,}{,}" in the preamble.
Thanks anyway.
rb
emmmily
Posts: 1
Joined: Wed Aug 15, 2012 9:48 pm

Re: natbib authoryear - problem in Lyx

Post by emmmily »

This was very useful for me, thanks!
Post Reply