I am trying to use BibTeX for references. Here is my code.
\documentclass[11pt, a4paper]{article}
\usepackage[latin1]{inputenc}
\usepackage{graphicx}
\setcounter{secnumdepth}{0}
\usepackage{cite}
\title{Draft Project Laser Bubbles}
\author{PTB}
\begin{document}
\maketitle
\abstract{
Optofluidics
}
\section{Theory}
Blablabla said Nobody ~\cite{Nobody06}.
\bibliographystyle{plain}
\bibliography{mybib}{}
\end{document}
And mybib.bib
in the same folder:
@article{Nobody06,
author = "Nobody Jr",
title = "My Article",
year = "2006"
}
@article{mrx05,
author = "Mr. X",
Title = {Something Great},
publisher = "nob" # "ody"},
YEAR = 2005,
}
Error message:
This is BibTeX, Version 0.99d (MiKTeX 2.9)
The top-level auxiliary file: Project-PTB-Draft.aux
The style file: plain.bst
Database file #1: mybib.bib
Warning--I didn't find a database entry for "Nobody06"
(There was 1 warning)
I have tried latex bibtex latex latex
(it is my Quick Build at the moment). Any ideas? :)
First problem found: mybib.bib was in the wrong folder. facepalm. Put it in the right folder and it still doesn't work. The current error message:
Process started
This is BibTeX, Version 0.99d (MiKTeX 2.9) The top-level auxiliary file: Project-PTB-Draft.aux The style file: plain.bst Database file #1: mybib.bib You're missing an entry type---line 1 of file mybib.bib : @ :
Process exited normally
EDIT:
I fixed it! I deleted the old .bib file and made a new one in texmaker. Then it worked!
I guess an encoding problem or something :)
Thanks guys!
bibtex mybib
orbibtex mytexfile
? Because the first way doesn't work, you have to go the second way.bibtex
shows that the call is correct. I more think that PetterTB has a typo his the real document somewhere (for instance mismatched upper/lowercase)}
in the publisher of the second item, the bibliography command should be just\bibliography{mybib}
without the extra{}
. Otherwise the posted code compiles fine, just that bibtex warns "Warning--empty journal in Nobody06".