Package natbib Error: Bibliography not compatible with author-year citations.

Package natbib Error: Bibliography not compatible with author-year citations.

Post by Hongyi Zha » Wed, 04 Mar 2009 22:58:34


Hi all,

When I upddate to the latest natbib version of miktex, I meet the
following errors when I run pdflatex - bibtex - pdflatex:

----------------------------
! 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.332 ...and\NAT@force@numbers{}\NAT@force@numbers

?
----------------------------

Any hints?

--
.: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :.
 
 
 

Package natbib Error: Bibliography not compatible with author-year citations.

Post by Lars Madse » Wed, 04 Mar 2009 23:16:12


full minimal example please

did you use bibtex or wrote the bibliography by hand?

did you use a style compatible with natbib?




--

/daleif (remove RTFSIGNATURE from email address)

LaTeX FAQ: http://www.yqcomputer.com/
LaTeX book: http://www.yqcomputer.com/ (in Danish)
Remember to post minimal examples, see URL below
http://www.yqcomputer.com/
http://www.yqcomputer.com/

 
 
 

Package natbib Error: Bibliography not compatible with author-year citations.

Post by Ulrike Fis » Wed, 04 Mar 2009 23:39:38

Am Tue, 03 Mar 2009 21:58:34 +0800 schrieb Hongyi Zhao:



Use natbib with the option "numbers".


--
Ulrike Fischer
 
 
 

Package natbib Error: Bibliography not compatible with author-year citations.

Post by Hongyi Zha » Wed, 04 Mar 2009 23:50:14

On Tue, 03 Mar 2009 15:16:12 +0100, Lars Madsen



See the following one:

----------------------
\listfiles

\documentclass[10pt]{article}

\usepackage[numbers,sort&compress]{natbib}
\let\asas=\cite
\renewcommand\cite[1]{\textsuperscript{\asas{#1}}}
\bibpunct{[}{]}{,}{a}{}{;}
\def\newblock{\hskip .11em plus .33em minus .07em}

\begin{document}

\cite{Engel1997}

%\bibliographystyle{BibTeX_Entries/unsrt_gbt}
%\bibliographystyle{unsrt}
%\bibliography{BibTeX_Entries/PhD_Bibliography}

\begin{thebibliography}{1}

\bibitem{Engel1997}
{Engel G E}.
\newblock {Linear Response and the Exchange-Correlation Hole within a
Screened-Exchange Density Functional Theory}.
\newblock {\em Phys. Rev. Lett.}, 78(18):3515, 1997.

\end{thebibliography}

\end{document}
----------------------

The above example works smoothly with the following natbib version:

natbib.sty 2006/09/06 7.4a (PWD)

But it'll failed to work with the following natbib version:

natbib.sty 2009/02/02 8.3 (PWD, AO)

In the latter case, the errors are:

----------------------
! 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.4 ...mmand\NAT@force@numbers{}\NAT@force@numbers

?
-----------------------

Regards,

--
.: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :.
 
 
 

Package natbib Error: Bibliography not compatible with author-year citations.

Post by Ulrike Fis » Thu, 05 Mar 2009 00:06:30

Am Tue, 03 Mar 2009 22:51:29 +0800 schrieb Hongyi Zhao:



But you are disabling it again with your \bibpunct setting. Use n
instead of a:

\bibpunct{[}{]}{,}{n}{}{;}


--
Ulrike Fischer
 
 
 

Package natbib Error: Bibliography not compatible with author-year citations.

Post by Hongyi Zha » Thu, 05 Mar 2009 00:19:07

On Tue, 3 Mar 2009 16:06:30 +0100, Ulrike Fischer < XXXX@XXXXX.COM >



Thanks.

But, why my example works with

natbib.sty 2006/09/06 7.4a (PWD)

while it'll failed to work with the following natbib version:

natbib.sty 2009/02/02 8.3 (PWD, AO).

--
.: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :.
 
 
 

Package natbib Error: Bibliography not compatible with author-year citations.

Post by Ulrike Fis » Thu, 05 Mar 2009 00:26:58

Am Tue, 03 Mar 2009 23:19:07 +0800 schrieb Hongyi Zhao:


I don't have an older version to look into, but I guess that natbib
always switched to numbers in this cases but did give only a warning
in older versions. Check the log-file.


--
Ulrike Fischer
 
 
 

Package natbib Error: Bibliography not compatible with author-year citations.

Post by Hongyi Zha » Thu, 05 Mar 2009 00:47:23

On Tue, 3 Mar 2009 16:26:58 +0100, Ulrike Fischer < XXXX@XXXXX.COM >



I've checked the logfile and find none warning.

--
.: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :.
 
 
 

Package natbib Error: Bibliography not compatible with author-year citations.

Post by Hongyi Zha » Thu, 05 Mar 2009 11:17:06

On Tue, 03 Mar 2009 12:13:30 -0600, Dan Luecking < XXXX@XXXXX.COM >



Any hints on the title of or link to this post?




--
.: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :.
 
 
 

Package natbib Error: Bibliography not compatible with author-year citations.

Post by Ulrike Fis » Thu, 05 Mar 2009 18:08:18

Am Wed, 04 Mar 2009 10:17:06 +0800 schrieb Hongyi Zhao:



Search google.groups for
natbib Bibliography not compatible with author-year


--
Ulrike Fischer
 
 
 

Package natbib Error: Bibliography not compatible with author-year citations.

Post by Dan Luecki » Fri, 06 Mar 2009 01:52:36

On Wed, 04 Mar 2009 10:17:06 +0800, Hongyi Zhao




I'm not sure how to specify a post generically, but here is
the google groups url, after searching for "natbib error"
and my name:

http://www.yqcomputer.com/ %22natbib+error%22+luecking#1dc17ea2e0a80601

And here is the message header of the start of the thread, as
I see it in my newsreader:

Newsgroups: comp.text.tex
Subject: Package Natbib Error (only new versions suffer from this)
Date: Thu, 19 Feb 2009 14:28:01 -0800 (PST)
Organization: http://www.yqcomputer.com/
Lines: 11
Message-ID:
< XXXX@XXXXX.COM >
NNTP-Posting-Host: 212.242.106.14


Dan
To reply by email, change LookInSig to luecking
 
 
 

Package natbib Error: Bibliography not compatible with author-year citations.

Post by Dominik Wa » Fri, 06 Mar 2009 02:27:03


Here you have the Message-ID for this post. BTW, one can also search for
a specific Message-ID in Google Groups. But smart newsreaders should go

link.

Regards,
Dominik.-
--
UK-TeX-FAQ: http://www.yqcomputer.com/
minimal example: http://www.yqcomputer.com/
biblatex styles: http://www.yqcomputer.com/
 
 
 

Package natbib Error: Bibliography not compatible with author-year citations.

Post by Hongyi Zha » Fri, 06 Mar 2009 12:41:37

On Wed, 4 Mar 2009 18:27:03 +0100, Dominik Wa?enhoven < XXXX@XXXXX.COM >





The main issue is that most of the newsservers will have retaining
duration for the messages. If the newsmaster has delete the
corresponding message, the above method will be futile.

In this case, the google group archive will be a good alternative way
due to its permanent backup for comp.text.tex.

--
.: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :.