This is the simple Code I have written
Code: Select all
\documentclass[titlepage,a4paper,12pt]{report}
\begin{document}
I want to cite \cite{de2005multilevel} amd \cite{timmerman2006multilevel}
\bibliographystyle{plain}
\bibliography{Section2_ref}
\end{document}
and then I ran this
This is what I got as output
Code: Select all
This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian)
entering extended mode
(./error.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, finnish, french, basque, ngerman, german, german-x-2009-06-19, nger
man-x-2009-06-19, swedish, loaded.
(/usr/share/texmf-texlive/tex/latex/base/report.cls
Document Class: report 2007/10/19 v1.4h Standard LaTeX document class
(/usr/share/texmf-texlive/tex/latex/base/size12.clo)) (./error.aux)
LaTeX Warning: Citation `de2005multilevel' on page 1 undefined on input line 4.
LaTeX Warning: Citation `timmerman2006multilevel' on page 1 undefined on input
line 4.
No file error.bbl.
[1] (./error.aux)
LaTeX Warning: There were undefined references.
)
Output written on error.dvi (1 page, 304 bytes).
Transcript written on error.log.
Then I knew that you have to run the bibtex on the aux file also, so I ran this
and this is what I get
Code: Select all
This is BibTeX, Version 0.99c (TeX Live 2009/Debian)
The top-level auxiliary file: error.aux
The style file: plain.bst
I couldn't open database file Section2_ref.bib
---line 5 of file error.aux
: \bibdata{Section2_ref
: }
I'm skipping whatever remains of this command
I found no database files---while reading file error.aux
Warning--I didn't find a database entry for "de2005multilevel"
Warning--I didn't find a database entry for "timmerman2006multilevel"
(There were 2 error messages)
ajayram@pc228:~/Documents/MusicWork/ThesisReport/Part2-Methodology$ bibtex error.aux
This is BibTeX, Version 0.99c (TeX Live 2009/Debian)
The top-level auxiliary file: error.aux
The style file: plain.bst
I couldn't open database file Section2_ref.bib
---line 5 of file error.aux
: \bibdata{Section2_ref
: }
I'm skipping whatever remains of this command
I found no database files---while reading file error.aux
Warning--I didn't find a database entry for "de2005multilevel"
Warning--I didn't find a database entry for "timmerman2006multilevel"
(There were 2 error messages)
and in the bibtex file - Section2_ref.bib I have taken all the Bibtex entries and written them one below the other....