On 08/15/2013 01:39 PM, Wolfgang Engelmann wrote:
Am Thursday, 15. August 2013, 17:10:22 schrieb Wolfgang Engelmann:
> Am Thursday, 15. August 2013, 15:18:04 schrieb Richard Heck:
> > On 08/15/2013 06:47 AM, Wolfgang Engelmann wrote:
> > > I get this error:
> > >
> > > ! Package natbib Error: Bibliography not compatible with author-year
> > > citations.
> > >
> > > Check the bibliography entries for non-compliant syntax,
> > >
> > > or select author-year BibTeX style, e.g. plainnat
> > >
> > > Where do I choose the proposed style?
> >
> > The style is chosen from a dialog you will get if you click on the
> > bibliography inset itself.
>
> Thanks, Richard.
>
> If I choose vancouver (which is shown in the dropdown dialog)
>
> I get:
> ##########
> I'm skipping whatever remI'm skipping whatever remains of this command
> Illegal, another \bibstyle command---line 1699 of file
> PBR-20130815A.20.aux
>
> : \bibstyle
> :
> : {vancouver}
>
> I'm skipping whatever remains of this command
> I found no style file---while reading file PBR-20130815A.20.aux
> ains of this command
> Illegal, another \bibstyle command---line 1699 of file
> PBR-20130815A.20.aux
>
> : \bibstyle
> :
> : {vancouver}
>
> I'm skipping whatever remains of this command
> I found no style file---while reading file PBR-20130815A.20.aux
> ###########
>
> and the references in the pdf output are shown as ???
>
> What have I done wrongly? Do I have to remove the .aux file first,
> because lyx might have taken an older aux file? And where would I find
> this aux-file?
>
> If I export the document as .tex and run latex on it 3 times and
> afterward bibtex, I get:
>
> ############
>
> This is BibTeX, Version 0.99d (TeX Live 2012)
> The top-level auxiliary file: PBR-20130815A.20.aux
> I couldn't open style file srtnat.bst
> ---line 19 of file PBR-20130815A.20.aux
>
> : \bibstyle{srtnat
> :
> : }
I am sorry, I just noticed that I forgot to remove
\bibliographystyle{srtnat}
from the preamble. Removing it, gives me now the vancouver style in
the bibliography,
but where do I determine the citation style in the book text?
In Document>setting>Bibliography
I find only default (numerical), Natbib style Author-year and numerical.
I do not want numerical, but need actually the citation style also in
vancouver. How do I achieve this?
I am not sure this is possible. The documentation for the Vancouver
style says explicitly that it is a numerical style. You could try
selecting "Natbib" and then selecting "Author-year". It might work, but
then it might not.
Richard