Hi there,
I'm writing a document were I need to cite using author-year style.
I read some post in the web, and I found that natbib package is the answer to this problem, but after implementing the notation I'm not able to compile my document.
author-year style
I'm writing the bibliography this way:
Skamarok, W. C., Klemp, J. B., Dudhia, J., Gill, D. O., Barker, D. M., Huang, X. Y., Wang, W., Powers, J. G.,
"A Description of the Advanced Research WRF Version 3 (NCAR Technical Note)".
NCAR Mesoscale and Microscale Meteorology Division;
2008
and I run the command \bibliographystyle{plainnat} before I star the bibliography
Does anybody know who to solve this
General ⇒ »natbib« Package doesn't work
»natbib« Package doesn't work
Last edited by jcmt_pico on Fri Aug 06, 2010 8:10 pm, edited 1 time in total.
NEW: TikZ book now 40% off at Amazon.com for a short time.

-
- Site Moderator
- Posts: 814
- Joined: Tue Jul 01, 2008 2:19 pm
»natbib« Package doesn't work
This is a minimal example of the code in my .tex file
\documentclass[dvips,12pt]{report}
\begin{multicols}{2}
\bibliography{biblio.bib}
\bibliographystyle{plain}
\end{multicols}
\end{document}
Now I'm using bibtex to create the bibliography, but that does not solve the problem
where is an example of a bibitem in the .bib file
@BOOK{gill,
title = {Atmosphere-Ocean Dynamics},
publisher = {Academic Press.},
year = {1982},
author = {A. E. Gill},
pages = {662 pp},
I'm still not able to use the natbib package....
\documentclass[dvips,12pt]{report}
\begin{multicols}{2}
\bibliography{biblio.bib}
\bibliographystyle{plain}
\end{multicols}
\end{document}
Now I'm using bibtex to create the bibliography, but that does not solve the problem
where is an example of a bibitem in the .bib file
@BOOK{gill,
title = {Atmosphere-Ocean Dynamics},
publisher = {Academic Press.},
year = {1982},
author = {A. E. Gill},
pages = {662 pp},
I'm still not able to use the natbib package....

-
- Site Moderator
- Posts: 814
- Joined: Tue Jul 01, 2008 2:19 pm
Re: »natbib« Package doesn't work
Your example will not compile, so I don't think it really helps. (Note that you are supposed to tag code with the appropriate environment.)
Joseph Wright
»natbib« Package doesn't work
I'm now able to compile the code.
The only problem was in the editor. I'm using Texmaker and it doesnot compile the bibtex.
I had to manually run the commands:
latex projecte_name.tex
bibtex reference_name.bib
latex projecte_name.tex
latex projecte_name.tex
To be able to compile my document...
My only problem now is abaout sorting the references list from A to Z....
The only problem was in the editor. I'm using Texmaker and it doesnot compile the bibtex.
I had to manually run the commands:
latex projecte_name.tex
bibtex reference_name.bib
latex projecte_name.tex
latex projecte_name.tex
To be able to compile my document...
My only problem now is abaout sorting the references list from A to Z....