Page Layoutnatbib | Problem with References

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
petman
Posts: 2
Joined: Mon Jan 16, 2012 9:00 pm

natbib | Problem with References

Post by petman »

I am fairly new to latex, and I have just tried adding a bibliography to my paper. I have created myrefs.bib and added all the references in the following format

Code: Select all

@article{sanders2004mapping,
  title={Mapping small-scale temperature and abundance structures in the core of the Perseus cluster},
  author={Sanders, JS and Fabian, AC and Allen, SW and Schmidt, RW},
  journal={Monthly Notices of the Royal Astronomical Society},
  volume={349},
  number={3},
  pages={952--972},
  year={2004},
  publisher={Wiley Online Library}
}
My .tex file goes as:

Code: Select all

\documentclass[12pt]{article}
\usepackage[T1]{fontenc}
\usepackage{natbib}

\begin{document}

some text with reference to \citeb{sanders2004mapping}

\bibliographystyle{plainnat}
\bibliography{myrefs}

\end{document}

And the error goes as

Code: Select all

Package natbib Warning: Citation `sanders2004mapping' on page 12 undefined on i
nput line 144.
(./Progress_Report.bbl)
Package natbib Warning: There were undefined citations.
[12] (./Progress_Report.aux) )
and here is the aux file

Code: Select all

\relax 
\citation{sanders2004mapping}
\bibstyle{plainnat}
\bibdata{myrefs}
This is after I have compiled latex bibtex latex latex as well and all that appears is [?] where there should be the citation. Help please?
Last edited by petman on Tue Jan 17, 2012 7:31 pm, edited 1 time in total.

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
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

natbib | Problem with References

Post by localghost »

I get an error regarding the \citeb command. Are you sure that this is a valid command according to the natbib manual? After inserting e. g. \citet the code compiles flawlessly for me.


Best regards and welcome to the board
Thorsten
petman
Posts: 2
Joined: Mon Jan 16, 2012 9:00 pm

Re: natbib | Problem with References

Post by petman »

Thanks. \citet seems to be working for me as well. That will do for me. Thank you!
Post Reply