[Tex/LaTex] Bibtex “didn’t find a database entry”

bibtexwarnings

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?

Best Answer

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}
https://imathworks.com/tex/tex-latex-bibtex-didnt-find-a-database-entry/
imathworks.com
crawl=CC-MAIN-2022-40
23411
application/http; msgtype=response
sha1:DUWIXNIDJUWARBQUXATEKLYJAXE5YKC6
<urn:uuid:70daa8bc-0ee1-46df-ac7a-36b2cd28d879>
2022-09-28T19:23:51Z
45.77.5.190
text/html
sha1:G7MRINVLLW2ZH55ZDPH3QB4IF5UJU54M
<urn:uuid:f4d152e1-6de5-4724-9627-3c1ccaf77aae>
https://imathworks.com/tex/tex-latex-bibtex-didnt-find-a-database-entry/
response
<urn:uuid:67b47c82-7628-4af1-a69a-a78d35dba5ab>
isPartOf: CC-MAIN-2022-40
publisher: Common Crawl
description: Wide crawl of the web for September/October 2022
operator: Common Crawl Admin (info@commoncrawl.org)
hostname: ip-10-67-67-62
software: Apache Nutch 1.19 (modified, https://github.com/commoncrawl/nutch/)
robots: checked via crawler-commons 1.4-SNAPSHOT (https://github.com/crawler-commons/crawler-commons)
format: WARC File Format 1.1
conformsTo: https://iipc.github.io/warc-specifications/specifications/warc-format/warc-1.1/