BibTeX, biblatex and biberCannot use natbib

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
ynchoir
Posts: 6
Joined: Sat Aug 28, 2010 2:50 am

Cannot use natbib

Post by ynchoir »

Hi,

I am a beginner in bibTex and need to use Author-year stile for my citation. I am using MikTex2.8 and TeXnicCenter. Being unsure of whether natbib is installed in my PC, I went to CTAN and got "natbib.sty", "plainnat.bst", "unsrtnat.bst", "abbrvnat.bst" that are saved in corresponding directly.

Now, my code looks like this:

\usepackage{natbib}
\begin{document}

\citet{FF1996}

\bibliographystyle{plainnat}
\bibliography{mybib}
\end{document}

and mybib.bib contains

@ARTICLE{FF1996,
AUTHOR = {E. Fama and K. French},
TITLE = {Multifactor explanations of asset pricing anomalies},
JOURNAL = {Journal of Finance},
YEAR = {1996},
volume = {51},
pages = {55--84},
}

And I ran latex,bibtex,latex and latex. But for some reasons, I just get number [1] for the cite, not author-year style.

The output says
The style file: plain.bst

So my TeXnicCenter does not seem to recognize the fact that I am typing {plainnnat} here. I have been spending so much time just on bibliography, so any help would be much appreciated.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Cannot use natbib

Post by frabjous »

First, don't blame this on TeXnicCenter. It's not it's fault.

I cannot duplicate your problem. Just adding in a document class:

Code: Select all

\documentclass{article}
\usepackage{natbib}
\begin{document}

\citet{FF1996}

\bibliographystyle{plainnat}
\bibliography{mybib}
\end{document}
I get the following output.
test.png
test.png (7.76 KiB) Viewed 3702 times
If that's not what you're getting for this simple document, can you run it again, and post the .log file here?

Also, when you say the files are in "the corresponding directory", what directory exactly? Did you install natbib and the .bst files directly, or did you install them through the MikTeX package manager? Did you refresh the database afterwards?
ynchoir
Posts: 6
Joined: Sat Aug 28, 2010 2:50 am

Re: Cannot use natbib

Post by ynchoir »

Oh.., there was such a way to install the package!
After installing with MikTeX package manager again, it worked.
Sorry for such a basic question...
Thanks a lot.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Cannot use natbib

Post by localghost »

Now that the problem is solved, please be so kind and mark the topic accordingly as described in Section 3 of the Board Rules.
Post Reply