I've downloaded the official IEEE LaTeX template but am having some trouble adding references in bibtex format.
For instance if I wanted to cite and reference this article, given as:
@article{Khoe:1994:CML:2288694.2294265,
author = {Khoe, G. -D.},
title = {Coherent multicarrier lightwave technology for flexible capacity networks},
journal = {Comm. Mag.},
issue_date = {March 1994},
volume = {32},
number = {3},
month = mar,
year = {1994},
issn = {0163-6804},
pages = {22--33},
numpages = {12},
url = {http://dx.doi.org/10.1109/35.267438},
doi = {10.1109/35.267438},
acmid = {2294265},
publisher = {IEEE Press},
address = {Piscataway, NJ, USA},
}
My attempt
- Created
references.bib - Populated it with the above reference
- Uncommented the
\usepackage{cite}from the IEEE template - Adding
~\cite{Khoe:1994:CML:2288694.2294265}to a random section Inserting this text just above
% An example of a floating figure using the graphicx package.\bibliography{references}{} \bibliographystyle{plain}
Error
! LaTeX Error: Something's wrong--perhaps a missing \item.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.3 \end{thebibliography}
?

\bibliographytakes only one argument (the name(s) of the bib file(s)), not two. Also, be sure to delete all aux files left over from previous compilations of your main .tex file before running latex, bibtex, latex, and latex once more. – Mico Jul 7 '12 at 18:25latex.ltx. On ca. line 6134 of that file, the macro\bibliographyis defined as having one argument. – Mico Jul 7 '12 at 18:43