Rich Shepard wrote:

> On Mon, 17 Nov 2003, Angus Leeming wrote:
> 
>> Nonsense. Open the Layout->Document dialog. If using the Qt
>> frontend select the Bibliography pane. If using the xforms
>> frontend, select the Extra tab. Select "use natbib", choose between
>> "Author-Year" or "Numerical" and off you go. The citation dialog
>> will now allow you to select the style with which the citation is
>> displayed.
> 
> Angus,
> 
>   I missed this; thank you very much. However, ... now that "use
>   natlib" is
> checked, all the \bibitem entries generate at least one error each
> when I try to display it. So, I obviously have the wrong format in
> book.bib. I'll go do some more reading.

Rich, whilst you can indeed use natbib with the bibitems stored 
directly in the lyx file, I'd heartily recommend that you don't do 
this. Instead I'd recommend that you use BibTeX to manage your 
database. Why? Well --- for free --- you'll only list the references 
you use and you'll only need to compile the list once.

If you insist on storing the bibitems within the LyX file, then to 
use natbib properly you should ensure that the entries look something 
like this:

\bibitem[Bowes et~al.(1985)Bowes, Richardson, Cumming, and
  Horsfield]{Bowes:etal85}
C.L. Bowes, J.D. Richardson, G.~Cumming, and K.~Horsfield.
\newblock Effect of breathing pattern on gas mixing in a model with
  asymmetrical alveolar ducts.
\newblock 58:\penalty0 18--26, 1985.

Ie, the Key entry is 'Bowes:etal85' and the Label entry is 
'Bowes et~al.(1985)Bowes, Richardson, Cumming, and Horsfield'.

Contrast this to the BibTeX entry in the corresponding 
references.bib file:

@String{JAP = {J. Appl. Physiol.}}

@article{Bowes:etal85,
 author = {C.L. Bowes and J.D. Richardson and G. Cumming and K. 
Horsfield},
 title  = {Effect of breathing pattern on gas mixing in a model with
                  asymmetrical alveolar ducts},
 journal = JAP,
 year   = 1985,
 volume = 58,
 pages  = {18-26}
}

Note the complete absence of formatting information: BibteX will do 
all that for you in conjunction with natbib and the bibtex style file 
you choose to use.

Your call...

-- 
Angus

Reply via email to