General»natbib« Package doesn't work

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
jcmt_pico
Posts: 19
Joined: Fri Jun 18, 2010 12:39 am

»natbib« Package doesn't work

Post by jcmt_pico »

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
Last edited by jcmt_pico on Fri Aug 06, 2010 8:10 pm, edited 1 time in total.

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

Re: »natbib« Package doesn't work

Post by josephwright »

Post a minimal example of your code.
Joseph Wright
jcmt_pico
Posts: 19
Joined: Fri Jun 18, 2010 12:39 am

»natbib« Package doesn't work

Post by jcmt_pico »

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.... :(
josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

Re: »natbib« Package doesn't work

Post by josephwright »

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
jcmt_pico
Posts: 19
Joined: Fri Jun 18, 2010 12:39 am

»natbib« Package doesn't work

Post by jcmt_pico »

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....
Post Reply