[Tex/LaTex] LyX: Citation shows up as [#] rather than (Author, Year)

bibtexnatbib

I've been having the same problem as this person. My citations show up as [#], and not in the desired format (Author, Year).

I have checked natbib as advised:
enter image description here

, and also in the citation menu itself:
enter image description here

However, the PDF prints still only give me [#]. Any ideas?

Edit: My BibTex is an export file from Mendeley, and looks quite normal.

Thank you so much in advance.

Best Answer

At least for the class "elsarticle" (Elsevier), the document class is loaded with a numbered citation style by default. For elsarticle, one adds the year by adding the "authoryear" option to the class by doing this in LyX: Document -> Settings -> Document Class -> Class options -> Custom: "authoryear"

Source: elsarticle documentation

Related Question