I have Googled a lot about how to make it work. This is what I have now:
I have IEEEtran.bst, mybibfile.bib and test.tex all located in the same folder.
This is test.tex:
\documentclass{article}
\usepackage{cite}
\begin{document}
\cite{sample1234}Hello world.
\bibliographystyle{IEEEtran.bst}
\bibliography{mybibfile.bib}
\end{document}
This is mybibfile.bib:
@book{sample1234,
title={Handbook of Mathematical Functions with Formulas, Graphs, and Mathematical Tables},
author={Abramowitz, M. and Stegun, I. A.},
edition = {9th edition},
year={1964},
publisher={Dover}
}
And I press the "Typeset" green arrow button on the TeXworks editor in the following sequence:
tex, bib, tex, tex
After this, the generated "paper" looks like:
[?]Hello world.
Now there are these files in the same folder:
IEEEtran.bst
mybibfile.bib
mybibfile.log --> This file is empty
test.aux
test.log --> This file is not empty
test.pdf
test.synctex.gz
test.tex
My TeXworks version is 0.4.4, and the MiKTeX version is 2.9.
I spent a whole night on it.
EDIT: something suspicious in test.log:
(C:\TUT\BSHE\LATEXBIB\test.aux)
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Warning: Citation `sample1234' on page 1 undefined on input line 5.
No file test.bbl.
[1
{C:/ProgramData/MiKTeX/2.9/pdftex/config/pdftex.map}]
(C:\myfolder\test.aux)
LaTeX Warning: There were undefined references.
)