Discussion:
Bibliography not compatible with author-year citations
(too old to reply)
rudra
2012-04-19 06:03:03 UTC
Permalink
Friends,
When citing a chapter with \citep and
natbib(\usepackage[square,authoryear]{natbib})
I am facing error:
! Package natbib Error: Bibliography not compatible with author-year
citations.

(natbib) Press <return> to continue in numerical
citation style.


See the natbib package documentation for explanation.
Type H <return> for immediate help.
...

l.62 ...mand\***@force@numbers{}\***@force@numbers

? h
Check the bibliography entries for non-compliant syntax,
or select author-year BibTeX style, e.g. plainnat

Though I am using pliannat :
\renewcommand{\bibname}{References}
\addcontentsline{toc}{section}{References}
\bibliography{biblio}
\bibliographystyle{plainnat}

I cannot make a MWE as i dont know where exactly the error is.
At aux file, line 62 is :
\providecommand\***@force@numbers{}\***@force@numbers

Please help.
I tried not loading natbib and use \cite only, but as usual, cite key
is often going out of margin. That is why i need natbib and citep.
please help
Marc van Dongen
2012-04-19 07:33:19 UTC
Permalink
Post by rudra
Friends,
When citing a chapter with \citep and
natbib(\usepackage[square,authoryear]{natbib})
! Package natbib Error: Bibliography not compatible with author-year
citations.
(natbib) Press <return> to continue in numerical
citation style.
See the natbib package documentation for explanation.
Type H <return> for immediate help.
...
? h
Check the bibliography entries for non-compliant syntax,
or select author-year BibTeX style, e.g. plainnat
\renewcommand{\bibname}{References}
\addcontentsline{toc}{section}{References}
\bibliography{biblio}
\bibliographystyle{plainnat}
I cannot make a MWE as i dont know where exactly the error is.
Please help.
I tried not loading natbib and use \cite only, but as usual, cite key
is often going out of margin. That is why i need natbib and citep.
please help
I'm not a regular natbib user and you don't post a minimal example, which why I suspect that your \bibliographystyle{plainnat} tells natbib to generate citations with numbers in the labels. This style isn't compatible with author-year style citations. I had a quick look at the natbib source and it seems to confirm my suspicion.

If natbib _really_ doesn't work for you, you may consider using biblatex.

Regards,


Marc van Dongen
b***@gmail.com
2012-04-19 11:03:30 UTC
Permalink
Dongen,
Thanks for your help.
It has been sorted out. The problem
l***@gmail.com
2018-05-20 13:23:08 UTC
Permalink
Post by b***@gmail.com
Dongen,
Thanks for your help.
It has been sorted out. The problem
how did you sort this ?
Peter Flynn
2018-05-20 20:55:52 UTC
Permalink
Post by l***@gmail.com
Post by b***@gmail.com
Dongen,
Thanks for your help.
It has been sorted out. The problem
how did you sort this ?
This is Usenet. If the message has been expired from your local
newsspool, you can use the archive at groups.google.com and find the
original posts and see what Marc wrote.


https://groups.google.com/forum/#!searchin/comp.text.tex/Bibliography$20not$20compatible$20with$20author-year$20citations%7Csort:date/comp.text.tex/xRgev5g_XUI/mJU4uoAJCQAJ

///Peter

Loading...