4

This question already has an answer here:

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},
 PUBLISHER={Addison-Wesley},
 ADDRESS={Reading, MA},
 YEAR=1999.
 }
@BOOK{MG,
 AUTHOR={M. Goossens and F. Mittelbach and A. Samarin},
 TITLE={A LaTeX Companion},
 PUBLISHER={Addison-Wesley},
 ADDRESS={Reading, MA},
 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, Jesse Sep 25 '15 at 0:07

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

3

I corrected your given code.

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:

enter image description here

  • 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

Not the answer you're looking for? Browse other questions tagged or ask your own question.