I am using the IOP template from here and the iopart-num package.
Here is iopdebug.bib:
@article{debugitem,
title = {This is the title},
author = {Surname, N and Lastname, F},
journal = {Journ},
volume = {123},
number = {1},
pages = {1--2},
year = {2000},
publisher = {Debugging}
}
and this is the minimal working example:
\documentclass[12pt,A4,final]{iopart}
\usepackage{iopams}
\usepackage[breaklinks=true,colorlinks=true,linkcolor=blue,urlcolor=blue,citecolor=blue]{hyperref}
\usepackage{citesort}
\begin{document}
\nocite{*}
Attempt to cite~\cite{debugitem}
\section*{References}
\bibliographystyle{iopart-num}
\bibliography{iopdebug.bib}
\end{document}
I run pdfLaTeX then BibTeX then pdfLaTeX and everything is normal up till here (the reference list displays properly). But when I run pdfLaTeX the third time, I get:
! Missing number, treated as zero.
<to be read again>
\let
l.10 Attempt to cite~\cite{debugitem}
However, if \cite{debugitem} is omitted then there is no error message.
