BibTeX, biblatex and biber ⇒ Cannot use natbib
Cannot use natbib
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.
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
Cannot use natbib
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}
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?
Re: Cannot use natbib
After installing with MikTeX package manager again, it worked.
Sorry for such a basic question...
Thanks a lot.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Cannot use natbib
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10