Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm having issues creating citations in my document. My text file states:

\documentclass[11pt]{article}

\usepackage[round]{natbib}

\begin{document}

Their long-term aid \citet{Haggarty:01}

\bibliographystyle{plainnat}
\bibliography{Quotes}

\end{document}

My bibtex file is:

\begin{thebibliography}

\bibitem[Haggarty and Pepin(2001)]{Haggarty:01}
L. Haggarty and B. Pepin.
\newblock An Investigation of Mathematics Textbooks and their use in English, French and German Classrooms.
\newblock \emph{Proceedings of the British Society for Research into Learning Mathematics}, 21\penalty0 (2):\penalty0 117--125, 2001.

\end{thebibliography}

When I latex, bibtex, latex, latex I get the following warning:

Warning--I didn't find a database entry for "Haggarty:01"

I've creating references like this before a long time ago, so I can't remember if there's anything else I should be doing. I've tried deleting the .aux file before running a fresh but nothing seems to help. Where am I going wrong?

share|improve this question

migrated from stackoverflow.com Sep 23 '13 at 4:53

This question came from our site for professional and enthusiast programmers.

    
Welcome to TeX.sx! Your post was migrated here from Stack Overflow. Please register on this site, too, and make sure that both accounts are associated with each other (by using the same OpenID), otherwise you won't be able to comment on or accept answers or edit your question. –  Werner Sep 23 '13 at 5:24
1  
That is not how a BibTeX file must be constructed. See the document Tame the Beast for information. Use texdoc ttb if you have TeX Live installed) or go to texdoc.net and search for 'ttb' there. –  jon Sep 23 '13 at 5:47
1  
Your "bibtex" file isn't in the format that BibTeX expects it to be in. Instead, it would appear to be in .bbl format, i.e., a file produced by a combination of BibTeX and LaTeX. –  Mico Sep 23 '13 at 6:32

1 Answer 1

Your file Quotes.bib should look like this:

@Article{Haggarty:01,
  author =   {Haggarty, L. and Pepin, B.},
  title =    {An Investigation of Mathematics Textbooks and their
                  use in English, French and German Classrooms},
  journal =  {Proceedings of the British Society for Research into
                  Learning Mathematics},
  year =     2001,
  volume =   21,
  number =   2,
  pages =    {117--125}
}

Compiling your main file with latex, bibtex, latex, latex gives:

Sample output

What you have used instead is something akin to the .bbl file that is the result of running latex followed by bibtex. Once you have a final list of references such a .bbl file could be included directly in to your main source to make a standand alone document of the form:

\documentclass[11pt]{article}

\usepackage[round]{natbib}

\begin{document}

Their long-term aid \citet{Haggarty:01}

%\bibliographystyle{plainnat}
%\bibliography{Quotes}
\begin{thebibliography}{1}
\providecommand{\natexlab}[1]{#1}
\providecommand{\url}[1]{\texttt{#1}}
\expandafter\ifx\csname urlstyle\endcsname\relax
  \providecommand{\doi}[1]{doi: #1}\else
  \providecommand{\doi}{doi: \begingroup \urlstyle{rm}\Url}\fi

\bibitem[Haggarty and Pepin(2001)]{Haggarty:01}
L.~Haggarty and B.~Pepin.
\newblock An investigation of mathematics textbooks and their use in english,
  french and german classrooms.
\newblock \emph{Proceedings of the British Society for Research into Learning
  Mathematics}, 21\penalty0 (2):\penalty0 117--125, 2001.

\end{thebibliography}

\end{document}
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.