## LaTeX forum ⇒ BibTeX, biblatex and biber ⇒ Bibliography incompatible with Author-Year Citations

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
nicr
Posts: 16
Joined: Mon Apr 28, 2008 1:30 pm

### Bibliography incompatible with Author-Year Citations

Hi

I'm always receiving the following message:
Package natbib error: Bibliography not compatible with author-year citations.

My files are:
\input{settings}\begin{document}\include{texs/draft}\bibliographystyle{alpha-fr}\bibliography{biblio/essai}\end{document}

with draft:
future \cite{glunznz}

and "essai.bib":
@article{glunznz,   author = {Glunz, S. W. and Preu, R. and Biro, D.},   title = {Crystalline Silicon Solar Cells: State-of-the-Art and Future Developments},   year = {2012},   journal = {aaaaaaaaaaaaaaaa},   pages = {11 - 11}}

Tags:

Johannes_B
Site Moderator
Posts: 3763
Joined: Thu Nov 01, 2012 4:08 pm
A compilable minimal working example would be really great. Your bibliography style doesn't seem to work with natbib, see the documentation for more information.

Nevertheless, if you have to freedom to choose, i strongly advice you to use biblatex along with biber.

Best regards
Johannes

\begin{filecontents}{\jobname.bib}	@article{glunznz,		author = {Glunz, S. W. and Preu, R. and Biro, D.},		title = {Crystalline Silicon Solar Cells:			State-of-the-Art and Future Developments},		year = {2012},		journal = {aaaaaaaaaaaaaaaa},		pages = {11 - 11}	}\end{filecontents}\documentclass{article}\begin{document}\cite{glunznz}\bibliographystyle{alpha-fr}\bibliography{\jobname}\end{document}
Last edited by Johannes_B on Wed Sep 25, 2013 11:13 am, edited 1 time in total.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

localghost
Site Moderator
Posts: 9206
Joined: Fri Feb 02, 2007 12:06 pm
The used bibliography style is from the bib-fr package but seems not to be compatible. Use one of the natbib compatible styles instead that are provided by the package.

If you need a French bibliography, you might be interested in using babelbib or in Johannes' suggestion.

Thorsten
LaTeX Community Moderator

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1

Johannes_B
Site Moderator
Posts: 3763
Joined: Thu Nov 01, 2012 4:08 pm
I composed an MWE myself, please see my post above. I don't get any error or warning, can you confirm this?

EDIT reason: orthography
Last edited by Johannes_B on Wed Sep 25, 2013 6:35 pm, edited 1 time in total.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

nicr
Posts: 16
Joined: Mon Apr 28, 2008 1:30 pm