0

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?

3
  • This resume.cls has the same problem as the res.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 this resume.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.
    – moewe
    Nov 25, 2020 at 7:09
  • Note that in your MWE you are missing the \bibliographystyle call and bibentry's \nobibliography call.
    – moewe
    Nov 25, 2020 at 7:10
  • @moewe Thanks for the commnets. The point is that I get the perfect pdf which does contain all the information but I get this error and it is very annoying. I also corrected the MWE.
    – QGravity
    Nov 25, 2020 at 17:39

0

You must log in to answer this question.

Browse other questions tagged .