[EMAIL PROTECTED] wrote:
Dear All,
I'm using LyX 1.5 to write a thesis. I'm trying to get my in-text citations to look the
way I specified it in the "LyX:citation" window under Formatting, Citation
style (for example: Author (Year) or (Author, Year)), but whatever I do it comes out as
(number).
I use natbib Author-Year in Settings->Bibliography and tried to add
"\bibpunct{(}{)}{,}{a}{,}{,}" to my preamble and change the citation style to
different nat and apa styles, but nothing works.
Does anyone have an idea how to fix this?
First question: Are you using BibTeX? If you're entering your
bibliography using LyX's own bibliography environment, then you cannot
use author-year citations, for the simple reason that LaTeX has no way
of knowing which is the author and which is the year. You have to use
BibTeX if you want author-year citations.
If you are using BibTeX, then there is probably an error somewhere in
your BibTeX file, possibly a missing year for a certain entry. Anything
that throws off BibTeX's attempt to find years for all the entries will
force it back to numerical mode.
Richard