I am trying to make a Harvard style bibliography, using bibtex and the package natbib, for a journal which requires it, but the online facility I have to use won't take the .bib to process it. So I have cut and paste the contents of the .bbl file where the input command for the bibliography would have been.
This processes runs once quite happily, but you have to do it twice, and the second time, I get the error:
********
./filename: Improper alphabetic constant
<to be read again>
\protect
l.7 blah\cite{paper1,paper2}
?
and typing h for help gives
A one-character control sequence belongs after a ` mark.
So I am essentially inserting \0 here.
******
Now, if I hit q for batchmode I get a the .pdf I want, but the online facility will not allow me to do that and it just fails. My own system reproduces the error, so it is not a problem with their facility. I am using natbib 8.31 and TeXShop 3.62
test file:
\documentclass[12pt,a4paper]{article}
\usepackage{natbib} %harvard style
\begin{document}
blah\cite{paper1,paper2}
\bibliographystyle{agsm}
%\bibliography{testbib}
\begin{thebibliography}{xx}
\harvarditem{Auth}{{2001}{\em a}}{paper1}
Auth, P.~J. \harvardyearleft {2001}{\em a}\harvardyearright , `{paper1}', {\em {Journal 1}} {\bf {11}}({5}),~{417--436}.
\harvarditem{Auth}{{2001}{\em b}}{paper2}
Auth, P.~J. \harvardyearleft {2001}{\em b}\harvardyearright , `{paper2}', {\em {Journal 2}} {\bf
{1}}({1}),~{3--67}.
\end{thebibliography}
\end{document}



.bibfile for those entries, please? I have a hunch that there may be too many curly brackets flying around there. – moewe Jul 31 '18 at 15:38