I am using resume.cls for making a CV and I would like to make a list of publications using BibTeX. I have already used the suggestions here (the answer by @jak123) and here (the answer by @egreg) on how to use BibTex to generate a list of publication and it seems that it works and generates a file with a complete list of publication. The code is
\documentclass{resume}
\usepackage{bibentry}
\makeatletter
\def\endthebibliography{%
\def\@noitemerr{\@latex@warning{Empty `thebibliography' environment}}%
\endlist}
\makeatother
\begin{document}
\nobibliography{cv}
\bibliographystyle{JHEP}
%----------------------------------------------------------------------------------------
% Publication
%----------------------------------------------------------------------------------------
\begin{rSection}{Publications}
\begin{enumerate}
\item \bibentry{A1}
\item \bibentry{A2}
\item \bibentry{A3}
\end{enumerate}
\end{rSection}
\end{document}
However, the following error shows up
Lonely \item--perhaps a missing list environment. \bibitem{A1}
Lonely \item--perhaps a missing list environment. \bibitem{A2}
Lonely \item--perhaps a missing list environment. \bibitem{A3}
Is there a way to get rid of this error since it is quite annoying?
resume.cls
has the same problem as theres.cls
discussed in tex.stackexchange.com/q/27139/35864. It issues\nofiles
and stops aux file writing, which means that BibTeX can't work. You can try the fix suggested in the link, but maybe this should be a reason to think about whether or not thisresume.cls
is what you should be using. It doesn't appear to be very actively maintained and does some dangerous stuff (\renewcommand{\document}
). The usage hint at the top of the file\documentstyle{resume}
also has me worried.\bibliographystyle
call andbibentry
's\nobibliography
call.