I do not know what I am doing wrong but I have been stuck for about an hour now trying to get bibtex to work. Here is my latex code
\documentclass{article}
\begin{document}
hallo \cite{Saad:2003:IMS:829576}
\bibliographystyle{ieeetr}
\bibliography{bibfile.bib}
\end{document}
and here is my bibtex file
@book{Saad:2003:IMS:829576,
author = {Saad, Y.},
title = {Iterative Methods for Sparse Linear Systems},
year = {2003},
isbn = {0898715342},
edition = {2nd},
publisher = {Society for Industrial and Applied Mathematics},
address = {Philadelphia, PA, USA},
}
Now it is not citing correctly, I do have the bibfile in the right directory. Something strange is happening, I got a citation to work earlier for a different book but not for this one. Now I deleted this other book from the bibfile.bib file but it is still showing up in my bibliography?!?! And like I said I cannot reference Saad's book. I do not know why. I am using Texmaker and everytime I run the bibtex file and then build the pdf but it does not work.
Here is an imgur link to what the output is. I hope someone can help
The book in the reference list is the one I got the citation working for.
Best Answer
(Too long for a comment, hence posted as an answer.)
I encounter no problems if I replace the instruction
\bibliography{bibfile.bib}
with\bibliography{bibfile}
, i.e., if I omit the filename extension.The bibliography file ('bibfile.bib'):
The main tex file (say, 'test.tex'):