BibTeX, biblatex and bibernatbib package error

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
logosunny
Posts: 1
Joined: Thu Mar 13, 2014 10:32 am

natbib package error

Post by logosunny »

I used latex since from 1 year ago my previous MiKTeX version was 2.8 but as 2.8 version support is closed that's why I upgraded MiKTeX 2.9 .
after upgrading all things are fine but when I use natbib package for bibliography that time create some problem and given a error message that message is :

Code: Select all

...mand\Nat@force@Numbers()\Nat@force@Numbers
I don't understand about this error , I have tried more but I could not solve this error. and after upgrading MiKTeX that time author list don't show automatic sorting list that means when I use \cite{} that time show other documents citing list but don't show current document citing list .

I really like work in latex, but for this problem I could not work properly , I think all package working successfully but only all citing package specially natbib package don't work properly. :(

please let me know how can I solve this problem?
I write document in WinEdt7.1 version.

my code is given below

Code: Select all

\documentclass[11pt,a4paper]{article}
    \usepackage[T1]{fontenc}
    %\usepackage[latin1]{inputenc}
    \usepackage[margin=2cm]{geometry}
    %\usepackage{lmodern}
    \usepackage[square,authoryear,round]{natbib}
    \usepackage{url}    
    \usepackage{color}
    \usepackage[colorlinks=true,urlcolor=blue,citecolor=grey,linkcolor=red,bookmarks=true]{hyperref}
    
\begin{document}
\bibliographystyle{plainnat}
\begin{thebibliography}{99}
\addtolength{\leftmargin}{0.7in}
%\addtolength{\rightmargin}{0.3in} % sets up alignment with the following line.
\setlength{\itemindent}{-0.0in}

\bibitem[Lucas(1990)]{Lucasrobert90}
Lucas Robert, (1990) ,"why doesn't capital flow from rich to poor countries?" American Economic review 80(2), 92-96.
\href{http://en.wikipedia.org/wiki/Cognitive_radio}{[link]}

\bibitem[Caselli]{Casellifrancesco94}
Caselli, Francesco, "Accounting for Cross-Country Income Differences," in Philippe Aghion \& Steven Durlauf(ed.), Handbook of Economic Growth, edition 1, vlolume 1, Chapter 9, pages 679-741, Elsevier.\href{http://en.wikipedia.org/wiki/Cognitive_radio}{[link]}

\bibitem[Lagakos(2011)]{Lagakosdavid94}
Lagakos, David, Ben Moll Tommaso Porzio and Nancy Qian ,"Experience matters: Human Capital and Development Accounting", mimeo Princeton University, 2011.\href{http://en.wikipedia.org/wiki/Cognitive_radio}{[link]}

\bibitem[Klenow(1997)]{Klenowrodriguez97}
Klenow, P. and A. Rodriguez-Clare, "The Neoclassical Revival in Growth Economics: Has it Gone too Far?", NBER Macroeconomics Annual, pp. 73-114, 1997. \href{http://en.wikipedia.org/wiki/Cognitive_radio}{[link]}

\end{thebibliography}

\end{document}
Last edited by cgnieder on Fri Mar 14, 2014 10:30 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX books
kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

natbib package error

Post by kaiserkarl13 »

I also get this error:
! Package natbib Error: Bibliography not compatible with author-year citations.
The problem is that you need to provide an abbreviated version and a non-abbreviated version, like so:

Code: Select all

    \bibitem[Lucas(1990)Lucas]{Lucasrobert90}
    Lucas Robert, (1990) ,"why doesn't capital flow from rich to poor countries?" American Economic review 80(2), 92-96.
    \href{http://en.wikipedia.org/wiki/Cognitive_radio}{[link]}
As far as I can make out, you need the parentheses in there so Natbib knows which part is the year. The key comes after the closing parenthesis.

Why are you using the thebibliography environment instead of using BibTeX? If you use BibTeX, it will do all this for you. Incidentally, the use of \bibliographystyle without using BibTeX is useless; that command is solely for BibTeX's benefit.

Unrelated note: using " in LaTeX will, at best, produce "smart" right-hand quotes. If you want the left-hand quotes, use `` (right quotes with ''). Compare the output of the following, for example:

Code: Select all

\documentclass{article}
\begin{document}
First line ``quotes'' this way.\\
Second line "quotes" this way.\\
Third line ``quotes" this way.
\end{document}
Post Reply