[Tex/LaTex] Problems with bibliography and references in TexWorks

bibliographiesbibtex

I am writing a report in Latex, and I have the references in a separate bib file and I reference them in my main document as \cite{xxx}.

I am using Texworks on Windows. After compiling the bib to generate a bbl, when I compile the tex file with: "pdflatex + MakeIndex + BibTex", I am able to see the pdf the report, but I do not see the Bibilography section at the end and do not see references to the bibliography, not even question marks instead of the proper references to the bibliography.

I include the bibliography by typing

 \bibliography{plain}

and

 \bibliography{"C:/Users/BibName"}

at the end of the tex file

I then tried pdflatex + bibtex + pdflatex + pdflatex. When I tried that, the 'References' section shows up at the end, but I do not see the references, such as

1. Reinhard, D.A. Case Study

I also do not see the citation in the paper

Here is the MWE:
The tex is:

\documentclass{article}  
\begin{document}  
Alpha particles \cite{example} (named after and denoted by the first letter in the
Greek alphabet,\[\alpha\]) consist of two protons and two neutrons bound
together.
This means that an particle is a helium nucleus. 

\bibliography{plain}
\bibliographystyle{plain}
\bibliography{BibName}

\end{document}

The bib is:

@article{example,
  author = {Knuth, Donald E.},
  year = {1986},
  title = {The \TeX book},
}

What am I doing wrong?

Best Answer

\bibliography{<file>} denotes the name of the <file>.bib that contains your BibTeX references, while \bibliographystyle{<bibstyle>} denotes the style you want your references displayed in. You clearly want one \bibliography only:

enter image description here

\documentclass{article}

\usepackage{filecontents}
\begin{filecontents*}{references.bib}
@article{example,
  author = {Knuth, Donald E.},
  year = {1986},
  title = {The {\TeX} book},
}
\end{filecontents*}

\begin{document}  
Alpha particles~\cite{example} (named after and denoted by the first letter in the
Greek alphabet,~$\alpha$) consist of two protons and two neutrons bound
together. This means that an particle is a helium nucleus. 

\bibliographystyle{plain}
\bibliography{references}

\end{document}
Related Question