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.
BibTeX, biblatex and biber ⇒ Cannot use natbib
NEW: TikZ book now 40% off at Amazon.com for a short time.
Cannot use natbib
First, don't blame this on TeXnicCenter. It's not it's fault.
I cannot duplicate your problem. Just adding in a document class:
I get the following output.
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?
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
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.
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
Now that the problem is solved, please be so kind and mark the topic accordingly as described in Section 3 of the Board Rules.
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10