\cite gives me question marks [duplicate]

I think I'm having a compiler problem. If I try this:

    \documentclass[11]{article}

\usepackage{cite}
\begin{document}

\bibliographystyle{plain}
\bibliography{mybib}

\end{document}


Having made a mybib.bib file as:

%%%%%%%%%%% mybib.bib %%%%%%%%%%%%%%%%%%%
@BOOK{HK,
AUTHOR={H. Kopka and P. W. Daly},
TITLE={A Guide to LaTeX},
YEAR=1999.
}
@BOOK{MG,
AUTHOR={M. Goossens and F. Mittelbach and A. Samarin},
TITLE={A LaTeX Companion},
YEAR=1994.
}
@ARTICLE{Pan,
AUTHOR={D. Pan},
TITLE={A Tutorial on MPEG/Audio Compression},
JOURNAL={IEEE Multimedia},
YEAR={1995},
VOLUME= {2} ,
PAGES={60-74},
MONTH={Summer}.
}
@INPROCEEDINGS{Boney96,
AUTHOR={L. Boney and A. H. Tewfik and K. N. Hamdy},
TITLE={Digital Watermarks for Audio Signals},
booktitle={Proceedings of the Third IEEE International Conference on
Multimedia},
PAGES={473-480},
MONTH={June},
YEAR={1996}.
}
%%%%%%%%%%%%% end %%%%%%%%%%%%%%%%%%%%%%


When I compile, I don't even generate a .pdf file. Why so?

marked as duplicate by Guido, Mico, Werner, Svend Tveskæg, JesseSep 25 '15 at 0:07

• Please see question tex.stackexchange.com/questions/63852/…. Possible duplicate! – Mensch Sep 24 '15 at 20:26
• For some reason, bibtex has not created a .bbl file for me. What does that mean? And how do I run bibtex? – CivilSigma Sep 24 '15 at 20:32
• The closing dot in your new example bib file is wrong, change it to comma! Not YEAR={1996}. but YEAR={1996}, – Mensch Sep 24 '15 at 20:57
• – Mensch Sep 24 '15 at 21:05

Please see the now compiling MWE:

\RequirePackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@misc{Silent.Spring,
author = {Wikipedia},
title  = {Silent Spring},
month  = {September},
year   = {2015},
url    = {https://en.wikipedia.org/wiki/Silent_Spring},
}
\end{filecontents*}

\documentclass[12]{article}
\usepackage{fullpage}
\usepackage{enumerate}
\usepackage{cite}

\begin{document}
\begin{enumerate}
\item The main finding of the book Silent Spring'' was that the
use of the use of DDT pesticides was killing birds and harming the
environment. Also, she described how DDT entered the food chain
and accumulated in the fatty tissues of the birds , animals and
humans and how that caused cancer and genetic
damage\cite{Silent.Spring}.
\end{enumerate}

\bibliographystyle{plain}
\bibliography{\jobname}
\end{document}


Package filecontents is used to have one code, including the bib file (texdoc filecontentson your terminal/console for more informations).

The key is not allowed to contain a blank: so I changed your Silent Spring to Silent.Spring (don't forget the \cite command!)

You opend an enumerate environment, but you didn't close it. I deleted these lines.

All these errors caused that your bib file could not be included. Now it should work. With MiKTeX I run pdflatex mwe.tex, then bibtex mwe, then two times pdflatex mwe.tex from the console / terminal with the result:

• I use TExMaker, how would I run those? – CivilSigma Sep 24 '15 at 20:59
• I noticed that \bibliographystyle{plain} is in a yellowish/orange color instead of blue like on many tutorial videos. Is that the problem? – CivilSigma Sep 24 '15 at 21:06