I've been googling for hours and found many related issues but still don't understand what's gone wrong. i have run latex and bib at least 1000 times.
In the dropdown menu I use "pdflatex" for my latex file and "bibtex" for my bib file. I am using Texworks. Also, I should say this has worked previously on another computer.
here's my bib file:
@article{paper,
author={name},
title="{title}",
journal={J. Phys. Conf. Ser.},
volume={67},
number={},
pages={23},
year={2007}
}
and this is my latex file:
\documentclass[a4paper, 12pt]{article}
\begin{document}
\title{Autumn Term Report}
\author{myself}
\date{\today}
\maketitle
HI
\cite{paper}
\bibliographystyle{unsrt}
\bibliography{trial.bib}
\end{document}
and here's my bbl file (empty! so i think bibtex musn't be compiling)
\begin{thebibliography}{}
\end{thebibliography}
Also, in my output pdf i get a "References" section but the article is not listed there, and there's a question mark where i refer to it in the main body.
Best Answer
You have to use
\cite{paper}
without@
. Also, don't use the extension in\bibliography{trial}
. Having said this, you have to run this compile sequence assuming that your main file is namedmyfile.tex
Code (
myfile.tex
):