Andrew Barr wrote:
Hi all,

I have been using the java program Bib-It to put together my own
custom BibTeX style file.  It is working very well, but the problem I
am having is that I don't seem to be able to specify in-text citation
styles with Bib-It and I don't speak .bst.

Right now the in-text citations only list the first author and year.
I need it to list (FirstAuthor [& SecondAuthor], Year). For more than
two authors, (FirstAuthor \emph{et. al}, Year). I only want to use et
al. for in-text citations.  In the full reference list I need to list
all authors.

My .bst file is available here
https://webspace.utexas.edu/wab536/www/custombst_nat.bst

Any help is much appreciated.


The following quick fix might or might not work. In LyX, go to Document -> Settings... -> Bibliography, select Natbib, and pick Author-year as the Natbib style. When inserting a citation, pick the desired format in the drop-down list and check "Full author list" when there are exactly two authors. By default, I think this will insert two-author cites as "A. Smith and B. Jones, 1987". If you really want an ampersand rather than "and", edit line 87 of the .bst file, replacing 'and' with '\&'. (The backslash is important.)

That said, when I tested this on a small document, it inexplicably mangled some of the references. In one case, it cited Jones et al. for a sole-authored article. In another, it cited Jones 2000 for an article with three authors (no et al.). One (perfectly valid) BibTeX entry it refused to insert at all. So my suggestion would be to use the custom-bib LaTeX package to generate a new .bst file that does what you want.

/Paul

Reply via email to